Hi guys,
I'm a newbie in linear regression.
I want to implement a prediction using the least square regression which is the basic regression formula is :
y= beta0 + beta1x + e
My current concern is :
1- How to generate the e.
2- How to determine the mean and variance to generate the e that are normally distributed?
Online notes about the regression are numerous. But to get the actual notes particularly discussed about the random error with normal distribution are challenging task for a newbie like me. I would appreciate if someone could give any ideas or or advice or resources or any sample codes in R.
Thank you in advance.