danhalligan / ISLRv2-solutions

Solutions to "An Introduction to Statistical Learning with Applications in R second edition"
MIT License
72 stars 24 forks source link

Error in Chapter 5 Question 1 #3

Closed aycannon closed 9 months ago

aycannon commented 9 months ago

Var(X + Y) = Var(X) + Var(Y) + 2cov(X,Y)

In the solutions, this is written as var(X) + var(Y) + cov(X,Y). The working out is obviously correct, but the initial identity is incorrect.

Screenshot 2023-12-07 at 15 45 24 Screenshot 2023-12-07 at 15 45 45
danhalligan-la commented 9 months ago

Thanks! Should be fixed now!