Docsity

Understanding Probability Theory: Sample Spaces, Discrete & Continuous Probabilities, Rand, Study notes of Statistics

Partial preview of the text

Download Understanding Probability Theory: Sample Spaces, Discrete & Continuous Probabilities, Rand and more Study notes Statistics in PDF only on Docsity!

Introducing probability

BPS chapter 10

© 2006 W. H. Freeman and Company

Objectives (BPS chapter 10) Introducing probability

 The idea of probability

 Probability models

Probability rules

Discrete sample space

Continuous sample space

Random variables

 Personal probability

Coin toss The result of any single coin toss is random. But the result over many tosses is predictable, as long as the trials are independent (i.e., the outcome of a new coin toss is not influenced by the result of the previous toss). The result of any single coin toss is random. But the result over many tosses is predictable, as long as the trials are independent (i.e., the outcome of a new coin toss is not influenced by the result of the previous toss). First series of tosses Second series The probability of heads is 0.5 = the proportion of times you get heads in many repeated trials.

The trials are independent only when you put the coin back each time. It is called sampling with replacement.

Two events are independent if the probability that one event occurs

on any given trial of an experiment is not affected or changed by the

occurrence of the other event.

When are trials not independent? Imagine that these coins were spread out so that half were heads up and half were tails up. Close your eyes and pick one. The probability of it being heads is 0.5. However, if you don’t put it back in the pile, the probability of picking up another coin and having it be heads is now less than 0.5.

Important: It’s the question that determines the sample space.

Sample space

A. A basketball player shoots

three free throws. What are the possible sequences of hits (H) and misses (M)? H H H - HHH M … M M - HHM H - HMH M - HMM …

S = {HHH, HHM,

HMH, HMM, MHH,

MHM, MMH, MMM }

Note: 8 elements, 2^3 B. A basketball player shoots three free throws. What is the number of baskets made?

S = {0, 1, 2, 3}

C. A nutrition researcher feeds a new diet to a young male white rat. What are the possible outcomes of weight gain (in grams)?

S = [0, ∞] = (all numbers ≥ 0)

Coin Toss Example: S = {Head, Tail} Probability of heads = 0. Probability of tails = 0.

1) Probabilities range from 0

( no chance of the event ) to

1 ( the event has to happen ).

For any event A, 0 ≤ P (A) ≤ 1

Probability rules

2) The probability of the

complete sample space must

equal 1.

P (sample space) = 1

P (head) + P (tail) = 0.5 + 0.5 = 1

3) The probability of an event

not occurring is 1 minus the

probability that does occur.

P (A) = 1 – P (not A)

P (tail) = 1 – P (head) = 0. Probability of getting a head = 0. We write this as: P (head) = 0. P (neither head nor tail) = 0 P (getting either a head or a tail) = 1

Note: Discrete data contrast with continuous data that can take on any one of an infinite number of possible values over an interval.

Dice are good examples of finite sample

spaces. Finite means that there is a limited

number of outcomes.

Throwing 1 die: S = {1, 2, 3, 4, 5, 6}, and the probability of each event = 1/6. Discrete sample space

Discrete sample spaces deal with data that can take on only certain

values. These values are often integers or whole numbers.

In some situations, we define an event as a combination of outcomes.

In that case, the probabilities need to be calculated from our

knowledge of the probabilities of the simpler events.

Example: You toss two dice. What is the probability of the outcomes summing to five? There are 36 possible outcomes in S, all equally likely (given fair dice). Thus, the probability of any one of them is 1/36. P (the roll of two dice sums to 5) = P (1,4) + P (2,3) + P (3,2) + P (4,1) = 4 * 1/36 = 1/9 = 0. This is S: {(1,1), (1,2), (1,3), ……etc.}

Give the sample space and probabilities of each event in the following cases:  (^) A couple wants three children. What are the arrangements of boys (B) and girls (G)? Genetics tells us that the probability that a baby is a boy or a girl is the same, 0.5. → Sample space: {BBB, BBG, BGB, GBB, GGB, GBG, BGG, GGG} → All eight outcomes in the sample space are equally likely. → The probability of each is thus 1/8.  (^) A couple wants three children. What are the numbers of girls ( X ) they could have? The same genetic laws apply. We can use the probabilities above to calculate the probability for each possible number of girls. → Sample space {0, 1, 2, 3} → P (X = 0) = P (BBB) = 1/ → P (X = 1) = P (BBG or BGB or GBB) = P (BBG) + P (BGB) + P (GBB) = 3/

Continuous sample spaces contain an infinite number of events. They

typically are intervals of possible, continuously-distributed outcomes.

Example: There is an infinity of numbers between 0 and 1 (e.g., 0.001, 0.4, 0.0063876). S = {interval containing all numbers between 0 and 1}

How do we assign probabilities to events in an infinite sample space?

We use density curves and compute probabilities for intervals.

Continuous sample space The probability of the uniformly-distributed variable Y to be within 0.3 and 0.7 is the area under the density curve corresponding to that interval. Thus: P (0.3 ≤ y ≤ 0.7) = (0.7 − 0.3)*1 = 0. This is a uniform density curve. There are a lot of other types of density curves. y

P ( y < 0.5 or y > 0.8) = P ( y < 0.5) + P ( y > 0.8) = 1 − P (0.5 < y < 0.8) = 0. The probability of a single event is zero: P ( y = 1) = (1 − 1)*1 = 0 Intervals

The probability of a single event is meaningless for a continuous

sample space. Only intervals can have a non-zero probability,

represented by the area under the density curve for that interval.

Height = 1 y The probability of an interval is the same whether boundary values are included or excluded: P (0 ≤ y ≤ 0.5) = (0.5 − 0)1 = 0. P (0 < y < 0.5) = (0.5 − 0)1 = 0. P (0 ≤ y < 0.5) = (0.5 − 0)*1 = 0.

We generate two random numbers between 0 and 1 and take Y to be their sum. Y can take any value between 0 and 2. The density curve for Y is:

Height = 1. We know this because the base = 2, and the area under the curve has to equal 1 by definition. The area of a this triangle is ½ (base*height). What is the probability that Y is < 1? What is the probability that Y < 0.5?

Y

We standardize normal data by calculating z -scores so that any

Normal curve N ( ) can be transformed into the standard Normal curve

N (0,1).

Reminder: standardizing N (  )

N (0,1)

→ z  x

N (64.5, 2.5)

Standardized height (no units) z  ( x   ) 

Previously, we wanted to calculate the proportion of individuals in the population with a given characteristic.

N ( μ, ) = N (64.5, 2.5)

Distribution of women’s heights ≈ Example: What's the proportion of women with a height between 57" and 72"? That’s within ± 3 standard

deviations  of the mean  , thus

that proportion is roughly 99.7%. Since about 99.7% of all women have heights between 57" and 72", the chance of picking one woman at random with a height in that range is also about 99.7%.