31.01.2015 Views

MATH1725 Introduction to Statistics: Worked examples

MATH1725 Introduction to Statistics: Worked examples

MATH1725 Introduction to Statistics: Worked examples

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Worked</strong> Example: Lectures 5–6<br />

A sample of size 64 is drawn by simple random sampling from a normal population which has<br />

known variance 4. The sample mean is −0.45. Test the hypothesis H 0 : µ = 0 vs. H 1 : µ ≠ 0 at<br />

the 5% level of significance. Repeat for testing H 0 : µ = 0 vs. H 1 : µ > 0<br />

Answer: Here ¯X ∼ N(µ,σ 2 /n) with σ 2 = 4, n = 64, so σ 2 /n = 0.0625 and ¯X ∼ N(µ,0.0625).<br />

Test statistic is<br />

Z = ¯X − µ<br />

σ/ √ n = ¯X<br />

√ =<br />

¯X<br />

0.0625 0.25<br />

where Z ∼ N(0,1) if H 0 is true.<br />

For α = 0.05 with a two-sided test, z α/2 = 1.96. Critical region is Z < −1.96 and Z > 1.96.<br />

Observed value is z = −0.45/0.25 = −1.8. This does not lie in critical region so accept H 0 .<br />

For α = 0.05 with a one-sided test, z α = 1.645. Critical region is Z < −1.645. Observed value<br />

is z = −1.8 which lies in critical region so reject H 0 .<br />

<strong>Worked</strong> Example: Lecture 6<br />

The absenteeism rates (in days and parts of days) for nine employees of a large company were<br />

recorded in two consecutive years.<br />

Employee 1 2 3 4 5 6 7 8 9<br />

Year 1 3.0 6.7 11.3 5.0 9.4 15.7 8.0 10.0 9.7<br />

Year 2 2.8 5.1 8.4 5.0 6.2 12.2 10.0 6.8 6.0<br />

Is there any evidence that the average absenteeism rate is different for the two years<br />

Answer: Data paired as same employee studied in each of the two years.<br />

Form difference d i = (year 1) i − (year 2) i . Need <strong>to</strong> estimate variance σ 2 d .<br />

Test H 0 : µ d = 0 vs. H 1 : µ d ≠ 0. See lecture 6.<br />

<strong>Worked</strong> Example: Lecture 8<br />

Which phrases i-iv below apply <strong>to</strong> the sample correlation coefficient r XY <br />

(i) measures linear association between two variables,<br />

(ii) is never negative,<br />

(iii) has positive slope,<br />

(iv) depends on the units of measurement of X and Y .<br />

Answer: i only.<br />

<strong>Worked</strong> Example: Lecture 8<br />

The tensile strength of a glued joint is related <strong>to</strong> the glue thickness. A sample of six values gave<br />

the following results:<br />

Glue Thickness (inches) 0.12 0.12 0.13 0.13 0.14 0.14<br />

Tensile Strength (lbs.) 49.8 46.1 46.5 45.8 44.3 45.9<br />

Calculate the sample correlation coefficient r for these data.<br />

Use the fitted least squares regression line <strong>to</strong> predict the tensile strength of a joint for a glue<br />

thickness of 0.14 inches.<br />

Using scatter-diagrams, sketch the form of regression line expected in the three cases when r<br />

takes the values −1, 0, and +1.<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!