In: Statistics and Probability
Instructions: Be sure to define all parameters and random variables used. Also, you must provide any code you use (final computed values are not sufficient). I strongly recommend that you create Jupyter Notebooks for this assignment, embedding your written comments in Markdown cells.
4. A researcher conducts an experiment in a residence for senior citizens to investigate the effect of floor type on the risk of fall-related injury. For 24 randomly selected individuals in the facility, she records the type of flooring (either standard flooring or a new, rubber flooring that absorbs the impact of falls) in their room and whether they sustained at least one fall-related injury in their room over the previous two years. She is interested in whether the rubber flooring is associated with a reduced risk of injury. Her data are available in the file fall.csv.
a. What are the null and alternative hypotheses?
b. What is the value of the test statistic?
c. What is the p-value?
d. State your conclusions in the language of the problem. Use a significance level of 10%.
e. Which assumption is required for the validity of your hypothesis test and why might it be reasonable in this context?
fall.csv. file
"Floor","Injury"
"Standard",0
"Standard",1
"Standard",0
"Standard",1
"Standard",1
"Standard",0
"Standard",0
"Standard",1
"Standard",0
"Standard",0
"Standard",1
"Standard",0
"Standard",1
"Standard",0
"Standard",0
"Standard",1
"Rubber",0
"Rubber",0
"Rubber",0
"Rubber",1
"Rubber",1
"Rubber",0
"Rubber",0
"Rubber",1