Please enable JavaScript.
Coggle requires JavaScript to display documents.
Statistics Week9 - Coggle Diagram
Statistics Week9
Multiple Linear Regression (beta2hat, ...)
-
-
-
when qn asks you to fit a linear model for y iin terms of x1 and x2, use data analysis and you read off the coefficients (you dont care about the R value) to get a line where y = constant + ...x1 + ...x2
-
dummy variables
-
number of dummy variables to include is always one less than the number of categories you have (4 seasons, 3 dummy variables)
you encode male and female with just 0 and 1, dont need a tuple
you might create some interaction terms depending on your data --> to have a better model (like say gender x year) as an additional x variable and then remove later... refer to week9regression_tripleJumpMF
ANOVA
increasing predictor variables will increase r^2, even if the predictor consists of random numbers
if you have n data values, polynomial regression of degree (n-1) will give you r^2 of 1 --> overfitting data
-
-
-
simple linear regression
-
-
Terms
-
-
-
-
-
residuals
-
random residuals plot is good, error supposed to be random
if from the residuals plot we observe that the residuals follow a quadratic or a cubic pattern, then we need to transform the data
-
-
remember your final ans would be in quad/cubic form, NOT Linear
-
-