avehtari / ROS-Examples

Regression and other stories R examples
https://avehtari.github.io/ROS-Examples/
325 stars 256 forks source link

Small typo on p.146 #95

Closed rs4606 closed 3 years ago

rs4606 commented 3 years ago

Hi there,

I believe there is a small typo in the expression for RSS in the second sentence of the subsection 'Least squares, maximum likelihood, and Bayesian inference' on p.146. Specifically, the expression given for RSS is: RSS = \sum_{i=1}^{n}(y_i - X\hat{\beta})^2. However, yi is a number, and X\hat{\beta} is a vector of length n. Perhaps the expression is supposed to be: RSS = \sum{i=1}^{n}(yi - X{i}\hat{\beta})^2 (that is, with X_{i}, the i^th row of X, instead of X itself).

Thanks,

Ravi

avehtari commented 3 years ago

Thanks! Fixed and added to the errata