Question: STATISTICAL LEARNING - Chapter 2

minirandom95

New member
Joined
Aug 11, 2022
Messages
1
Good morning,
can someone explain to me what does it mean?
and is there any materials that I can study beside this book? (I find it is pretty difficult for me to understand)
*I have watched several videos on Youtube however it seems that they only explain not for the whole chapter.
Thank you very much.
 

Attachments

  • WhatsApp Image 2022-08-12 at 10.19.47 AM.jpeg
    WhatsApp Image 2022-08-12 at 10.19.47 AM.jpeg
    152 KB · Views: 5
Consider the following data set. You wish to predict commute time to work using windspeed and temperature.

Observation #Windspeed (mph)Temperature (F)Commute Time (minutes)
19.07720
210.38960
38.36030

Notice, there are 3 observations, so you have [imath]i=1,2,3[/imath]. Whereas you have 2 predictors i.e. windspeed and temperature so you have [imath]j=1,2[/imath].

The value of [imath]x_{11}=9.0[/imath]. The first observation, of the first variable (windspeed).
Another example, [imath]x_{3,2}=60[/imath] -- the third observation of the second variable (temperature), and so on...
More formally, we represent the dataset with a matrix.
[math]X=\begin{pmatrix} x_{11}& x_{12}\\ x_{21}&x_{22} \\ x_{31}&x_{32}\end{pmatrix}=\begin{pmatrix} 9 & 77\\ 10.3 &89 \\ 8.3 & 60\end{pmatrix}[/math][math]Y=\begin{pmatrix} y_1\\ y_2\\ y_3\end{pmatrix} =\begin{pmatrix} 20\\ 60\\ 30\end{pmatrix} [/math]
More general, we extend the matrix for [imath]i=1,2,3,..n[/imath] and [imath]j=1,2,3,...p[/imath], where you have [imath]n[/imath] observations and [imath]p[/imath] predictors.
 
Last edited:
Top