Chapter 4 Statistical Inference Estimation -Confidence interval estimation for mean and proportion...

39
Chapter 4 Statistical Inference Estimation -Confidence interval estimation for mean and proportion -Determining sample size Hypothesis Testing -Test for one and two means -Test for one and two proportions

description

ESTIMATION In estimation, there are two terms that firstly, should be understand. The two terms involved in estimation are estimator and estimate. An estimate of a population parameter may be expressed in two ways: point estimate and interval estimate.

Transcript of Chapter 4 Statistical Inference Estimation -Confidence interval estimation for mean and proportion...

Page 1: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Chapter 4Statistical Inference Estimation -Confidence interval estimation for mean and proportion -Determining sample size

Hypothesis Testing -Test for one and two means -Test for one and two proportions

Page 2: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Statistical InferenceStatistical inference is a process of drawing an inference about the data statistically. It concerned in making conclusion about the characteristics of a population based on information contained in a sample. Since populations are characterized by numerical descriptive measures called parameters, therefore, statistical inference is concerned in making inferences about population parameters.

Page 3: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

ESTIMATION

In estimation, there are two terms that firstly, should be understand. The two terms involved in estimation are estimator and estimate.

An estimate of a population parameter may be expressed in two ways: point estimate and interval estimate.

Page 4: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Point Estimate

A point estimate of a population parameter is a single value of a statistic. For example, the sample mean is a point estimate of the population mean μ. Similarly, the sample proportion is a point estimate of the population proportion p.

x

Page 5: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Interval estimate

An interval estimate is defined by two numbers, between which a population parameter is said to lie.

For example, a < < b is an interval estimate of the population mean μ. It indicates that the population mean is greater than a but less than b.

x

Page 6: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Point estimators

Choosing the right point estimators to estimate a parameter depends on the properties of the estimators it selves. There are four properties of the estimators that need to be satisfied in which it is considered as best linear unbiased estimators. The properties are: Unbiased Consistent Efficient Sufficient

Page 7: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.
Page 8: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.
Page 9: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Confidence Interval

• A range of values constructed from the sample data. So that the population parameter is likely to occur within that range at a specified probability.• Specified probability is called the level of confidence.• States how much confidence we have that this interval contains the true population parameter. The confidence level is denoted by • Example :- 95% level of confidence would mean that if 100 confidence intervals were constructed, each based on the different sample from the same population, we would expect 95 of the intervals to contain the population mean.

Page 10: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

To compute a confidence interval, we will consider two situations:

i. We use sample data to estimate, with and the population standard deviation is known.

ii.We use sample data to estimate, with and the population standard deviation is unknown. In this case, we substitute the sample standard deviation (s) for the population standard deviation

X

X

Page 11: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.
Page 12: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.1:

Find 95% confidence interval for a population mean for these values :

a)

b)

236, 13.3, 3.42n x s

264, 2.73, 0.1047n x s

Page 13: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

a) 1st Step:

2nd Step: Find from table page 26. 3rd Step: Use formula.

1 100 95

1 0.950.05

0.0252

0.025 1.96Z

2

1.849313.3 (1.96)36

= 13.3 0.6041 = 12.6959,13.9041

sCI x Zn

CI

Page 14: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

4rd step : Conclusion: 95% confidence interval of mean

lies in between 12.6959 to 13.9041.

Page 15: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.2 :The mean and standard deviation of the maximum loads supported by sample of 60 cables are given 11.09 tons and 0.73 tons. Find 95% confidence interval of the mean of the maximum loads all cables produced by company.

Page 16: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.3:

The brightness of a television picture tube can be evaluated by measuring the amount of current required to achieve a particular brightness level. A random sample of 10 tubes indicated a sample mean 317.2microamps and a sample standard deviation is 15.7microamps. Find (in microamps) a 99% confidence interval estimate for mean current required to achieve a particular brightness level.

Page 17: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Solution:

For 99% CI:

From t normal distribution table:

317 2x .15 7s . 15 7 10 30 317 2s . , n , x .

99 1 100

1 0 99 0 01

0 0052

% %

..

.

0 005 92

1 3 250. ,t ,n t .

Page 18: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Hence 99% CI

Thus, we are 99% confident that the mean current required to achieve a particular brightness level is between 301.0645 and 333.3355

0 005 915 7317 2

1015 7317 2 3 250

10301 0645 333 3355 microamps

. ,.. t

.. .

. , .

Page 19: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.1:

Taking a random sample of 35 individuals waiting to be serviced by the teller, we find that the mean waiting time was 22.0 min and the standard deviation was 8.0 min. Using a 90% confidence level, estimate the mean waiting time for all individuals waiting in the service line.

Answer : [19.7757, 24.2243]

Page 20: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Confidence Interval Estimates for the differences between two population mean,

i) Variance and are known

ii) If the population variances, and are unknown, then the following tables shows the different formulas that may be used depending on the sample sizes and the assumption on the population variances.

1 2

21 2

2

2 2

1 21 2

1 22

X X Zn n

21 2

2

Page 21: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Equality of variances, when are unknown

Sample size

1 230 30n , n 2 2

1 2, 1 230 30n , n

2 21 2

2 2

1 21 2

1 22

s sX X Zn n

2 2

1 21 2

1 22

22 21 2

1 22 22 2

1 2

1 2

1 2

1 1

,v

s sX X tn n

s sn n

vs sn nn n

2 21 2

1 21 22

2 21 1 2 22

1 2

1 1

1 12

p

p

X X Z Sn n

n s n sS

n n

1 21 22

