Docsity

Probability - Lecture Slides - Introductory Statistics | STAT 2000, Study notes of Statistics

Toggle sidebar
bg1
Probability
• Probability is the likelihood of a particular outcome occurring.
• Example: probability of drawing a club from a deck of cards
• Example: in an urn full of 10 red marbles and 12 black
marbles, the probability of drawing a black marble is
p=12
10 +12
=12
22
Law of Large Numbers
• As we repeat an experiment a large number of
times, the ratio of the number of successes in
the sample to the total number of trials will
approach the probability of the event.
• Example: proportion of heads should go to .50
10 coins: 7 H 3 T p = .70
100 coins: 53 H 47 T p = .53
1000 coins: 498 H 502 T p = .498
10000 coins: 5002 H 4998 T p = .5002
Types of Probabilities
• Classical/Relative Frequency
• Subjective
– Likelihood of an event is based on your own
personal judgment
Probability Definitions
• A complement
– All possible events
that are not in A
• Example:
– A = it’s snowing
– Ac = it’s not snowing
P(AC)=1!P(A)
Example of a Complement
• We have a total of 50 seats in a room, and a shaded square above
represents a taken seat.
• How many people are in this room?
• It’s easier to instead count the number of empty seats, of which there
are 4. Therefore the number of people is 50 - 4 = 46
• So the complement here is “all empty seats” which gives us the needed
answer more easily.
Probability (HW 5.1-5.3)
• The game Scrabble contains 100 lettered tiles: 56 consonants,
42 vowels, and 2 blanks. The 42 vowels can be further classified
as follows: 9 A’s, 12 E’s, 9 I’s, 8 O’s, and 4 U’s. Suppose we
reach into a bag containing all the tiles and select one letter.
• What’s the probability of drawing a tile with a letter on it?
–98 such tiles, so 98/100 = .98
• If we draw a vowel, what’s the probability it’s in the upper half of
the alphabet? (Meaning A - M)
–Out of 42 vowels, the A’s, E’s, and I’s count, so
• If the tile drawn contains a letter on it, what’s the probability that
letter is not a vowel? Out of 98 letters, 56 of them are not vowels.
9+12 +9
42
=30
42
=.714285
56
98
=.57143
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Probability - Lecture Slides - Introductory Statistics | STAT 2000 and more Study notes Statistics in PDF only on Docsity!

Probability

  • Probability is the likelihood of a particular outcome occurring.
  • Example: probability of drawing a club from a deck of cards
  • Example: in an urn full of 10 red marbles and 12 black

marbles, the probability of drawing a black marble is

p = (^1012) + 12 = (^1222)

Law of Large Numbers

• As we repeat an experiment a large number of

times, the ratio of the number of successes in

the sample to the total number of trials will

approach the probability of the event.

• Example: proportion of heads should go to.

10 coins: 7 H 3 T p =. 100 coins: 53 H 47 T p =. 1000 coins: 498 H 502 T p =. 10000 coins: 5002 H 4998 T p =.

Types of Probabilities

• Classical/Relative Frequency

• Subjective

– Likelihood of an event is based on your own

personal judgment

Probability Definitions

• A complement

  • All possible events that are not in A

• Example:

  • A = it’s snowing
  • Ac^ = it’s not snowing

P ( AC^ ) = 1! P ( A )

Example of a Complement

  • We have a total of 50 seats in a room, and a shaded square above represents a taken seat.
  • How many people are in this room?
  • It’s easier to instead count the number of empty seats, of which there are 4. Therefore the number of people is 50 - 4 = 46
  • So the complement here is “all empty seats” which gives us the needed answer more easily.

Probability (HW 5.1-5.3)

  • The game Scrabble contains 100 lettered tiles: 56 consonants, 42 vowels, and 2 blanks. The 42 vowels can be further classified as follows: 9 A’s, 12 E’s, 9 I’s, 8 O’s, and 4 U’s. Suppose we reach into a bag containing all the tiles and select one letter.
  • What’s the probability of drawing a tile with a letter on it?
    • 98 such tiles, so 98/100 =.
  • If we draw a vowel, what’s the probability it’s in the upper half of the alphabet? (Meaning A - M) - Out of 42 vowels, the A’s, E’s, and I’s count, so
  • If the tile drawn contains a letter on it, what’s the probability that letter is not a vowel? Out of 98 letters, 56 of them are not vowels.

