7.AI
Gerretation and Simple Lunew Regresion
Performing a simple linear regression
rou work as a data scientist for a real estate company in a seaside resort town. Your boss has asked you to discover if it's possible to predict how much a home's distance from the water affects its selling price, You are going to collect a candom sample of 9 recently sold homes in your town. You will note the distance each home is from the water (denoted by \( x \), in km ) and each home's selling price (denoted by \( y \), in hundreds of thousands of dollars). You will also note the product \( x \) ' \( y \) of the distance from the water and selling price for each home. (These products are written in the row labeled " \( x y \) ").
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|}
\hline & Distance from the water, \( x \) (in km) & 2.8 & 1.9 & 4.5 & 3.4 & 0.1 & 1.2 & 3.4 & 2.3 & 1.2 \\
\hline Take Sample & Selling price, \( y \) (in hundreds of thousands of dollars) & 11.4 & 12.8 & 6.5 & 9.6 & 15.2 & 11.6 & 7.2 & 20.01 & 21.96 \\
\hline & xy & 31.92 & 24.32 & 29.25 & 32.64 & 1.52 & 13.92 & 24.48 & & \\
\hline
\end{tabular}
Send data to calculator
Based on the data from your sample, enter the indicated values in the column on the left below. Round decimal values to three decimal places. When you are done, select "Compute". (In the table below, \( n \) is the sample size and the symbol \( \Sigma x y \) means the sum of the values \( x y \).)
\begin{tabular}{|l|l|}
\hline \( n \) : \( \square \) & \\
\hline \( \bar{x}: \) \( \square \) & Sample correlation coefficient ( \( r \) ): \\
\hline \( \bar{y} \) : \( \square \) & \\
\hline \( s_{x} \) : \( \square \) & Slope ( \( b_{1} \) ): \\
\hline \( s_{y} \) : \( \square \) & \\
\hline \( \Sigma x y: \) \( \square \) & \( y \)-intercept ( \( b_{0} \) ): \\
\hline Compute & \\
\hline
\end{tabular}
(b) Write the equation of the least-squares regression line for your data. Then on the scatter plot for your data, graph this regression equation by plotting two points and then drawing the line through them. Round each coordinate to three decimal places.
Regression equation: \( \hat{y}= \) \( \square \)
Explanation
Check