XLS
Pg 27 K&W 5th ed
25
20 70 6
80 1
15
90 0
10
100 0
5 More 0
0
10 20 30 40 50 60 70 80 90 100 More Max 34
Bin
The maximum frequency value is 34 (There are 34 observations whose age is between 30 (exclusive)
and 40 (Inclusive).
WebCT 1 : 34
Q2
Pg 46 K&W 5th ed
African/Black (1) 79
Coloured (2) 10
9%
Indian/Asian (3) 2
2%
African/Black (1) White (4) 9
10%
Sum 100
Coloured (2)
Indian/Asian (3)
79%
White (4)
The largest population group represented in the pie-chart is the African/Black population with 79%
WebCT 2 : 79
Pg 97 K&W 5th ed
yearsed
Mean 7.46
Standard Error 0.412291
Median 8
Mode 10
Standard
Deviation 4.12291
Sample Variance 16.99838
Kurtosis -0.77938
Skewness -0.48005
Range 15
Minimum 0
Maximum 15
Sum 746
Count 100
WebCT 3: 7.46
WebCT 4: 8
WebCT 5: 15
Q6
Correlation Matrix:
annualsal yearsed
annualsal 1
yearsed 0.452155 1
The coefficient of correlation using the years of education (yearsed) and annual salary (annualsal)
variables is 0.452155 (positive relationship between the two variables)
WebCT 6 : 0.4522
Probability (Pivot Tables)
EXCEL 2007
Insert … Pivot Table
Drag Gender to left column, drag Type to top row, drag Type to body of table. Change
the body of the table from Sum to Count.
EXCEL 2003
Data … Pivot Table and Pivot Chart Wizard
Step 2: Select your data … Next
Step 3: Select Layout (bottom left) …
Drag Gender to left column, drag Type to top row and drag Type (from the full list of
headings) to body of table. Change the body of the table from Sum to Count (double
click on ‘sum of type’) … OK
Click FINISH
Q7 What is P( M )? 0.63
Q8 What is P( U )? 0.6
Q9 What is P( M or U )? 0.81
Excel gives us the following population figures on the logannualsal variable: (Please note that this
table was calculated using the entire dataset)
logannualsal
Mean 9.322461
Standard Error 0.008055
Median 9.357207
Mode 8.188689
Standard Deviation 1.162719
logannualsal
Mean 9.334814
Standard Error 0.126136
Median 9.287301
Mode 9.798127
Standard Deviation 1.261362
TEST:
Tools… > Data Analysis CC… > One Sample Inference > Inference about a Mean (Sigma known)…
Test Statistic:
H0: Mu = 9.32
H1: Mu <> 9.32
0.8984 > 0.05, hence we cannot reject the null hypothesis at the 5% significance level.
Q13
WebCT 9: Type II
Q14
H0: Mu = 9.1
H1: Mu <> 9.1
Q15
0.0429 < 0.05, Now we can reject the null hypothesis at the 5% significance level and conclude that
there is sufficient evidence to infer that the population mean is not equal to 9.1
Q16
WebCT 12 : Type I
Inference about the Description of a Single Population
Q17
Tools… > Data Analysis CC… > One Sample Inference > Inference about a Mean (Sigma
unknown)…
Test Statistic:
x − μ 38.98 − 40
t= = = -0.8816
s 11.5697
n 100
From Excel:
H0: Mu = 40
H1: Mu <> 40
0.3801 > 0.05, hence we cannot reject the null hypothesis at the 5% significance level. There is
insufficient evidence to infer that the population mean is not equal to 40.
Tools… > Data Analysis CC… > One Sample Inference > Inference about a Mean (Sigma
unknown)…
From Excel:
H0: Mu = 40
H1: Mu < 40
0.1901 > 0.05, hence we cannot reject the null hypothesis at the 5% significance level. There is
insufficient evidence to infer that the population mean is less than 40.
Q19
Q20
Observed Values
79
10
9
2
H1: at least one of the proportions is not equal to its specified value
Test Statistic
χ 2 = 2.4713
THE IMPORTANT BIT!!!
Set up a table as below & use CHITEST.
From Excel: Using the CHITEST function in Excel, the following p-value can be calculated:
Obs Exp
79 75
10 12
9 8
2 5
P-value 0.480433
Rejection Region
Conclusion
2.4713 < 7.815, hence we cannot reject the null hypothesis at the 5% significance level. The
proportions are a good fit for the data.