Week3 Modified
Week3 Modified
Mean Size
R2=(Var(SSM)-Var(SSR))/Var(SSM)
R2=(SSM-SSR)/SSM
● If we got 100 for SSM and 40 for SSR that means that R2 is 0.6
○ This means that 60% of the variation in mouse size can be
explained by mouse weight.
R2 Values cont.
● Your R2 can only be between 0 and 1.
○ If you have a perfect model (SSR = 0, you have a perfect line
through all the points), then R2=(SSM-0)/SSM = 1
■ In context to the mouse data, this would mean that
100% of your variation in mouse size can be explained
by mouse weight. In other words, when your mouse size
changes from observation to observation, we can
attribute the mouse’s weight to 100% explain this
variation.
R2 Values cont.
● Your R2 can only be between 0 and 1.
○ On the other extreme, you can have an R2 of 0
■ This would mean that knowing mouse weight does not
provide any information on mouse size. Therefore, we
get a linear model where the slope does not account for
the mouse weight (slope is 0). In such a case, we get
just a flat line through the data which yields something
like this: