Docsity

Probability Models, Confidence Intervals - Introduction to Statistics | MATH 216, Exams of Mathematics

Toggle sidebar
bg1
Probability Models and Confidence Intervals
Math 216 – Introduction to Statistics
Discrete Probability Models
I. Binomial Probability Model
Used when we want to know how many trials are necessary until we achieve the desired
outcome and are given a sample size that is less than or equal to 30
Variables
p = probability of success
q = probability of failure (1-p)
x = number of trials until the first success occurs
n = sample size
Formulas
Expected value (mean):
= np
Standard Deviation:
=
npq
Probability of a success after exactly x outcomes: P(x) =
xx
qp
x
n
Example 1
A national study shows that approximately 6% of all people have type O-Negative
blood. In a study of 16 people, find:
a. The expected number of the 16 people who have O-Negative blood
b. The standard deviation of this sample
c. The probability that none of the 16 have O-negative blood
d. The probability that 1 or two of the 16 have O-Negative blood
Example 2
A statewide study shows that 22% of all people have been to a minor-league baseball
game this year. In a study of 21 people, find:
a. The expected number of the 21 people who have been to a minor league game
b. The standard deviation of this sample
c. The probability that exactly 6 of the 21 have been to a minor league game
d. The probability that 3 or 4 of the 21 have been to a minor league game
II. Approximating the Binomial Distribution using the Normal Model
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Probability Models, Confidence Intervals - Introduction to Statistics | MATH 216 and more Exams Mathematics in PDF only on Docsity!

Probability Models and Confidence Intervals

Math 216 – Introduction to Statistics

Discrete Probability Models

I. Binomial Probability Model

Used when we want to know how many trials are necessary until we achieve the desired

outcome and are given a sample size that is less than or equal to 30

Variables

p = probability of success

q = probability of failure (1-p)

x = number of trials until the first success occurs

n = sample size

Formulas

Expected value (mean): ^ = np

Standard Deviation:^ ^ = npq

Probability of a success after exactly x outcomes: P(x) =

x x p q x

n

  

Example 1

A national study shows that approximately 6% of all people have type O-Negative

blood. In a study of 16 people, find:

a. The expected number of the 16 people who have O-Negative blood

b. The standard deviation of this sample

c. The probability that none of the 16 have O-negative blood

d. The probability that 1 or two of the 16 have O-Negative blood

Example 2

A statewide study shows that 22% of all people have been to a minor-league baseball

game this year. In a study of 21 people, find:

a. The expected number of the 21 people who have been to a minor league game

b. The standard deviation of this sample

c. The probability that exactly 6 of the 21 have been to a minor league game

d. The probability that 3 or 4 of the 21 have been to a minor league game

II. Approximating the Binomial Distribution using the Normal Model

Used when we want to know how many trials are necessary until we achieve the desired

outcome and are given a sample size that is greater than 30

Continuity Correction Factor

  • Must add or subtract 0.5 to retain the original value in the probability distribution.

Variables

p = probability of success

q = probability of failure (1-p)

x = number of trials until the first success occurs

n = sample size

Formulas

Expected value (mean):

= np

Standard Deviation:^ ^ = npq

Using z =

x  

to find a z-score, we can convert this to an area under the normal curve

Example 1

A national study shows that approximately 6% of all people have type O-Negative

blood. In a study of 170 people, find:

a. The expected number of the 170 people who have O-Negative blood

b. The standard deviation of this sample

c. The probability that less than 9 of the170 have O-negative blood

d. The probability that between 8 and 12 the 170 have O-Negative blood

Example 2

A statewide study shows that 22% of all people have been to a minor-league baseball

game this year. In a study of 250 people, find:

a. The expected number of the 250 who have been to a minor league game

b. The standard deviation of this sample

c. The probability that exactly 60 of the 250 have been to a minor league game

d. The probability that more than 70 of the 250 have been to a minor league

game

III. Poisson Probability Distribution

  • Implemented when we only know the average number of discrete occurrences in a

given interval

P(x) =

!

x e

x

 

where   mean number of occurrences in given interval

x = desired number of outcomes

Examples

The departmental average grade on a Biology exam was shown to be 63.7 with a standard

deviation of 11. A random sample of 100 students was taken.

a. What is the mean and standard deviation of the sampling distribution?

b. What is the probability that the mean grade of the 100 students on the Biology

exam was less than 61?

c. What is the probability that the mean grade of the 100 students on the Biology

exam was between than 65 and 67.2?

