| Y | Ŷ | |
|---|---|---|
| 1 | 2.3 | 2.8 |
| 2 | −1.6 | −1.2 |
| 3 | 4.3 | 3.6 |
10:00
For each of the following scenarios identify:
Careful!! This is a Causality question. “What would happen if I were to set the price of the book at some value? E.g. what are the expected sales when price=$ 30? Vs. price = $ 35? Etc.”
This is a straight-up Prediction task! It’s a Regression because sale price should be modeled as a continuous variable.
This is a Prediction task. It’s a Classification task, because whether the car is real should be modeled as a discrete (Bernoulli) variable.
You fell for it again! This is not a Prediction task. It’s a Generalization task, because they’re estimating various population parameters. These are hidden, non observable quantities.
This is a Prediction task. It’s a Regression task, because temperature is modeled as a continuous variable.
This is a Prediction task. It’s a Classification task, because whether the student accepts the offer is should be modeled as a binary (Bernoulli) variable.
This is a Prediction task! Althout this thing was written 2200 years ago, we are still “predicting” the value of an unseen random variable (the missing letter). It’s a Classification task, because a letter from the Coptic alphabet is a nominal categorical variable.
Small. MSE measures error (squared)!
01:00
Imagine the following sample (\(n=3\)) with true values of \(Y\) and the predictions from some model \(\hat{Y}_{\mbox{model}}\). The units of \(Y\) are kilograms.
Calculate the sample MSE of the model!
| Y | Ŷ | |
|---|---|---|
| 1 | 2.3 | 2.8 |
| 2 | −1.6 | −1.2 |
| 3 | 4.3 | 3.6 |
\(\mbox{MSE} = \frac1{3} \left((-0.5 \, kg)^2 +(-0.4 \, kg)^2 +(0.7 \, kg)^2 \right) = 0.3 \, kg^2\)
\(X_1\) on the left seems more strongly associated with \(Y\) than \(X_2\) is.
f.What will the following line of code return?
# A tibble: 4 × 5
name hours cuteness food_eaten is_indoor_cat
<chr> <dbl> <dbl> <dbl> <lgl>
1 luca 10 8 218 FALSE
2 jane 14 10 300 FALSE
3 gargantua 16 10 220 TRUE
4 behemot 8 8.5 195 FALSE
(Intercept) cuteness food_eaten is_indoor_catTRUE
-28.89210392 6.01776698 -0.05395603 -3.24503100
How many hours does the model predict Gargantua will sleep each day? Write out the linear equation of the model from the model output to help you. Hint: as an example, you can read 5e+01 as \(\, 5 \cdot 10^1\).
05:00
40:00
