0% found this document useful (0 votes)
17 views

Exercise 1 - 2 - 3 (Output Included Per Exercise) - Using R

The document contains three exercises analyzing sample data using SPSS. Exercise 1 finds statistics like mode, mean and median for student weights. Exercise 2 tests if the average weight differs from 140 lbs using a t-test. Exercise 3 uses a chi-square test to determine if gift selections for a website subscription were equal.

Uploaded by

Serena Ayash
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Exercise 1 - 2 - 3 (Output Included Per Exercise) - Using R

The document contains three exercises analyzing sample data using SPSS. Exercise 1 finds statistics like mode, mean and median for student weights. Exercise 2 tests if the average weight differs from 140 lbs using a t-test. Exercise 3 uses a chi-square test to determine if gift selections for a website subscription were equal.

Uploaded by

Serena Ayash
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Exercise 1: 

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. Find mode, mean, median, standard deviation, percentile 25. 
2. Plot Histogram 
3. Interpret SPSS Output 
 
  1.

2.

Syntax: “> hist (student_weight)”

3. Interpretation:
Syntax to get Standard Deviation:
> sd (student_weight)

 Variable: Student_Weight (Quantitative – Scale)


 Sample Size : 22
 Highest repeated weight is 135
 On average, the spread form the mean is (166-35) & (166+35)
 25% of the weights is below 135 and 75% are above 135 pounds.

 
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

H1: at least one of the gifts is Different, there is Significant Difference.

We notice that the p-value = 0.000 < 0.005, Reject H0 => there is Significant Difference.

You might also like