The calculator will find the line of best fit for the given set of paired data using the least squares method, with steps shown.
Related calculator:
Quadratic Regression Calculator
Solution
The number of observations is n=5.
Generate the following table:
| x | y | xy | x2 | y2 |
1 | 2 | 2 | 1 | 4 |
2 | 5 | 10 | 4 | 25 |
3 | 7 | 21 | 9 | 49 |
4 | 11 | 44 | 16 | 121 |
5 | 15 | 75 | 25 | 225 |
∑ | 15 | 40 | 152 | 55 | 424 |
The line of best fit is y=mx+b.
m=n(∑x2)−(∑x)2n(∑xy)−(∑x)(∑y)=5⋅55−1525⋅152−(15)⋅(40)=516
b=n(∑x2)−(∑x)2(∑y)(∑x2)−(∑x)(∑xy)=5⋅55−152(40)⋅(55)−(15)⋅(152)=−58
Thus, the line of best fit is y=516x−58.
Answer
The line of best fit is y=516x−58=3.2x−1.6A.