IB AI · 13A Linear Models
Two points decide one line. Use that line. This is not a regression through a cloud of points.
Gradient
m = (y₂ − y₁) / (x₂ − x₁).
Then the constant
Substitute either point into y = mx + c.
Both points
The finished equation has to fit both points.
Exact
Leave a fraction exact.
Whole number gradient.
Two points fix one line.
m = 9 − 34 − 1
m = 2
y − 3 = 2(x − 1)
3 = 2·1 + c
c = 1
y = 2x + 1
Answer: y = 2x + 1
Two points fix one line.
m = 8 − 23 − 0
m = 2
y − 2 = 2(x − 0)
2 = 2·0 + c
c = 2
y = 2x + 2
Answer: y = 2x + 2
Two points fix one line.
m = 10 − 15 − 2
m = 3
y − 1 = 3(x − 2)
1 = 3·2 + c
c = −5
y = 3x − 5
Answer: y = 3x − 5
Two points fix one line.
m = 2 − 84 − 1
m = −2
y − 8 = −2(x − 1)
8 = −2·1 + c
c = 10
y = −2x + 10
Answer: y = −2x + 10
Two points fix one line.
m = 1 − 52 − 0
m = −2
y − 5 = −2(x − 0)
5 = −2·0 + c
c = 5
y = −2x + 5
Answer: y = −2x + 5
Two points fix one line.
m = 4 − 47 − 3
m = 0
y − 4 = 0(x − 3)
4 = 0·3 + c
c = 4
y = 4
Answer: y = 4
A negative coordinate.
Two points fix one line.
m = 9 − 12 + 2
m = 2
Substitute a point into y = mx + c.
1 = 2·−2 + c
c = 5
y = 2x + 5
Answer: y = 2x + 5
Two points fix one line.
m = −3 − 53 + 1
m = −2
Substitute a point into y = mx + c.
5 = −2·−1 + c
c = 3
y = −2x + 3
Answer: y = −2x + 3
Two points fix one line.
m = 5 + 12 + 4
m = 1
Substitute a point into y = mx + c.
−1 = 1·−4 + c
c = 3
y = x + 3
Answer: y = x + 3
Two points fix one line.
m = 6 + 25 − 1
m = 2
Substitute a point into y = mx + c.
−2 = 2·1 + c
c = −4
y = 2x − 4
Answer: y = 2x − 4
Two points fix one line.
m = 4 − 41 + 3
m = 0
Substitute a point into y = mx + c.
4 = 0·−3 + c
c = 4
y = 4
Answer: y = 4
Two points fix one line.
m = 0 + 64 + 2
m = 1
Substitute a point into y = mx + c.
−6 = 1·−2 + c
c = −4
y = x − 4
Answer: y = x − 4
A fractional gradient.
Two points fix one line.
m = 5 − 23 − 1
m = 32
y − 2 = 32(x − 1)
2 = 32·1 + c
c = 12
y = 32x + 12
Answer: y = 32x + 12
Two points fix one line.
m = 6 − 12 − 0
m = 52
y − 1 = 52(x − 0)
1 = 52·0 + c
c = 1
y = 52x + 1
Answer: y = 52x + 1
Two points fix one line.
m = 5 − 36 − 2
m = 12
y − 3 = 12(x − 2)
3 = 12·2 + c
c = 2
y = 12x + 2
Answer: y = 12x + 2
Two points fix one line.
m = 1 − 43 + 1
m = −34
Substitute a point into y = mx + c.
4 = −34·−1 + c
c = 134
y = −34x + 134
Answer: y = −34x + 134
Two points fix one line.
m = 2 − 04 − 1
m = 23
y − 0 = 23(x − 1)
0 = 23·1 + c
c = −23
y = 23x − 23
Answer: y = 23x − 23
Two points fix one line.
m = 1 − 76 − 2
m = −32
y − 7 = −32(x − 2)
7 = −32·2 + c
c = 10
y = −32x + 10
Answer: y = −32x + 10
Want to go over a linear model together?
Book a Session with Amy