Professional Documents
Culture Documents
STAT 2100 Exercise 7
STAT 2100 Exercise 7
Section: Signature:
Exercise 7
Basic Statistical Data Analysis in R
Learning Outcome: At the end of the exercise, the student must be able to perform basic statistical data
analysis in R.
Instruction: Answer the following questions using R. Summarize your answers in word file. Put a copy of your
R codes at the end part of your answers for each item.
The following data shows the test scores of students. It includes school setting, school type, sex, pretest score
and posttest score.
|1
Suburban Public Female 62 75
Suburban Public Male 58 73
Suburban Public Male 59 74
Suburban Public Male 59 74
Suburban Non-public Male 63 76
Suburban Non-public Female 63 78
Suburban Non-public Male 59 77
Suburban Non-public Male 61 77
Suburban Non-public Male 65 72
Suburban Non-public Male 66 83
Suburban Non-public Female 67 81
Suburban Non-public Female 68 79
Suburban Non-public Female 63 80
Suburban Non-public Female 63 83
Rural Public Male 63 78
Rural Public Male 67 79
Rural Public Male 61 76
Rural Public Male 57 76
Rural Public Female 72 84
Rural Public Female 65 78
Rural Public Male 56 73
Rural Public Female 64 77
Rural Public Male 65 80
Rural Public Male 65 79
Rural Non-public Male 64 84
Rural Non-public Female 62 81
Rural Non-public Female 58 78
Rural Non-public Female 63 84
Rural Non-public Female 68 85
Rural Non-public Male 66 81
Rural Non-public Male 68 88
Rural Non-public Female 66 81
Rural Non-public Female 68 82
Rural Non-public Male 68 79
1. Determine whether there is significant difference in the pretest of the students for public and non-public
school. Use 0.05 level of significance.
2. Determine whether there is significant difference in the posttest of the students for public and non-public
school. Use 0.05 level of significance.
|2
3. Determine whether there is significant difference in the pretest and posttest of the students. Use 0.05 level of
significance.
4. Evaluate whether posttest have significant linear relationship with pretest. Use 0.05 level of significance.
5. Create regression equation to predict posttest using pretest as explanatory variable. Interpret the slope,
intercept and 𝑅2.
|3