2 21 1 2 22

1 2

1 2

1 1

1 12

2

p,v

p

X X t Sn n

n s n sS

n nv n n

Page 22: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.4:

Two machines are used to fill plastic bottles with liquid laundry detergent. The standard deviations of fill volume are known to be and fluid ounce for the two machines, respectively. Two random samples of bottles from the machine 1 and bottles from machine 2 are selected, and the sample means fill volume are and fluid ounces.

Construct a 90% confidence interval on the mean difference in fill volumes. Interpret the results.

For 90% CI

1 0 10. 2 0 15.

1 14n

2 12n

1 30 5x . 2 29 4x .

Page 23: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Solution:

We are 90% confidence that the mean difference to fill volumes lies between 1.0163 and 1.1837 fluid ounces.

2 2 2 21 2

1 2 0 051 22

0 10 0 1530 5 29 414 12

1 1 1 6449 0 0509

1 0163 1 1837

.. .X X Z . . Z

n n

. . .

. , .

1 2

1 2

1 2

Machine 1: Machine 2:30 5 29 40 10 0 1514 12

x . x .. .

n n

1 100 90

1 0 90 0 1

0 052

%

..

.

Page 24: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.2:

17 male undergraduate students and 20 female undergraduate students are randomly selected from faculty of mechanical engineering. Result for test 2 SSM 3763 shown the following data:

Assume that both population are normally distributed and have equal population variances. Construct a 95% confidence interval for the difference in the two means.Answer : [1.3217, 10.6783]

Male : 82 8

Female : 76 6M M

F F

X , S

X , S

Page 25: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.
Page 26: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.5:According to a poll, 40% of working women says that they feel stress in working. The poll was based on a randomly selected of 1502 working women aged 30 and above. Construct a 95% confidence interval for the corresponding population proportion.

Page 27: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.3

In a random sample of 70 automobiles registered in a certain state, 28 of them were found to have emission levels that exceed a state standard. Find a 95% confidence interval for the proportion of automobiles in the state whose emission levels exceed the standard.

Answer : [0.2852, 0.5148]

Page 28: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.5:

Two separate surveys were carried out to investigate whether or not the users of Plus highway were in favour of raising the speed limit on highways. Of the 250 car drivers interviewed, 220 were in favour of raising the speed limit while of the 200 motorists interviewed , 180 were in favour of raising the speed limit . Find a 95% confidence interval for the difference in proportion between the car drivers and motorist who are in favour of raising the speed limit.

Page 29: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.4

In a test of the effect of dampness on electric connections, 100 electric connections were tested under damp conditions and 150 were tested under dry conditions. Twenty of the damp connections failed and only 10 of dry ones failed. Find a 90% confidence interval for the difference between the proportions of connections that fail when damp as opposed to dry.

Answer : [0.0591, 0.207]

Page 30: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Error of estimation and choosing the sample size

When we estimate a parameter, all we have is the estimate value from n measurements contained in the sample. There are two questions that usually arise:(i) How far our estimate will lie from the true value of the parameter?(ii) How many measurements should be considered in the sample?

Page 31: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

The distance between an estimate and the estimated parameter is called the error of estimation.

For example if most estimates are within 1.96 standard deviations of the true value of the parameter, then we would expect the error of estimation to be less than 1.96 standard deviations of the estimator, with the probability approximately equal to 0.95.

Page 32: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.
Page 33: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

2

1p pz B

n

2/2 , where n is rounded up to the nearest number.znE

Page 34: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Example 2.6:

The college president asks the statistics teacher to estimate the average age of the students at their college. The statistics teacher would like to be 99% confident that the estimate should be accurate within 1 year. From the previous study, the standard deviation of the ages is known to be 3 years.How large a sample is necessary?

Page 35: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.5:

The diameter of a two years old Sentang tree is normally distributed with a Standard deviation of 8 cm. How many trees should be sampled if it is required to estimate the mean diameter within ± 1.5 cm with 95% confidence interval?

Answer : 110 trees

Page 36: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

EXERCISES

Page 37: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.6

A tire manufacturer wishes to investigate the tread life of its tires. A sample of 10 tires driven 50, 000 miles revealed a sample mean of 0.32 inches of tread remaining with a standard deviation of 0.09 inches. Construct a 95 percent confidence interval for the population mean. Would it be reasonable for the manufacturer to conclude that after 50, 000 miles the population mean amount of tread remaining is 0.30 inches?

Answer : [0.2556, 0.3844]

Page 38: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise 2.7Resin-based composites are used in restorative dentistry.

A comparison of the surface hardness of specimens cured for 40 seconds with constant power with that of specimens cured for 40 seconds with exponentially increasing power. 15 specimens were cured with each method. Those cured with constant power had an average surface hardness (in N/mm) of 400.9 with a standard deviation of 10.6. Those cured with exponentially increasing powder had an average surface hardness of 367.2 with a standard deviation of 6.1. Find a 98% confidence interval for the difference in mean hardness between specimens cured by two methods.

Answer: [25.7804, 41.6196]

Page 39: Chapter 4 Statistical Inference  Estimation -Confidence interval estimation for mean and proportion -Determining sample size  Hypothesis Testing -Test.

Exercise: 2.8

The wedding ceremony for a couple, Jamie and Robbin will be held in Menara Kuala Lumpur. A survey has been carried out to determine the proportion of people who will come to the ceremony. From 250 invitations, only 180 people agree to attend the ceremony. Find a 90% confidence interval estimate for the proportion of all people who will attend the ceremony.

Answer : [0.6733, 0.7767]