DS4PS / cpp-523-fall-2019

Course shell for CPP 523 Foundations of Program Evaluation I for Fall 2019.
http://ds4ps.org/cpp-523-fall-2019/
6 stars 3 forks source link

Lab 2 #4

Open sunaynagoel opened 5 years ago

sunaynagoel commented 5 years ago

I am stuck in lab 2 . I may be overthinking, I really don't know how to make sense of the table provided in lab 02. I went through all the study materials and watch some videos tutorials online as well.

Please help.

lecy commented 5 years ago

For a single regression the formula maps to the table like this:

image

sunaynagoel commented 5 years ago

Thank you this helps a lot. How would I interpret x dash or sample mean for x ?

lecy commented 5 years ago

When you are comparing models we use the compact table with one column for each model:

image

sunaynagoel commented 5 years ago

So sorry for being a pain. I do understand the concept on Week 2 and I get Lab 02 concept as well. It just the Math I am getting stuck. For example question 3, for finding CI I think I am missing one information about x dash. i am not sure if I am right?

lecy commented 5 years ago

Ah, these are confidence intervals for the slopes.

Q. Calculate the 95% confidence interval around the class size coefficient in Model 1.

CI.upper = b1  +  t * SE(b1)
CI.lower = b1  -  t * SE(b1)

In the experimental context we would compare the mean of the treatment GROUP and mean of the control GROUP. Our hypothesis test would require us to calculate x-bar (the sample mean) in that case.

In the regression context all of the confidence intervals will be around the SLOPES, not the sample means. You will use the formulas above.

Note that coefficient = slope. That is common jargon used to describe regression results.

sunaynagoel commented 5 years ago

This makes so much more sense. I was overthinking in terms of math. Thanks a lot

lecy commented 5 years ago

No problem! I see why your mind would go down that path. Thanks for checking.

brittanyharb commented 5 years ago

My question on this is what/where can I find the t variable? I've done lots of research and am still struggling to establish this

Jigarci3 commented 5 years ago

Hello,

I am also feeling stuck trying to make sense of the model.

For question 1 - I understand that the formula for the error of the slope is:

Standard error of the slope= residual/Sample size ⋅ Variance x

I need help understanding how to read the model please.

lecy commented 5 years ago

The instructions at the top say:

For the following cases, use the value t=1.96 for the 95% confidence interval calculations.

This is a topic usually covered in intro stats that I don't feel is very useful to spend time on because the computer will automatically calculate this value in most models behind the scenes, so you never actually look it up in practice. And in policy we typically do not do studies with samples small enough to use another t-value. We will use the 1.96 value throughout this course unless otherwise stated.

brittanyharb commented 5 years ago

Oh shoot. Thank you for clarifying. My apologies, I guess I didn't read the instructions thoroughly

lecy commented 5 years ago

Joanna - if you scroll down in the lab I have included a diagrammed table. Does that help?

image

Question 1 is asking you to read the table only, not calculate the value yourself.

Different disciplines report different stats in parentheses, so I wanted to make sure it was clear that the standard errors are reported in the table, not p-values or t-stats.

Jigarci3 commented 5 years ago

I see... thank you for clarifying.

brittanyharb commented 5 years ago

So, just checking, an upper and lower confidence interval with negative values after applying the numbers into the equation is normal sometimes? If the relationship of x and y co-variants is negative in nature as well?

lecy commented 5 years ago

Yeah it's a little counter-intuitive when the program has a negative slope, but in this case smaller classes achieve better outcomes, so your math is correct.

image

lecy commented 5 years ago

@sunaynagoel Please don't close issues because that hides the responses from other students. You can just reply with a "that worked" to confirm that the issue was resolved, but the information might be useful to someone else that is having the same problem. Thanks!

sunaynagoel commented 5 years ago

Sure.. I was just thinking it is my responsibility to close an issue if I was the one to open it. But yes this makes sense. I always go in check for responses so many times myself.