Professional Documents
Culture Documents
Assignment 1 - Part 1: Instructions
Assignment 1 - Part 1: Instructions
Instructions:
All of these questions require you to complete using SPSS. Question 2-4 require that you
complete both manually and by SPSS. Please create a WORD document to answer the
questions, perform your test for Q2-4 (you can use Equation in Microsoft Word to write the
formulas, or use other software like MathType) and copy your SPSS results into it.
QUESTION 1 (10pts)
Use SPSS: Get the file surgery.sav from Bb. This file contains data from 141 babies who
were referred to a paediatric hospital for surgery. Examine the distributions of three
continuous variables in the data set, that is, birth weight, gestational age and length of stay.
Decide whether a variable is normally distributed and fill in the following tables:
-.323 -0.792
approx.
normal normal
approx. normal
Gestational 36.564 -.590 -2.81 .000 Approx.
age approx. normal
37.000 normal normal non-
normal
.862 2.06
approx. normal
normal
approx. normal
non-normal
Transform non-normal variables to normal. Give the proof that your transformed variable(s)
has normal distribution.
Histogram:
QUESTION 2 (10pts)
The daily dietary intake of 11 young and healthy women was measured over a longer period.
The women didn’t know the aim of the study in advance, which was the comparison of pre-
and post-menstrual ingestion, to avoid any deliberate influence on the study results. The
mean dietary intake (in kJ) over 10 pre- (PREMENS) and 10 post-menstrual days
(POSTMENS) of each woman is given in the following table:
The research question is: Is there a difference between pre- and postmenstrual dietary
intake?
State the null & alternative hypothesis, perform the test by your own calculation and by
SPSS and give your conclusion based on this data
Answer:
SPSS results:
Check for normality:
Descriptives
Median 6515.00
Variance 1304445.455
Minimum 5260
Maximum 8770
Range 3510
Variance 1480681.364
Minimum 3885
Maximum 7335
Range 3450
Tests of Normality
a
Kolmogorov-Smirnov Shapiro-Wilk
*
Pre .128 11 .200 .952 11 .674
*
Post .140 11 .200 .936 11 .479
QUESTION 3 (10pts)
An animal experiment of Dr. X: two groups of female rats receive food with high and low
protein. The research question: Is there a difference between groups for the weight gain,
assuming the two populations have equal variances.
State the null & alternative hypothesis, perform the test by your own calculation and by
SPSS and give your conclusion based on this data
Answer:
Null hypothesis: There is no difference in the means of weight gain between the
groups of rats receiving food with high and low protein (or the mean difference of
weight gain between the groups of rats receiving food with high and low protein is
equal to zero)
H 0 : 1 2 or 1 2 0
Alternative hypothesis: There is a difference in the means of weight gain between the
groups of rats receiving food with high and low protein (or the mean difference of
weight gain between the groups of rats receiving food with high and low protein is
unequal to zero)
H A : 1 2 or 1 2 0
As we are comparing the means of two independent samples of rats, and assuming
the distribution of weight gain in the population is normal, we will use the 2-sample t-
test.
12
12 2
( x1i x1 )
Group 1: x1i
n1 12, x1 i 1 120, s1 i 1 21.388
n1 n1 1
Group 2:
7
7 2
x2i ( x2i x2 )
n2 7, x2 i 1 101, s2 i 1 20.623
n2 n2 1
As we assume the two populations have equal variances, we calculate the pooled
estimate of the variance
(n1 1) s12 (n2 1) s22
s
2
n1 n2 2
p
SPSS results:
Descriptives
Median 121.0000
Variance 457.455
Maximum 161.00
Range 78.00
Median 101.0000
Variance 425.333
Minimum 70.00
Maximum 132.00
Range 62.00
Tests of Normality
*
High .092 12 .200 .992 12 1.000
Gain
Low .100 7 .200* .998 7 1.000
The test for equality of the two variances has p-value = 0.905 do not reject the null
and conclude that the variances of the two populations are equal we will read the t-
test results of equal variances assumed
p-value = 0.076 do not reject the null and conclude that the means of weight gain of
the low protein and high protein groups are not different.
QUESTION 4 (10pts)
The 24-hours total energy consumption (in MJ/day) was determined for 13 skinny and 9
heavily overweighted women.
6.13, 7.05, 7.48, 7.48, 7.53, 7.58, 7.90, 8.08, 8.09, 8.11, 8.40, 10.15, 10.88
State the null & alternative hypothesis, perform the test by your own calculation and by
SPSS and give your conclusion based on this data
Answer:
H 0 : 1 2 or 1 2 0
Alternative hypothesis: There is a difference in the means of energy consumption
between skinny and overweighted women (or the mean difference of energy
consumption between skinny and overweighted women is not equal to zero)
H A : 1 2 or 1 2 0
As we are comparing the means of two independent samples of women, and
assuming the distribution of energy consumption in the population is normal, we will
use the 2-sample t-test.
12
12 2
1i 1
( x x )
Group 1: x1i
n1 13, x1 i 1
8.066, s1 i 1 1.238
n1 n1 1
Group 2:
7
7 2
x2i
i 1
( x2i x2 )
1.398
n2 9, x2 i 1
10.298, s2
n2 n2 1
Assuming the two populations have equal variances, we calculate the pooled estimate
of the variance
(n1 1) s12 (n2 1) s22
s 2
n1 n2 2
p
SPSS results:
Descriptives
Median 7.9000
Variance 1.533
Minimum 6.13
Maximum 10.88
Range 4.75
Energy consumption
Interquartile Range .77
Median 9.6900
Variance 1.954
Maximum 12.79
Range 4.00
Tests of Normality
p-value = 0.001 reject the null and conclude that there is a difference in the means
of energy consumption between skinny and overweighted women.