開始使用免費開始

使用「外貌分數」進行預測

假設有一位 UT Austin 的講師,你對他一無所知,唯一知道的是他的外貌分數為 5。你對他的教學評分 \(y\) 的預測 \(\hat{y}\) 是多少?

get_regression_table(model_score_2)
  term      estimate std_error statistic p_value lower_ci upper_ci
  <chr>        <dbl>     <dbl>     <dbl>   <dbl>    <dbl>    <dbl>
1 intercept    3.88      0.076     51.0        0    3.73     4.03 
2 bty_avg      0.067     0.016      4.09       0    0.035    0.099

本練習屬於課程

在 Tidyverse 中進行資料建模

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Use fitted intercept and slope to get a prediction
y_hat <- ___ + ___ * ___
y_hat
編輯並執行程式碼