MulaiMulai sekarang secara gratis

Making predictions using "beauty score"

Say there is an instructor at UT Austin and you know nothing about them except that their beauty score is 5. What is your prediction \(\hat{y}\) of their teaching score \(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

Latihan ini adalah bagian dari kursus

Modeling with Data in the Tidyverse

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Use fitted intercept and slope to get a prediction
y_hat <- ___ + ___ * ___
y_hat
Edit dan Jalankan Kode