2. ο§ In the first part of this section we find the equation of the straight line
that best fits the paired sample data. That equation algebraically
describes the relationship between two variables.
ο§ The best-fitting straight line is called a regression line and its equation is
called the regression equation.
3. Regression Equation β given a collection of paired sample data, the regression
equation that algebraically describes the relationship between the two
variables π₯ and π¦ is π¦ = π0 + π1 π₯
β’ The regression equation attempts to describe a relationship between two
variables
β’ Inherently, the equation algebraically describes how the values of one variable
are somehow associated with the values of the other variable
Regression line β the graph of the regression equation
β’ Also known as the βline of best fitβ or the βleast square lineβ
β’ The regression line fits the sample points best
4. Notice the π¦ in the sample regression equation!
This implies that we are predicting something!
We are predicting values for π¦ based upon true and observed values
of π₯.
5. 1. The sample of paired data is a simple random sample of quantitative data
2. The pairs of data π₯, π¦ have a bivariate normal distribution, meaning the
following:
β’ Visual examination of the scatter plot(s) confirms that the sample points follow
an approximately straight line(s)
β’ Because results can be strongly affected by the presence of outliers, any outliers
should be removed if they are known to be errors (Note: Use caution when
removing data points)
6. Slope:
β’ π1 = π β
π π¦
π π₯
where π π¦ and π π₯ are the standard deviations of
π¦ values and π₯ values
Intercept:
β’ π0 = π¦ β π1 β π₯
Software will typically be utilized to calculate these
coefficients
7. We would like to use the explanatory variable, x, shoe print length, to
predict the response variable, y, height.
The data are listed below:
8. Requirement Check:
1. The data are assumed to be a simple random sample.
2. The scatterplot showed a roughly straight-line pattern.
3. There are no outliers.
The use of technology is recommended for finding the equation of a
regression line.
9. Using StatCrunch, we obtain the following result:
So then, the regression equation can be expressed as:
Λ 125 1.73y xο½ ο«
11. 1. Use the regression equation for predictions ONLY if the graph of the regression
line on the scatter plot confirms that the line fits the points reasonably well.
2. Use the equation for predictions ONLY if the data used for prediction does not
go much beyond the scope of the available sample data.
3. Use the equation for prediction ONLY if π indicates that there is a significant
linear correlation indicated between the two variables, π₯ and π¦
Notice: If the regression equation does not appear to be useful for predictions,
the best predicted value of a π¦ variable is its point estimate [i.e. the sample
mean of the π¦ variable would be the best predicted value for that variable]
12.
13. Marginal change β in working with two variables related by a regression
equation, the marginal change in a variable is the amount that the variable
changes when the other variable changes by exactly one unit
β’ The slope, π1, in the regression equation is the marginal change in π¦ when π₯
changes by one unit
14. For the 40 pairs of shoe print lengths and heights, the regression equation was:
The slope of 3.22 tells us that if we increase shoe print length by 1 cm, the
predicted height of a person increases by 3.22 cm.
Λ 80.9 3.22y xο½ ο«
15. Scatter Plot β plot of paired π₯, π¦ quantitative data with a dot representing
each pair of points
β’ Helpful in determining whether there is a relationship between two variables
16. Time Series Graph β quantitative data collected over time and plotted
accordingly with the horizontal axis representing some measure of time
17. β’ Outlier β in a scatter plot, an outlier is a point lying far away from the other
data points
β’ Influential point β a point that strongly affects the graph of the regression line
18. For the 40 pairs of shoe prints and heights, observe what happens if we include
this additional data point:
x = 35 cm and y = 25 cm
19. The additional point is an influential point because the graph of the regression
line because the graph of the regression line did change considerably.
The additional point is also an outlier because it is far from the other points.
20. Residual β for a pair of sample π₯ and π¦ values, the difference between the
observed sample value of π¦ (a true value observed) and the y-value that is
predicted by using the regression equation π¦ is the residual
β’ π ππ πππ’ππ = πππ πππ£ππ β πππππππ‘ππ = π¦ β π¦
β’ A residual represents a type of inherent prediction error
β’ The regression equation does not, typically, pass through all the observed data
values that we have
The Least Squares Property β a straight line satisfies this property if the sum of the
squares of the residuals is the smallest sum possible
21.
22. Residual Plot β a scatter plot of the π₯, π¦ values after each of the y-values has
been replaced by the residual value, π¦ β π¦.
β’ That is, a residual plot is a graph of the points π₯, π¦ β π¦ .
23. When analyzing a residual plot, look for a pattern in the way the points
are configured, and use these criteria:
The residual plot should not have any obvious patterns (not even a
straight line pattern). This confirms that the scatterplot of the sample
data is a straight-line pattern.
The residual plot should not become thicker (or thinner) when viewed
from left to right. This confirms the requirement that for different fixed
values of x, the distributions of the corresponding y values all have the
same standard deviation.
24. The shoe print and height data are used to generate the following
residual plot:
The residual plot becomes thicker, which suggests that the requirement of
equal standard deviations is violated.
25. The following slides show three residual plots.
Letβs observe what is good or bad about the individual regression
models.
29. 1. Construct a scatterplot and verify that the pattern of the points is
approximately a straight-line pattern without outliers. (If there are
outliers, consider their effects by comparing results that include the
outliers to results that exclude the outliers.)
2. Construct a residual plot and verify that there is no pattern (other
than a straight-line pattern) and also verify that the residual plot
does not become thicker (or thinner).
30. 3. Use a histogram and/or normal quantile plot to confirm that the
values of the residuals have a distribution that is approximately
normal.
4. Consider any effects of a pattern over time.