Answer:
The slope of the line is 2.
Step-by-step explanation:
The data provided is as follows:
x : 0 1 2 3
y : 2 4 6 8
The formula to compute the slope of a line is:
[tex]\text{Slope} &= \frac{ n \cdot \sum{XY} - \sum{X} \cdot \sum{Y}}{n \cdot \sum{X^2} - \left(\sum{X}\right)^2}[/tex]
Compute the required values in Excel as shown below.
Compute the value of slope as follows:
[tex]b &= \frac{ n \cdot \sum{XY} - \sum{X} \cdot \sum{Y}}{n \cdot \sum{X^2} - \left(\sum{X}\right)^2} \\\\= \frac{ 4 \cdot 40 - 6 \cdot 20 }{ 4 \cdot 14 - \left( 6 \right)^2} \\\\= 2\end{aligned}[/tex]
Thus, the slope of the line is 2.