The data required for this project is in the Chapter 6 folder, Projects/MathsData.txt. The content of the file should be used within the application (copy and paste). If the data sets do not have the same number of elements, remove elements from the end of the set with the larger number of elements.
Let's look at the math required:
- The equation of a straight line:
The equation is very simple:
y = mx + c, where m is the gradient and c is the intercept on the y axis
- Gradient of the regression line:
The equation is as follows:
This may look hairy but it's quite simple, so long as the following rule is remembered:
is not ...