Proportion Sampling Distributions

Used when we are given a population proportion and wish to base the results of the

sample of size n off of the results of the population.

Variables

p = probability of success

q = probability of failure (1-p)

x = probability to test

n = sample size

Formulas

Mean of the sample proportion: ^ p

  p

Sampling Standard Deviation of the Proportion:

^ p

pq

n

Using z =

^

^

p

p

x

to find a z-score, we can convert this to an area under the normal curve

Example 1

  1. A recent survey of Maryland residents shows that 17% believe the Orioles will finish

in third place in their division. In a sample of 130 residents find:

a. The mean and standard deviation of the sample proportion

b. The probability that less than 20 of the 130 believe the Orioles will finish in

third place

c. The probability that more than 25 of the 130 believe the Orioles will finish in

third place

Example 2

A national survey of Virginia drivers showed that 80% find traffic conditions to be

unsatisfactory on I-95. In a sample of 400 drivers find:

a. The mean and standard deviation of the sample proportion

b. The probability that between than 300 and 315 of the 400 find driving

conditions unsatisfactory

c. The probability that more than 350 of the 400 find driving conditions to be

unsatisfactory

Confidence Intervals (CI)

A confidence interval is a range of values computed uses a sample. The confidence

interval is an estimate where the true population mean or proportion falls within with a

specific level of certainty.

Confidence Interval for Means: Population Standard Deviation is Known

  • CI for mean uses the following critical values for

z based upon the confidence

level:

  • Population standard deviation must be known

Steps for computing a CI for one mean when population standard deviation is known:

Find z *based upon confidence level

ME =

n

z

  * 

Compute the CI by

n

CI x z

   

Example

A sample of 225 students showed an average GPA of 2.56. The population standard

deviation of all students is known to be 0.39.

  • Compute the margin of error at 99% confidence
  • Create a 99% CI for the true GPA of all students. Explain what it means.
  • Create a 90% CI for the true GPA of all students. Explain what it means.

Confidence Interval for One Proportion

Steps for computing CI of one proportion

Find z *based upon confidence level

Margin of Error = ME =

n

pq z *

n p

CIpz * s %

Example

A recent study performed by HCC showed that of 300 randomly selected beginning

algebra students, 67 did not pass. Based on this data, answer the following:

The alternative hypothesis is what is suggested to be true by sample data

Hypotheses Testing of One Proportion

Formulas & Variables

p (^) - Population proportion

p – Sample proportion

 (^) p =

n

pq

p

p p

z

 (^)  P-Value

Conditions:

  1. np ≥ 10, nq ≥ 10

  2. Sample is random

Alpha (significance) levels

  • Alpha levels tell us the cutoff point for accepting a null hypothesis
  • If the we are performing a two-tailed test, we have to divide the alpha level by

two to encompass both tails of the normal distribution

  • A low alpha level will accept more p-values (i.e. more null hypotheses)

Fail to reject and rejecting the null hypothesis

  • When the p-value is in the reject region, we reject the null hypothesis and accept

the alternative.

  • When the p-value is in the fail to reject region we fail to reject the null hypothesis

and reject the alternative hypothesis

Steps for One Proportion Hypothesis testing

  1. Determine the null and Alternative Hypotheses

  2. Check the conditions to use the test

  3. Find the p-value using standard z-score methods

  4. Fail to reject or reject the null hypothesis based on the p-value and the alpha level.

State your conclusion and answer what has been asked.

Example 1

A nationwide study of grocery store goods stated that about 5% of all food products were

outdated. At the Weis market in Abingdon, 11 of 515 randomly selected food items were

deemed outdated. Is there sufficient evidence to suggest that fewer items are outdated at

the Weis Market in Abingdon than the national average? Let us test at the 5%

significance level.

Example 2

In 2000, a study of HCC algebra students says that 65% of them pass on their first

attempt. In 2004, a survey of 450 algebra students reported that 287 passed on their

first attempt. Is there sufficient evidence to suggest that the number of students that

passed in 2004 is different than in 2000? Let us test at the 10% significance level.

Hypothesis Testing of Two Proportions

Hypothesis Testing with Two Proportions

  1. Define the groups and state the hypothesis

  2. Check Conditions

  3. Find the standard deviation of the sample

  4. Find the z-score and the p-value

  5. Use the p-value to state a conclusion

Formulas

2

2 2

1

1 1

1 2 n

p q

n

p q

p p

  

 (^) z =

1 2

1 2

p p

p p

 P-Value

