Exercise 1 - 2 - 3 (Output Included Per Exercise) - Using R
Exercise 1 - 2 - 3 (Output Included Per Exercise) - Using R
2.
3. Interpretation:
Syntax to get Standard Deviation:
> sd (student_weight)
Exercise 2:
To test whether the average weight of student population is different from 140 lb.
Data: A random sample of 22 students’ weights from student population.
Use the following data.
135 119 106 135 180 108 128 160 143 175 170 205 195 185 182 150 175 190 180 195 220
235
1. Create data file
2. perform the required test
3. Interpret SPSS Output
1.
2. Since we are comparing “140 lb” to the average weight of one sample and
the variable is quantitative, then we have to use “one-simple T-Test”.
Hypotheses:
H0: The average weight equals to 140 lb, there is no significant difference.
H1: The average weight differs from 140 lb, there is a significant difference.
since p-value = 0.0017 < 0.005, Reject H0 => there is Significant Difference.
Exercise 3:
A website owner, Christopher, wants to offer a free gift to people that purchase a
subscription to his website. New subscribers can choose one of three gifts of equal
value: a gift voucher, a cuddly toy or free cinema tickets. After 1000 people have signed
up, Christopher wants to review the figures to see if the three gifts offered were equally
popular.
Gift Certificate 370
Cuddly Toy 230
Cinema Ticktets 400
1. Create data file
2. perform the required test
3. Interpret SPSS Output
1.
2.
Since the variable is qualitative and measuring according to Frequency, then we perform the
Chi-SQUARE Test.
3. Interpretation:
Hypotheses:
H0: all gifts are equally selected, there is not Significant Difference
We notice that the p-value = 0.000 < 0.005, Reject H0 => there is Significant Difference.