Testing whether there is a causal effect
Suppose you have the following data-set from an experiment on the effect of gender (as implied by the name on an applicant's CV) on her likelihood to be invited for a job interview:
Gender | Invitation |
---|---|
F | 0 |
F | 0 |
F | 0 |
F | 1 |
F | 1 |
M | 0 |
M | 1 |
M | 1 |
M | 1 |
Calculate a test for the null hypothesis that gender does not affect the likelihood to be invited for an interview.
Write code which performs the following:
Calculate \(\overline{Y}_1 - \overline{Y}_0\).
Matlab commands which you might find useful:
[xleftmargin=.5in]
randn