Probability (HW 5.1-5.3)

We have an urn full of marbles of the following colors: 5 green, 4 blue, 3 yellow, 2 red, 1 white (15 total). What’s the probability of drawing a primary color? (Red, yellow, or blue) If the marble drawn was a primary color, what’s the probability it was either red or yellow? Out of 9 primary color marbles, we have 2 red and 3 yellow, so If the marble drawn was not a primary color, what’s the probability it was not green?

There are 6 non-primary color marbles: 5 green, 1 white. So, out of 6 marbles, 1 is not green (the white). 1 6

Probability (HW 5.1-5.3)

  • Find the probability that an individual selected is female and prefers strawberry ice cream. Out of all 2176, we have 302 that are both female and like strawberry, so 302 / 2176 =.
  • Find the probability that an individual selected is female or prefers strawberry ice cream. Out of 2176 again. We count the number who are either female or like strawberry, or both. (As long as they have at least one of the two characteristics, we count them.) As indicated above, this is everybody except the males who like chocolate. So the answer is (513 + 302 + 871) / 2176 =. Chocolate Strawberry^ Total

Male

Female

Total

Probability (HW 5.1-5.3)

  • Given that the person selected is male, find the probability they prefer strawberry. Out of 1361 males, 871 prefer strawberry, so the answer is 871 / 1361 =.
  • Given that the person prefers strawberry, find the probability they are male. Out of 1173 people that like strawberry, 871 of them are male, so 871 / 1173 =. Chocolate Strawberry^ Total

Male

Female

Total

Random Variables

• Discrete

– A countable, whole-number of possible values.

– The number of words in a magazine article

– The number of clubs in a drawing of 10 cards

• Continuous

– An uncountable, infinite number of possible

values, with decimals allowed.

– The weight of an athlete

– The time taken to complete a race

Discrete Probability Distribution

Two requirements:

1. Each individual p(x) is between 0 and 1,

inclusive

2. All probabilities sum to 1

The mean of a discrete distribution:

Also called average, or expected value

MEAN = " x! p ( x )

Mean of a Distribution (HW 6.1 - 6.2)

  • You are hiking through the Fire Swamp and, along the way, you have to battle Rodents of Unusual Size. You will meet certain numbers with various probabilities.
  • Find the missing probability of an inconceivable 5 Rodents. 1 - 0.05 - 0.12 - 0.15 - 0.36 = 0.
  • Find the probability of battling at least 3 Rodents. How about more than 3? At least three: 0.15 + 0.36 + 0.32 = 0. More than three: 0.36 + 0.32 = 0.
  • As you wish, work out how many Rodents you should expect to battle on one pass through the Fire Swamp.
  • (1 x 0.05) + (2 x 0.12) + (3 x 0.15) + (4 x 0.36) + (5 x 0.32) = 3.
  • On average, you will encounter 3.78 Rodents.

x 1 2 3 4 5

p(x) 0.05 0.12 0.15 0.36 0.

Normal Probability

• Draw a sketch of a

normal curve if we

were looking for the

probability to the left

of z = 1.5.

Normal Probability

Answer =.

Normal Probability

• Draw a sketch to help

find what z-value has

probability 0.4 to the

right.

• Here 0.4 is a

probability, the area of

the blue region. We

are looking for z (so

going backwards).

Normal Probability

Answer: z = 0.

Area Between Two Lines

• Find the probability

within 1.2 standard

deviations from the

mean. Make a sketch

of this.

• Try to think of a

strategy for this.

Area Between Two Lines

(1st Method)

Area Between Two Lines

(1st Method)

Answer:

Area Between Two Lines

(2nd Method)

We want P(-1.2 < Z < 1.2) First get the probability left of z = 1.2. P(Z < 1.2) =.

Area Between Two Lines

(2nd Method)

Next, get the probability left of - 1.2.

P(Z < - 1.2) =.

Answer is the difference:

P(Z < 1.2) = .88493 -.

Normal (HW 6.1-6.3)

  • The weight of a platypus is normally distributed with mean 4.4 and sd 0.4 pounds. Suppose the probability that a platypus’ weight falls above 5 pounds is .0668. Find the probability that a randomly selected weight is between 4.4 and 5. Make a sketch as well!

Normal (HW 6.1-6.3)

  • Same problem: μ = 4.4, and! = 0.4.
  • What is the z-score for a platypus with a weight of 5.5 pounds?
  • What is the z-score for a platypus whose weight is 2.61 standard deviations to the left of the mean? A z-score is the number of deviations away from the mean a point lies. To be 2. deviations below the mean is to have a z-score of -2.61. (Negative because we’re below)
  • What weight corresponds to the above z-score?

z = x^!^ μ

"

= 5.5^!^ 4.

!2.61 = x^!^ 4. .

" x = (! 2.61) (.4 ) + 4.

" x = 3.

Percenti les

• The Pth percentile is

the x that gives P %

below on the normal

• Always below

• Example: here the x

is the 30th percentile

because 30% of the

data falls below x

Sampling Distribution (HW 7.1-7.2)

• 100 subjects are from a population skewed left,

with mean 40 and s.d. 8.

• Shape of Sample Data

Skewed left (population)

• Mean of Sampling Distribution of Means

40 (population)

• St. Dev. Of Sampling Distribution of Means

8 / sqrt(100) =.

• Shape of Sampling Distribution of Means (and

why):

Approximately Normal (Central Limit

Theorem)

Mean & Standard Error Properties

As the sample size n increases…

  • The mean of the sampling distribution does not change.
  • The standard error (s.d. of the sampling distribution) decreases.
  • Example: " > # (larger denominator, smaller overall fraction) Similarly, as the sample size decreases...
  • The mean of the sampling distribution does not change.
  • The standard error increases (the opposite).

Distributions (HW 7.1-7.2)

  • The size of a badger colony follows a skewed left distribution with mean 20 and s.d. 4. A sample of 36 colonies is selected, and this sample has mean 16 and s.d. 5.5.
  • What is the center and spread for the population?
  • What is the center and spread for the sample data?
  • What shape is the sample data? Skewed left, same as the population

x = 16 s = 5.

Distributions (HW 7.1-7.2)

  • What is the center and spread for the sampling distribution

of the sample means with size 36?

  • What shape is the sampling distribution of the sample

means?

Approximately normal, since n > 30 (CLT)

  • Suppose now we adjust the sample size, and the new

resulting sampling distribution has a standard error of 1. Did

we use a larger or smaller sample size?

Smaller, since standard error increases with a smaller

sample size

  • How will the mean of the new sampling distribution change?

It stays the same: it does not depend on sample size

μ = 20! n

StatCrunch (HW 7.1-7.2)

• The average household temperature in

Vancouver is 67.6 degrees, and the s.d. is

4.2. A sample of 51 households is selected.

• What’s the probability the average of this

sample will be above 68.1? Fill in the boxes.

StatCrunch (HW 7.1-7.2)

• Sampling distribution

with n = 51

• Mean = 67.

(population’s)

• S.D. = standard error

StatCrunch (HW 7.1-7.2)

• Same question:

What’s the probability

the average of the

sample with be within

1.5 degrees of the

population mean?

StatCrunch (HW 7.1-7.2)

Proportions Problem Computing Square Roots

  • It is very important to type in square roots on your calculator correctly, especially with the proportions standard errors
  • Example: compute
  • One safe way is to first compute .20(1 - .20) / 64 = .0025, then square root the result: sqrt(.0025) =.
  • Otherwise, use parentheses wisely Correct: sqrt(.20(1 - .20)/64) =. Correct: sqrt(.20.80/64) =. Incorrect: sqrt(.20)(1 - .20)/64 =. Incorrect: sqrt(.20(1 - .20)) / 64 =.

Proportions (HW 7.1-7.3)

• 60% of students at an academy in Vancouver

are female. In a random sample of 55 students,

26 of them are female.

• Let 1 = female and 0 = male.

• Identify the population distribution of gender.

X P(X)

Proportions (HW 7.1-7.3)

  • Identify the data distribution of gender. X P(X) 1 26 / 55 =. 0 1 - .47273 =.
  • What is the mean & standard error of the sampling distribution of the sample proportion?
  • Is the sampling distribution approximately normal? np = 55(.60) = 33 and n(1-p) = 55(.40) = 22, so yes