Conditions

  1. Random – Samples are randomly chosen

  2. 5% Condition - Sample size for each sample must be less than 5% of population

  3. Independence – Samples must be independent of one another

  4. Success/Failure – n 1^ p 1 ^10 , n 1^ q 1 ^10 , n^ 2 p 2 ^10 , n 2 q 2 ^10

Example 1

In group of 355 randomly selected high school females, 103 elected to take mathematics

as an elective their senior year. In a group of 501 randomly selected high school males,

148 decided to take mathematics as an elective in their senior year. Is there evidence to

suggest more males take math as an elective? Test at the 10% significance level.

Example 2

In a study of 905 randomly selected children aged 15-17, 198 say they watch 3 or more

hours of television per day. In a study of 503 randomly selected children aged 12-14, 97

reported they watch 3 or more hours of television per day. Is there a significant difference

between age and watching television in teenagers? Test at the 5% significance level.

Hypothesis testing of one Mean

I) When population standard deviation is known

II) When sample standard deviation is known

x – Sample mean

s – Sample SD

n – Sample size

df – Degrees of freedom (n-1)

 (^) – Significance level

t

  • Critical value (from table)

Formula for test value

n

s

x t

Conditions:

  1. Random – Samples must be randomly chosen

  2. Independent – Samples must be independent

  3. Nearly Normal – Data must follow a nearly normal distribution

Steps for One Mean Hypothesis testing when Population Standard Deviation is Unknown

  1. Determine the null and alternative hypotheses

  2. Check to ensure conditions hold

  3. Calculate x and s^ x by calculator. Also find df.

  4. Find t

(critical value) and t (test value)

  1. Fail to reject or reject the null hypothesis based on the t-value and t

Example 1

In 1998, the average price for bananas was 51 cents per pound. In 2003, the following

15 sample prices (in cents) were obtained from local markets:

Is there significant evidence to suggest that the average retail price of bananas is

different than 51 cents per pound? Test at the 5% significance level.

Example 2

A 1995 study of 4-year college graduates showed that the average graduate had 132

credit hours. The following 12 samples of credit hours were recorded from Maryland

college students concerning their credit hours upon graduation:

Is there significant evidence to suggest that the average number of credit hours for

4-year graduates is more than 132 credit hours? Test at the 1% significance level.

Hypothesis Test of Two Means

I. Small, Independent Samples with unknown but equal population deviations

Conditions

  1. Population standard deviations are unknown but assumed to be equal
  1. The samples are randomly selected independent

  2. Two populations are approximately normally distributed or the samples are large

Formulas

Pooled Standard Deviation:

2

1 2

2

2 2

2

1 1

n n

n s n s s p

Estimator of Standard Deviation:

1 2

1 1

1 2 n n

S s x x p

  

Test Value:

1 2

1 2

x x

S

x x t

  (^) Degrees of freedom (df) = 2 1 2

nn

Example

A car sales manager records that in June 25 cars were sold with an average price of

$16,500 and a standard deviation of $2,000. In December 20 cars were sold with an

average price of $17,300 and a standard deviation of $1,600. The two populations are

normally distributed and the standard deviations are unknown but equal.

Is there significant evidence to suggest that the average price of cars in June is less than

the average price of cars in December? Test at the 5% significance level.

II. Small, Independent Samples with unknown and unequal population deviations

Conditions

  1. Population standard deviations are unknown and unequal

  2. n 1^ ^30 , n^ 2 ^30 , and are independent

  3. Two populations are approximately normally distributed

Formulas

Degrees of Freedom:

2

2

2

2

2

1

2

1

2

1

2

2

2

2

1

2

1

n

n

s

n

n

s

n

s

n

s

df

rounded down!

Estimator of Standard Deviation:

2

2

2

1

2

1

( ) ( )

1 2 n

s

n

s S x x

  

Test Value:

1 2

1 2

x x

S

x x

t

Three Types of Chi Square tests

  1. Test to see if sample results follow population

  2. Goodness of fit - Test to see if samples have same probability of occurring

  3. Test for Independence or Homogeneity

** If we are testing the second case, then we deduce that p =

k

1

Steps for Chi-Square Tests

  1. Determine the null and Alternative Hypotheses

  2. Calculate

2 * (  ) (critical value)

  1. Find

2  (^) (test value)

  1. Fail to reject or reject the null hypothesis based on the

2  -value and

2 * (  )

Example 1 - Sample Proportions follow Population Proportions

A recent study shows the proportions people answered to the question “Where does most

