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 i=1,2,3i=1,2,3. Whereas you have 2 predictors i.e. windspeed and temperature so you have j=1,2j=1,2.

The value of x11=9.0x_{11}=9.0. The first observation, of the first variable (windspeed).
Another example, x3,2=60x_{3,2}=60 -- the third observation of the second variable (temperature), and so on...
More formally, we represent the dataset with a matrix.
X=(x11x12x21x22x31x32)=(97710.3898.360)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}Y=(y1y2y3)=(206030)Y=\begin{pmatrix} y_1\\ y_2\\ y_3\end{pmatrix} =\begin{pmatrix} 20\\ 60\\ 30\end{pmatrix}
More general, we extend the matrix for i=1,2,3,..ni=1,2,3,..n and j=1,2,3,...pj=1,2,3,...p, where you have nn observations and pp predictors.
 
Last edited:
Top