04:00
Application Exercise
PorschePrice
data frame04:00
Often referred to as \(\color{#86a293}{r^2}\), it is the fraction of the response variability that is explained by the model.
Application Exercise
\[r^2 = \frac{\textrm{SSModel}}{\textrm{SSTotal}}\]
How could you calculate \(r^2\) if all you had was \(\textrm{SSTotal}\) and \(\textrm{SSE}\)?
01:00
Call:
lm(formula = frequency_score ~ group, data = data)
Residuals:
Min 1Q Median 3Q Max
-38.80 -22.55 -11.80 30.20 95.20
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 39.800 7.757 5.131 8.82e-06 ***
groupsquare -8.000 10.970 -0.729 0.47
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 34.69 on 38 degrees of freedom
Multiple R-squared: 0.0138, Adjusted R-squared: -0.01215
F-statistic: 0.5318 on 1 and 38 DF, p-value: 0.4703
1.4% of the variation in the frequency score is explained by group.
Application Exercise
appex-10.qmd
summary
on your model predicting Porsche price from mileage03:00