of my stress come from at work?”

Demand of Job - 54%

Co-Workers – 20%

Boss – 10%

Layoff - 8%

Other reasons – 8%

A study of 800 random employees was conducted asking the same question. The

following were the results:

Demand Co-workers Boss Layoff Other

Is there significant evidence to suggest that this distribution is different than the

population study? Test at the 1% significance level.

Example 2 - Goodness of Fit Test

Sean Bollins of Bel Air, a local beverage establishment, wants to know if they should

change the way they are scheduling their employees. They are currently scheduling the

same number of hours on each day of the week. The following represents the number of

patrons in a particular week:

Monday Tuesday Wednesday Thursday Friday

Is there significant evidence to suggest that the number of patrons is not equal for

each day of the week and that they should modify the schedule? Test at the 5%

significance level.

Chi-Square Test for Independence

  • Tests to determine if two or more categories are independent or dependent.

Steps to performing the test of Independence

a. Determine the null and Alternative Hypotheses

b. Find E for all categories where GrandTotal

RowTotal Column Total E

( )( ) 

c. Calculate

2 * (  ) using 

 

E

O E

2 2 ( ) 

d. Find Degrees of Freedom using df = (rows – 1)(columns – 1)

e. Find

2  (^) (test value)

f. Fail to reject or reject the null hypothesis based on the

2  (^) -value and

2 * (  )

Example

A study wished to determine if gender is independent of buying name-brand products.

The following shows the results of 700 people surveyed concerning their gender and

preference:

Is there evidence to suggest that gender and preference are independent? Perform a test at

the 5% significance level.

The F-Distribution (ANOVA)

Finding F*

  1. Find page w/ alpha level

  2. df numerator = k-

  3. df denominator = n-k

Formulas

Name Brand Generic

Men 170 145

Women 182 203

Formulas

p = population proportion (p = 0.5 unless stated otherwise)

n

pqp

P Value

x p z

p

 

 

where numberoftotalsigns

numberofdesired sign

x

Steps for Sign Test for Paired Samples

  1. Determine the null and alternative hypothesis

  2. Compute sign table for matched pairs

  3. Compute ^ p and p-value

  4. Derive the conclusion

Example 1

An after school tutoring program wishes to determine if it is helping students with its

program in Algebra. A random sample was taken in which 12 students take an entry test

and after 2 weeks of tutoring the 12 students take a test covering the same concepts. The

following are the results:

Student 1 Student 2 Student 3 Student 4 Student 5 Student 6

Before 55 60 30 61 73 62

After 61 67 0 80 73 80

Student 7 Student 8 Student 9 Student 10 Student 11 Student 12

Before 60 51 0 70 53 80

After 45 70 56 70 85 100

Is there significant evidence to suggest that the after school program is beneficial? Test at

the 5% significance level.

Example 2

An national educational supervisor wishes to determine if the high school dropout rate is

higher among males or females. The following data represents 15 regions across the U.S.

and their corresponding dropout rate per 100 students:

Region 1 Region 1 Region 1 Region 1 Region 1 Region 1

Male 7.3 7.5 7.7 21.8 4.2 12.

Female 7.5 6.4 6.0 20.0 2.6 5.

Region 1 Region 1 Region 1 Region 1 Region 1 Region 1

Male 3.5 4.2 8.0 9.7 14.1 3.

Female 3.1 4.9 12.1 10.8 15.6 6.

Region 1 Region 1 Region 1

Male 3.6 4.0 5.

Female 4.0 3.9 9.

Is there significant evidence to suggest that the dropout rates are different? Test at the

10% significance level.

Spearman Rank Correlation

  • Used to determine if two different groups rank the quality of observations in the

same manner. Tests for one of two properties:

  • Monotone Increasing: As one variable increases, so does the other
  • Monotone Decreasing: As one variable decreases so does the other

Formulas

( 1 )

6

1 2

2

 

n n

d

r s

Steps for Spearman Rank Correlation

  1. Derive the null and alternative hypothesis

  2. Create a rank table and compute

2 d

  1. Compute rs^ and find the critical value from the table

  2. Derive and state the conclusion

Example 1

An army psychologist gives 2 tests to 7 randomly selected cadets: one an aggression test

the other a humor test. The following is a table of the results:

Cadet 1 Cadet 2 Cadet 3 Cadet 4 Cadet 5 Cadet 6 Cadet 7

Aggression 60 85 78 90 93 45 51

Humor 78 42 68 53 62 50 76