Skip to content

Lab 02 Question 6 #9

@castower

Description

@castower

Hello all,

I am currently working on solving question 6 of Lab 2: "The covariance of class size and test scores is -418, and the variance of class size is 99. Can you calculate the slope of class size in Model 4 with the formula cov(x,y)/var(x)? Why or why not?"

As I've been working through the labs, my understanding is that b1 is the slope and the formula cov(x,y)/var(x) is another way to find the slope. However, I'm a bit stumped as my calculation to find cov(x,y)/var(x) using the numbers above does not match the calculated value for b1 listed for Model 4 in the table.

Specifically:

slope <- round ( -418/99, 2 )
slope

calculates to -4.22 which does not match the -2.67 listed in the table.

Is there something that I'm missing here?

Thanks!
Courtney

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions