Docsity

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

Toggle sidebar
bg1
Page 1 of 58
Chapter Five – Probability
5.1 What is probability?
Outcome - A particular result.
Probability – measure of the likelihood of an outcome.
Probability is the proportion of times an outcome occurs in a large
number of trials.
If I toss a coin ten times, I could get 5 heads and 5 tails, or I could get 7
heads and 3 tails, or I could get all 10 heads and 0 tails. All these things
could happen in a small number of trials.
BUT, if I toss a coin 10,000 times, what we will see is that we will get
very close to getting 5,000 heads and 5,000 tails. This is called the Law
of Large Numbers, and you will run through an example like this in your
lab.
Law of Large Numbers – If the number of times an experiment is
repeated is increased, the ratio of the number of successful occurrences
to the number of trials will tend to approach the probability of the event.
This law of large numbers explains why casinos make money. For a
short time, a gambler may be lucky and make money, but in the long
run, the casino knows that it will come out ahead.
Page 2 of 58
5.2 How can we find probabilities?
To find probabilities, the first step is to list all the possible outcomes.
Sample Space – The set of all possible outcomes of an experiment
(denoted by S).
What is the sample space for one coin toss?
What is the sample space for one die toss?
Event – Any subset of a sample space. Events are denoted using letters.
If you are rolling a die, what is the event of rolling an even number?
We define the probability of an event A, denoted P(A), as the likelihood
of the event occurring.
And the idea that, with any roll of a die, we could roll a 1, 2, 3, 4, 5, or 6
is called randomness.
Page 3 of 58
Two Types of Probabilities:
1. Classical Probability or Relative Frequency Probability
where P(A) = Number of ways an Event can occur
Number of possible outcomes
Example: What is the probability of rolling an even number?
2. Subjective Probability – probability based on subjective judgment.
Example: What do you think the probability is that you will get an A on
the next test?
This probability would be totally subjective, based on what you think.
In this class, we will only deal with classical probabilities.
Page 4 of 58
Properties of Probabilities:
1. The probability of any event must be between 0 and 1 inclusive. That
is 0 ≤ P(A) ≤ 1.
2. The total of all the individual probabilities equals 1.
Check that these rules are held with the six possible outcomes from
rolling a die.
Example: A university held a blood pressure screening clinic
for its professors. The results are summarized in the table
below by age group and blood pressure level.
Low Blood
Pressure
High Blood
Pressure
Under 50
(Middle-age)
64 51 115
50 and Over
(Old)
31 73 104
Total 95 124 219
a. What is the probability that a randomly selected professor is middle-
age?
b. What is the probability that a randomly selected professor has high
blood pressure?
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

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

Page 1 of 58

Chapter Five – Probability

5.1 What is probability?

Outcome - A particular result.

Probability – measure of the likelihood of an outcome.

Probability is the proportion of times an outcome occurs in a large number of trials.

If I toss a coin ten times, I could get 5 heads and 5 tails, or I could get 7 heads and 3 tails, or I could get all 10 heads and 0 tails. All these things could happen in a small number of trials.

BUT, if I toss a coin 10,000 times, what we will see is that we will get very close to getting 5,000 heads and 5,000 tails. This is called the Law of Large Numbers, and you will run through an example like this in your lab.

Law of Large Numbers – If the number of times an experiment is repeated is increased, the ratio of the number of successful occurrences to the number of trials will tend to approach the probability of the event.

This law of large numbers explains why casinos make money. For a short time, a gambler may be lucky and make money, but in the long run , the casino knows that it will come out ahead.

Page 2 of 58

5.2 How can we find probabilities?

To find probabilities, the first step is to list all the possible outcomes.

Sample Space – The set of all possible outcomes of an experiment (denoted by S).

What is the sample space for one coin toss?

What is the sample space for one die toss?

Event – Any subset of a sample space. Events are denoted using letters.

If you are rolling a die, what is the event of rolling an even number?

We define the probability of an event A , denoted P(A), as the likelihood of the event occurring.

And the idea that, with any roll of a die, we could roll a 1, 2, 3, 4, 5, or 6 is called randomness.

Two Types of Probabilities:

  1. Classical Probability or Relative Frequency Probability

where P(A) = Number of ways an Event can occur Number of possible outcomes

Example: What is the probability of rolling an even number?

  1. Subjective Probability – probability based on subjective judgment.

Example: What do you think the probability is that you will get an A on the next test?

This probability would be totally subjective, based on what you think.

In this class, we will only deal with classical probabilities.

Properties of Probabilities:

  1. The probability of any event must be between 0 and 1 inclusive. That is 0 ≤ P(A) ≤ 1.
  2. The total of all the individual probabilities equals 1.

Check that these rules are held with the six possible outcomes from rolling a die.

Example: A university held a blood pressure screening clinic

for its professors. The results are summarized in the table

below by age group and blood pressure level.

Low Blood

Pressure

High Blood

Pressure

Under 50

(Middle-age)

50 and Over

(Old)

Total 95 124 219

a. What is the probability that a randomly selected professor is middle- age?

b. What is the probability that a randomly selected professor has high blood pressure?

Page 5 of 58

c. Which is more likely? Complement of an event A – all outcomes in the sample space that are not in event A. We use Ac^ to denote the Complement of A. Sometimes you will also see the complement with the following notation, ⎯A.

P(A c^ ) = 1 – P(A)

Example: In rolling a die, let’s say event A is rolling an even number. What is the complement of A and what is the probability of A c^?

Example: According to the National Gambling Impact Study Commission, 52% of Americans have played state lotteries. What is the probability that a randomly selected American has not played a state lottery?

Page 6 of 58

AND an OR probabilities Compound events are formed by combining two or more events. We will study the following two compound events:

  1. The probability of A AND B which consists of the outcomes that are in both A and B.
  2. The probability of A OR B which consists of outcomes that are in A or B or both. In probability, “A or B” denotes that A occurs or B occurs or both occur.

Example: What is the probability of rolling a 4 OR rolling a 6?

AND and OR Probabilities with Contingency Tables

We calculate AND and OR probabilities by simply looking at the counts in a contingency table.

Left-handed Right-handed Total Male 160 600 760 Female 140 560 700 Total 300 1160 1460

Example: If a person is selected at random, what is the probability that the person is male AND left-handed, or in other words, a left-handed male?

Example: If a person is selected at random, what is the probability that the person is male OR left-handed?

5.3 Conditional Probability: What’s the

probability of A, Given B?

Conditional Probability –the probability of event A given that B has already occurred.

Example: If you roll a die, and you know you have rolled an even number, what is the probability you have rolled a 6?

This is a conditional probability. What we are looking for is the probability of rolling a 6 given that you know you have rolled an even number.

Let’s find this probability using common sense:

Page 13 of 58

Mean of a Probability Distribution for a Discrete Random Variable

The mean of a probability distribution for a discrete random variables is given by the formula

MEAN = ∑[x · P(x)]

where x is the value of the random variable (or outcome) and P(x) is the probability of observing that particular value (or outcome).

What we are really doing is calculating an average or mean outcome using all the possible outcomes and their corresponding probabilities. We call it a weighted average****.

Example: Think about the example of rolling a die. Let’s say we want to calculate the average roll of a die. This would be the same as computing the mean of the discrete random variable X below.

x P(X) x · P(X) 1 1/ 2 1/ 3 1/ 4 1/ 5 1/ 6 1/

There is actually a new term we will use for this “mean of a discrete random variable” and it is on the next page.

Page 14 of 58

Expected Value

The mean of a random variable is the long-run average

outcome of the experiment. In this sense, as the number of

trials of the experiment increases, the average result of the

experiment gets closer to the mean of the random variable.

For this reason, the mean of a random variable is often

called the expected value.

Example: Given the probability distribution we saw before

for the Red Sox, find the mean/expected value of this

probability distribution and interpret it.

X P(X)

6 or more 0.

Example: There are three envelopes in a game – one

contains $45 and the other two contain nothing. For the

player, how many different outcomes to the game are there?

For each outcome, how much would the player gain?

What is the probability for each outcome?

WHAT IS THE EXPECTED VALUE FOR THIS GAME?

Example: Suppose someone gives me a lottery ticket

for my birthday. It says on the ticket that the

probability that this is the winning lottery ticket is

0.000001, but if it is the winning ticket I get

$360,000. What is the expected value of this lottery

ticket?

Page 17 of 58

Example: Suppose a life insurance company sells a

27-year old woman a $5,000 one-year life insurance

policy for $300. If the probability that she dies in the

coming year is 0.056, what is the expected gain for

the insurance company?

Page 18 of 58

Probability Distributions for Continuous Random Variables

So far, we have been finding the probability of discrete variables, where we have a countable number of outcomes, like the probability that the Red Sox hit 3 home runs in a game. We have been using probability distributions. We have looked at data like the following: Probability Distribution for the Red Sox Example

0

0 1 2 3 4 5 6 or more Number of Home Runs in a Game

Relative Frequency

When we have data that is continuous, which can include numerous decimal places, the graph of our data transforms from a histogram to a curve, like the following:

Think of an example like the heights for all UGA students. Probabilities for continuous random variables are determined by finding areas under the curve. PROBABILITY = AREA UNDER THE CURVE

A continuous random variable has possible values that form an interval. Each interval has probability between 0 and 1, and the probability is the area under the curve above that interval. The interval containing all possible values has probability equal to 1, so The total area under the curve is equal to 1. Example: Let’s say that the curve that represents the heights for all UGA students is bell-shaped and looks like the following:

40 60 80 We can find the proportion of students that are over 70 inches in height. Shade that interval in the graph below:

40 60 80 We can also find the probability that, if we randomly selected a student, they would be between 50 and 60 inches tall. Shade that interval in the graph below:

40 60 80 In the next section, we will see how we can actually use StatCrunch to calculate these probabilities for us.

6.2 How can we find probabilities for bell-shaped distributions? The most well known and most often used probability distribution is the normal distribution. This distribution is symmetrical and bell- shaped.

Recall the Empirical Rule: μ ± 1σ (-1 to +1) ~ 68% of the area in other words, approximately 68% of the area under the normal curve is within one standard deviation of the mean.

μ ± 2σ (-2 to +2) ~ 95% of the area in other words, approximately 95% of the area under the normal curve is within two standard deviations of the mean.

μ ± 3σ (-3 to +3) ~ 99.7% of the area in other words, approximately 99.7% of the area under the normal curve is within three standard deviations of the mean.

Page 25 of 58

We can also calculate these probabilities according to how many standard deviations away from the mean that a value is.

Let’s go back to the example where μ = 50 and σ = 10.

We wanted to find the probability below 65.

We know we can just plug these numbers into StatCrunch and get the answer, but let’s do it a different way.

How many standard deviations from the mean is 65? To get this, we just have to calculate the Z-score for 65 because the Z-score tells us how far away a value is from the mean in terms of the standard deviation:

z − score = =

So 65 is 1.5 standard deviations above the mean.

Draw a curve showing the actual population mean and standard deviation and shade in the probability below 65.

Now, draw a curve with mean = 0 and standard deviation = 1 (we call this the standard normal distribution ) and shade in the probability below 1.5 (because that is the Z-score we calculated).

It is the same probability! Page 26 of 58

Now let’s check that this probability is the same as we got on page 22, that the probability below 65 is 0.9331928.

We want to see if the probability below 1.5 on a standard normal distribution is the same.

So to get this area go to STAT Æ Calculators Æ Normal.

Since we are trying to find probability in terms of a Z-score, all we have to do is change the mean to 0 and standard deviation to 1, and here’s what we get:

It’s the same probability as before, 0.9331928. So there are two ways to get these probabilities:

  1. By putting in the actual mean and standard deviation and finding the probability associated with the value
  2. By putting in mean = 0 and standard deviation = 1, converting your value into a Z-score, and finding the probability associated with that Z- score.

This second way seems more tedious, but there is a reason it is important.

If we didn’t have StatCrunch, we would have to use tables to look up these probabilities, and these tables are based on Z-scores. So lucky for us, we have StatCrunch.

Let’s do a couple more of these Z-score probabilities just to make sure we understand them.

EXAMPLE: Let’s use the StatCrunch calculator to check that one of the Empirical Rule probabilities are correct.

Go to STAT Æ Calculators Æ Normal.

Let’s check if the probability/area within two standard deviations of the mean really is close to 95%.

This means we are trying to check if the probability between Z = -2 and Z = 2 is close to 95% or 0.95. Draw this curve below and shade in the area/probability we are looking for.

StatCrunch won’t find the area in between two values, so we just have to find the probability to the left of Z = -2 and the probability to the right of Z = 2. Probability to the left of Z = -2:

Probability to the right of Z = 2:

Notice that these two areas are the same. This is because the normal distribution is symmetrical.

Page 29 of 58

Now that we know the probability to the left of -2 is .02275. And the probability to the right of 2 is .02275.

The probability between -2 and 2 is 1 – (.02275*2) = 0.

So the Empirical Rule is correct, approximately 95% of the probability does lie within two standard deviations of the mean.

Let’s do some more of these type of calculations:

Find the probability that an observation is more than 2.27 standard deviations above the mean Ù area to the right of Z = 2.27:

This probability equals 0.

Page 30 of 58

So far, we have been doing calculations where we are given z-scores, and we want an area or probability associated with those z-scores. Now, let’s do some examples where we are given the area/probability, and we want to find the z-score associated with that area/probability.

  1. Find the z-score that has area/probability .2912 below it:

The Z-score with area/probability .2912 below it = -0.

  1. Find the z-score that is the 90 th^ percentile:

Z = 1.

Here are some tougher probabilities associated with Z-scores that are similar to questions you will see on the homework:

For the normal probability shown below, find the probability that an observation falls in the shaded region:

For a normal distribution, find the probability that an observation falls within 2.58 standard deviations of the mean.

Now that we have done many, many, many examples of probabilities/areas under the normal curve involving z-scores let’s actually get to some more real data examples. REMEMBER, ALWAYS DRAW PICTURES OF THE CURVES.

Example #7: IQ scores are normally distributed with a mean of 100 and a standard deviation of 16.

a) What IQ score is the 98 th^ percentile?

b) How many standard deviations above the mean is the 98th^ percentile? (This is the same as asking: Find the z-score that is the 98 th^ percentile.)

Check that a) is the z-score that matches up with the IQ score in b).

Page 37 of 58

Let’s do it one more time for 10 more people:

Person Siblings

⎯ x = _______

Sometimes we will get a sample mean above the population

mean, sometimes we will get a sample mean below the

population mean, and occasionally we might get a sample mean

right at the population mean.

Here’s the idea, let’s say I went and did this for every

combination of 10 people, and calculated a sample mean for

every combination of 10 people. What we are interested in is

seeing what the distribution of all these possible sample means

would look like. That distribution is what we call the Sampling

Distribution of the Sample Mean.

Page 38 of 58

To find probabilities involving these sample means, like the

probability that a sample of ten people are going to have an

average of more than 2 siblings per person, we will have to use

the StatCrunch Normal Calculator.

So we will need three things:

1. What is the mean, or in other words, the overall average of

all these possible sample means?

2. What is the standard deviation, or in other words, the

spread of the values for all these possible sample means?

3. What is the shape of the distribution of these sample

means? Because to use the Normal Calculator, they need to

be normally distributed.

We will talk about these three things, and how to calculate these

probabilities in Chapter 7.

7.1-7.2 : Sampling Distribution of the Sample Mean

The general idea behind obtaining the sampling distribution

of the sample mean is:

1. Obtain a simple random sample of size n.

2. Compute the sample mean, ⎯ x.

3. Assuming that we are sampling from a finite

population, repeat steps 1 and 2 until all simple random

samples of size n have been obtained.

This is easy to do with a finite population with very few

values. Let’s look at an example:

Example: Draw all possible samples of size 2 from the

population {2,4,6,8}. Construct the sampling distribution of

the sample mean.

What is the probability that we would get a sample mean of

5 from a sample of size 2 from this population?

However, most of the time we will not have all the values

from a population, because most populations we look at are

very large.

So to find probabilities involving sample means, like we

mentioned before, we need to know what the distribution

looks like. We need to know the mean, the standard

deviation and the shape.

1. Mean:

The average or mean of all the possible sample means we

could get will ALWAYS be equal to the overall population

mean.

In other words, μx-bar = μ.

Check that this is true in the example on the previous page.

Page 41 of 58

2. Standard Deviation:

When we are talking about the spread, or standard

deviation, of a sampling distribution, we call it the standard

error. Many students get confused by this term, but just

think of the standard error as a type of standard deviation.

It just measures the spread of a sample statistic like the

sample mean. It just places a value on the spread of all the

possible sample mean values.

When we are talking about the sampling distribution of the

sample mean, the standard error =

n

Again, we don’t go through proofs of why this is true, but

think about why it makes sense.

Individual values in a population are going to be all over the

place. Some will be high, some will be low, and we calculate

their standard deviation to be σ.

However, sample means are not going to be as spread out.

Yes, we might have some high values and we might have

some low values in a sample, but for the most part these

values are going to average out close to the mean. So the

standard error or spread isn’t going to be as big as σ, it is

actually

n

Page 42 of 58

3. Shape:

To find these probabilities of sample means that we are

looking for, we need to make sure that the distribution of

these sample means is bell-shaped or normal.

To check for this, we need to just make sure one of these two

things is true:

1. If the population is normally distributed then the

sampling distribution of the sample mean is

normally distributed, regardless of sample size.

2. If we are using a large enough sample size

(usually we say n greater than 30), the sampling

distribution of the sample mean is approximately

normal regardless of the distribution of the

population. (This is the Central Limit Theorem.)

Based on all these things we have talked

about, we can now find probabilities

involving sample means in StatCrunch. We

just have to make the following changes:

1. Make sure the sampling distribution of

the sample mean is normally

distributed. We do this by checking if

the population we are sampling from is

normal OR if we are using n > 30.

2. When we want to find

probabilities/areas under the curve

involving sample means, we will still

put in μ for the Mean in StatCrunch, but

we will now put in σ/√n for the standard

deviation. Other than that, everything

else will be the same.

We use this new standard deviation (called the

standard error) because sample means are not

as spread out as much as individual data values,

so the new standard deviation is σ/√n rather

than just σ.

Example: Suppose a single value is selected from a normal population with mean μ = 5 and standard deviation σ = 1. Use StatCrunch to find the probability that the value is greater than 5.5.

Now, suppose a sample of size 25 is selected from this population. Now, let’s use StatCrunch to find the probability that the sample mean for these 25 values is greater than 5.5. What do we need to change to do this? (Notice that the standard deviation that we use in our StatCrunch calculator is now the standard error.)

Page 49 of 58

RECAP:

Notation and Terminology:

Term Population Sample Sampling

Distribution

Mean μ μ = μ

Standard

Deviation

σ s

Sample standard deviation measures the

spread of data values.

Standard error is a type of standard deviation

that measures the spread of the possible sample

statistic values. For example, standard error

measures how spread out the possible sample

means are from different samples.

x x

x n

Page 50 of 58

7.1: SAMPLING DISTRIBUTION OF THE SAMPLE

PROPORTION

There is one other Sampling Distribution we are interested in,

the Sampling Distribution of the Sample Proportion.

Instead of looking at an average from a sample, maybe we want

a proportion from a sample that fit a certain category.

Here’s an example:

Let’s say again that the population we are interested in is

everyone in this class. And let’s say we are interested in the

proportion of women in the class.

What if I told you that I got everyone’s information, and the

proportion of women in the class is p = 0.55.

This would be a population proportion because it is the

proportion for the whole class, and we use the letter “p” to

represent this population proportion.

Now, what if I took a sample of ten people, found their gender,

and found the proportion of women for these 10 people.

Let’s do it:

Person Gender

The proportion from these 10 people would be a sample

proportion because it is just for these 10 people, not everyone in

the class.

And the calculated sample proportion for this sample is

= _______.

This is the notation we use to denote a sample proportion.

p ˆ

Let’s do it one more time for 10 more people:

Person Gender

= _______.

Sometimes we will get a sample proportion above the

population proportion, sometimes we will get a sample

proportion below the population proportion, and occasionally we

might get a sample proportion right at the population proportion.

Here’s the idea, let’s say I went and did this for every

combination of 10 people, and calculated a sample proportion

for every combination of 10 people. What we are interested in is

seeing what the distribution of all these possible sample

proportions would look like. That distribution is what we call

the Sampling Distribution of the Sample Proportions.

p^ ˆ

Page 53 of 58

Example: Select all possible samples of size 2 from the

population {1,2,3,4}. Calculate the proportion of even

numbers in each sample.

Page 54 of 58

Notation:

Just like we have a population mean, μ, we have a

Population Proportion: p

Example:

In the dataset {1,2,3,4}, calculate the population proportion

for the proportion of even numbers in the dataset.

Just like we have a sample mean, ⎯ x, we have a

Sample Proportion:

Example:

For the sample {2,3} which we found in the example on the

page before, our x would be 1 because we have one even

number, and our n would be 2 because our sample size is 2.

So our would be 1/2 or 0.5.

p^ ˆ

p^ ˆ

The Sampling distribution of the sample proportion

1. Mean: μ = p

2. Standard Deviation or Standard Error:

σ = p (1^^ p )

n

−

3. Shape

The sampling distribution of will be approximately

normal when n is large,

How large? We need np ≥ 15 and n(1-p) ≥ 15.

Example:

Find μ in the example where we selected all possible

samples of size 2 from the population {1,2,3,4} using the

work we did, and test to see if it is equal to p, the population

proportion.

Calculate σ in the example where we selected all possible

samples of size 2 from the population {1,2,3,4}.

ˆ p

ˆ p

p ˆ

p ˆ

ˆ p

Example: Consider a very large population of adults where

approximately 45% of the adults favor the death penalty.

Suppose samples of size 275 are selected from this

population, and the value of is recorded for each sample.

a) Will the sampling distribution of be approximately

normal?

b) If so, what are the mean and standard error for this

distribution? In other words, find μ and σ.

b) What is the probability of getting a sample proportion of

.5 or higher (where 50% or more of the sample favors the

death penalty) from a random sample of 275 people?

p^ ˆ p^ ˆ

p ˆ ˆ p