Docsity

Probability Distributions: Discrete and Continuous - Prof. J. Tebbs, Study notes of Mathematics

Partial preview of the text

Download Probability Distributions: Discrete and Continuous - Prof. J. Tebbs and more Study notes Mathematics in PDF only on Docsity!

STAT/MATH 511

PROBABILITY

Fall, 2009

Lecture Notes

Joshua M. Tebbs

Department of Statistics

University of South Carolina

TABLE OF CONTENTS STAT/MATH 511, J. TEBBS

  • 2 Probability Contents
    • 2.1 Introduction
    • 2.2 Sample spaces
    • 2.3 Basic set theory
    • 2.4 Properties of probability
    • 2.5 Discrete probability models and events
    • 2.6 Tools for counting sample points
      • 2.6.1 The multiplication rule
      • 2.6.2 Permutations
      • 2.6.3 Combinations
    • 2.7 Conditional probability
    • 2.8 Independence
    • 2.9 Law of Total Probability and Bayes Rule
  • 3 Discrete Distributions
    • 3.1 Random variables
    • 3.2 Probability distributions for discrete random variables
    • 3.3 Mathematical expectation
    • 3.4 Variance
    • 3.5 Moment generating functions
    • 3.6 Binomial distribution
    • 3.7 Geometric distribution
    • 3.8 Negative binomial distribution
    • 3.9 Hypergeometric distribution
    • 3.10 Poisson distribution
  • 4 Continuous Distributions TABLE OF CONTENTS STAT/MATH 511, J. TEBBS
    • 4.1 Introduction
    • 4.2 Cumulative distribution functions
    • 4.3 Continuous random variables
    • 4.4 Mathematical expectation
      • 4.4.1 Expected value
      • 4.4.2 Variance
      • 4.4.3 Moment generating functions
    • 4.5 Uniform distribution
    • 4.6 Normal distribution
    • 4.7 The gamma family of distributions
      • 4.7.1 Exponential distribution
      • 4.7.2 Gamma distribution
      • 4.7.3 χ^2 distribution
    • 4.8 Beta distribution
    • 4.9 Chebyshev’s Inequality
    • 4.10 Expectations of piecewise functions and mixed distributions
      • 4.10.1 Expectations of piecewise functions
      • 4.10.2 Mixed distributions
  • 5 Multivariate Distributions
    • 5.1 Introduction
    • 5.2 Discrete random vectors
    • 5.3 Continuous random vectors
    • 5.4 Marginal distributions
    • 5.5 Conditional distributions
    • 5.6 Independent random variables
  • 5.7 Expectations of functions of random variables TABLE OF CONTENTS STAT/MATH 511, J. TEBBS
  • 5.8 Covariance and correlation
    • 5.8.1 Covariance
    • 5.8.2 Correlation
  • 5.9 Expectations and variances of linear functions of random variables
  • 5.10 The multinomial model
  • 5.11 The bivariate normal distribution
  • 5.12 Conditional expectation
    • 5.12.1 Conditional means and curves of regression
    • 5.12.2 Iterated means and variances

2 Probability

Complementary reading: Chapter 2 (WMS).

2.1 Introduction

TERMINOLOGY : The text defines probability as a measure of one’s belief in the occurrence of a future (random) event. Probability is also known as “the mathematics of uncertainty.”

REAL LIFE EVENTS : Here are some events we may wish to assign probabilities to:

  • tomorrow’s temperature exceeding 80 degrees
  • getting a flat tire on my way home today
  • a new policy holder making a claim in the next year
  • the NASDAQ losing 5 percent of its value this week
  • you being diagnosed with prostate/cervical cancer in the next 20 years.

ASSIGNING PROBABILITIES : How do we assign probabilities to events? There are three general approaches.

  1. Subjective approach.
    • This approach is based on feeling and may not even be scientific.
  2. Relative frequency approach.
    • This approach can be used when some random phenomenon is observed re- peatedly under identical conditions.
  3. Axiomatic/Model-based approach. This is the approach we will take in this course.

2.2 Sample spaces

TERMINOLOGY : Suppose that a random experiment is performed and that we observe an outcome from the experiment (e.g., rolling a die). The set of all possible outcomes for an experiment is called the sample space and is denoted by S.

Example 2.2. In each of the following random experiments, we write out a correspond- ing sample space. (a) The Michigan state lottery calls for a three-digit integer to be selected:

S = { 000 , 001 , 002 , ..., 998 , 999 }.

(b) A USC student is tested for chlamydia (0 = negative, 1 = positive):

S = { 0 , 1 }.

(c) An industrial experiment consists of observing the lifetime of a battery, measured in hours. Different sample spaces are:

S 1 = {w : w ≥ 0 } S 2 = { 0 , 1 , 2 , 3 , ..., } S 3 = {defective, not defective}.

Sample spaces are not unique; in fact, how we describe the sample space has a direct influence on how we assign probabilities to outcomes in this space. §

2.3 Basic set theory

TERMINOLOGY : A countable set A is a set whose elements can be put into a one- to-one correspondence with N = { 1 , 2 , ..., }, the set of natural numbers. A set that is not countable is said to be uncountable.

TERMINOLOGY : Countable sets can be further divided up into two types.

  • A countably infinite set has an infinite number of elements.
  • A countably finite set has a finite number of elements.

Example 2.3. Say whether the following sets are countable (and, furthermore, finite or infinite) or uncountable.

(a) A = { 0 , 1 , 2 , ..., 10 } (b) B = { 1 , 2 , 3 , ..., } (c) C = {x : 0 < x < 2 }.

TERMINOLOGY : Suppose that A and B are sets (events). We say that A is a subset of B if every outcome in A is also in B, written A ⊂ B or A ⊆ B.

  • Implication: In a random experiment, if the event A occurs, then so does B. The converse is not necessarily true.

TERMINOLOGY : The null set, denoted by ∅, is the set that contains no elements.

TERMINOLOGY : The union of two sets A and B is the set of all elements in either A or B (or both), written A ∪ B. The intersection of two sets A and B is the set of all elements in both A and B, written A ∩ B. Note that A ∩ B ⊆ A ∪ B.

  • Remember: Union ←→ “or” Intersection ←→ “and”

EXTENSION : We extend the notion of unions and intersections to more than two sets. Suppose that A 1 , A 2 , ..., An is a finite sequence of sets. The union of A 1 , A 2 , ..., An is

⋃^ n j=

Aj = A 1 ∪ A 2 ∪ · · · ∪ An,

that is, the set of all elements contained in at least one Aj. The intersection of A 1 , A 2 , ..., An is (^) n ⋂ j=

Aj = A 1 ∩ A 2 ∩ · · · ∩ An,

the set of all elements contained in each of the sets Aj , j = 1, 2 , ..., n.

2.4 Properties of probability

KOLMOLGOROV AXIOMS OF PROBABILITY : Given a nonempty sample space S, the measure P (A) is a set function satisfying three axioms:

(1) P (A) ≥ 0, for every A ⊆ S (2) P (S) = 1 (3) If A 1 , A 2 , ..., is a countable sequence of pairwise disjoint events (i.e., Ai ∩ Aj = ∅, for i 6 = j) in S, then P

i=

Ai

∑^ ∞

i=

P (Ai).

RESULTS : The following results are important properties of the probability set function P (·), and each one follows from the Kolmolgorov axioms just stated. All events below are assumed to be subsets of a nonempty sample space S.

  1. Complement rule: For any event A, P (A) = 1 − P (A).

Proof. Note that S = A ∪ A. Thus, since A and A are disjoint, P (A ∪ A) = P (A) + P (A) by Axiom 3. By Axiom 2, P (S) = 1. Thus, 1 = P (S) = P (A ∪ A) = P (A) + P (A). §

  1. P (∅) = 0. Proof. Take A = ∅ and A = S. Use the last result and Axiom 2. §
  2. Monotonicity property: Suppose that A and B are two events such that A ⊂ B. Then, P (A) ≤ P (B). Proof. Write B = A ∪ (B ∩ A). Clearly, A and (B ∩ A) are disjoint. Thus, by Axiom 3, P (B) = P (A) + P (B ∩ A). Because P (B ∩ A) ≥ 0, we are done. §
  1. For any event A, P (A) ≤ 1. Proof. Since A ⊂ S, this follows from the monotonicity property and Axiom 2. §
  2. Inclusion-exclusion: Suppose that A and B are two events. Then,

P (A ∪ B) = P (A) + P (B) − P (A ∩ B). Proof. Write A ∪ B = A ∪ (A ∩ B). Then, since A and (A ∩ B) are disjoint, by Axiom 3, P (A ∪ B) = P (A) + P (A ∩ B). Now, write B = (A ∩ B) ∪ (A ∩ B). Clearly, (A ∩ B) and (A ∩ B) are disjoint. Thus, again, by Axiom 3,

P (B) = P (A ∩ B) + P (A ∩ B). Combining the last expressions for P (A ∪ B) and P (B) gives the result. §

Example 2.6. The probability that train 1 is on time is 0.95, and the probability that train 2 is on time is 0.93. The probability that both are on time is 0.90.

(a) What is the probability that at least one train is on time? Solution: Denote by Ai the event that train i is on time, for i = 1, 2. Then,

P (A 1 ∪ A 2 ) = P (A 1 ) + P (A 2 ) − P (A 1 ∩ A 2 ) = 0.95 + 0. 93 − 0 .90 = 0. 98.

(b) What is the probability that neither train is on time? Solution: By DeMorgan’s Law,

P (A 1 ∩ A 2 ) = P (A 1 ∪ A 2 ) = 1 − P (A 1 ∪ A 2 ) = 1 − 0 .98 = 0. 02. §

EXTENSION : The inclusion-exclusion formula can be extended to any finite sequence of sets A 1 , A 2 , ..., An. For example, if n = 3,

P (A 1 ∪ A 2 ∪ A 3 ) = P (A 1 ) + P (A 2 ) + P (A 3 ) − P (A 1 ∩ A 2 ) − P (A 1 ∩ A 3 ) − P (A 2 ∩ A 3 ) + P (A 1 ∩ A 2 ∩ A 3 ).

only one sample point, it is a simple event. The events A 2 and A 3 contain more than one sample point; thus, they are compound events.

STRATEGY : Computing the probability of a compound event can be done by

(1) counting up all sample points associated with the event (this can be very easy or very difficult) (2) adding up the probabilities associated with each sample point.

NOTATION : Your authors use the symbol Ei to denote the ith sample point (i.e., ith simple event). Thus, adopting the aforementioned strategy, if A denotes any compound event, P (A) =

i:Ei∈A

P (Ei).

We simply sum up the simple event probabilities P (Ei) for all i such that Ei ∈ A.

Example 2.8. An equiprobability model. Suppose that a discrete sample space S contains N < ∞ sample points, each of which are equally likely. If the event A consists of na sample points, then P (A) = na/N. Proof. Write S = E 1 ∪ E 2 ∪ · · · ∪ EN , where Ei corresponds to the ith sample point; i = 1, 2 , ..., N. Then,

1 = P (S) = P (E 1 ∪ E 2 ∪ · · · ∪ EN ) =

∑^ N

i=

P (Ei).

Now, as P (E 1 ) = P (E 2 ) = · · · = P (EN ), we have that

1 =

∑^ N

i=

P (Ei) = N P (E 1 ),

and, thus, P (E 1 ) = (^) N^1 = P (E 2 ) = · · · = P (EN ). Without loss of generality, take A = E 1 ∪ E 2 ∪ · · · ∪ Ena. Then,

P (A) = P (E 1 ∪ E 2 ∪ · · · ∪ Ena ) =

∑^ na i=

P (Ei) =

∑^ na i=

N =^ na/N.^ §

Example 2.9. Two jurors are needed from a pool of 2 men and 2 women. The jurors are randomly selected from the 4 individuals. A sample space for this experiment is

S = {(M 1 , M 2), (M 1 , W 1), (M 1 , W 2), (M 2 , W 1), (M 2 , W 2), (W 1 , W 2)}.

What is the probability that the two jurors chosen consist of 1 male and 1 female? Solution. There are N = 6 sample points, denoted in order by E 1 , E 2 , ..., E 6. Let the event

A = {one male, one female} = {(M 1 , W 1), (M 1 , W 2), (M 2 , W 1), (M 2 , W 2)},

so that nA = 4. If the sample points are equally likely (probably true if the jurors are randomly selected), then P (A) = 4/6. §

2.6 Tools for counting sample points

2.6.1 The multiplication rule

MULTIPLICATION RULE : Consider an experiment consisting of k ≥ 2 “stages,” where

n 1 = number of ways stage 1 can occur n 2 = number of ways stage 2 can occur ... nk = number of ways stage k can occur.

Then, there are (^) k ∏ i=

ni = n 1 × n 2 × · · · × nk

different outcomes in the experiment.

Example 2.10. An experiment consists of rolling two dice. Envision stage 1 as rolling the first and stage 2 as rolling the second. Here, n 1 = 6 and n 2 = 6. By the multiplication rule, there are n 1 × n 2 = 6 × 6 = 36 different outcomes. §

PROBLEM : Suppose that we have n distinct objects and we want to order (or permute) these objects. Thinking of n slots, we will put one object in each slot. There are

  • n different ways to choose the object for slot 1,
  • n − 1 different ways to choose the object for slot 2,
  • n − 2 different ways to choose the object for slot 3,

and so on, down to

  • 2 different ways to choose the object for slot (n − 1), and
  • 1 way to choose for the last slot.

IMPLICATION : By the multiplication rule, there are n(n − 1)(n − 2) · · · (2)(1) = n! different ways to order (permute) the n distinct objects.

Example 2.13. My bookshelf has 10 books on it. How many ways can I permute the 10 books on the shelf? Answer: 10! = 3, 628 , 800. §

Example 2.14. Now, suppose that in Example 2.13 there are 4 math books, 2 chemistry books, 3 physics books, and 1 statistics book. I want to order the 10 books so that all books of the same subject are together. How many ways can I do this? Solution: Use the multiplication rule.

Stage 1 Permute the 4 math books 4! Stage 2 Permute the 2 chemistry books 2! Stage 3 Permute the 3 physics books 3! Stage 4 Permute the 1 statistics book 1! Stage 5 Permute the 4 subjects {m, c, p, s} 4!

Thus, there are 4! × 2! × 3! × 1! × 4! = 6912 different orderings. §

PERMUTATIONS : With a collection of n distinct objects, we now want to choose and permute r of them (r ≤ n). The number of ways to do this is

Pn,r ≡ (^) (n n−! r)!.

The symbol Pn,r is read “the permutation of n things taken r at a time.” Proof. Envision r slots. There are n ways to fill the first slot, n − 1 ways to fill the second slot, and so on, until we get to the rth slot, in which case there are n − r + 1 ways to fill it. Thus, by the multiplication rule, there are

n(n − 1) · · · (n − r + 1) = (^) (n −n! r)!

different permutations. §

Example 2.15. With a group of 5 people, I want to choose a committee with three members: a president, a vice-president, and a secretary. There are

P 5 , 3 = (^) (5 −5! 3)! =^1202 = 60

different committees possible. Here, note that order is important. §

Example 2.16. What happens if the objects to permute are not distinct? Consider the word P EP P ER. How many permutations of the letters are possible? Trick: Initially, treat all letters as distinct objects by writing, say,

P 1 E 1 P 2 P 3 E 2 R.

There are 6! = 720 different orderings of these distinct objects. Now, there are

3! ways to permute the P s 2! ways to permute the Es 1! ways to permute the Rs.

So, 6! is actually 3! × 2! × 1! times too large. That is, there are

6! 3! 2! 1! = 60 possible permutations.^ §

Stage 1 Pick four adjacent slots n 1 = 6 Stage 2 With the remaining 5 slots, permute the 2 blues and 3 yellows n 2 = (^) 2!3!5! = 10

Thus, na = 6 × 10 = 60. Finally, since we have equally likely outcomes, P (A) = na/N = 60 / 1260 ≈ 0 .0476. §

Solution 2. Initially, treat all 9 flags as distinct objects; i.e.,

W 1 W 2 W 3 W 4 B 1 B 2 Y 1 Y 2 Y 3 ,

and consider the sample space consisting of the 9! different permutations of these 9 distinct objects. Then,

N = number of sample points in S = 9!

Let na denote the number of ways that A can occur. We find na, again, by using the multiplication rule.

Stage 1 Pick adjacent slots for W 1 , W 2 , W 3 , W 4 n 1 = 6 Stage 2 With the four chosen slots, permute W 1 , W 2 , W 3 , W 4 n 2 = 4! Stage 3 With remaining 5 slots, permute B 1 , B 2 , Y 1 , Y 2 , Y 3 n 3 = 5!

Thus, na = 6 × 4! × 5! = 17280. Finally, since we have equally likely outcomes, P (A) = na/N = 17280/9! ≈ 0 .0476. §

2.6.3 Combinations

COMBINATIONS : Given n distinct objects, the number of ways to choose r of them (r ≤ n), without regard to order, is given by

Cn,r =

(n r

≡ (^) r! (nn −! r)!.

The symbol Cn,r is read “the combination of n things taken r at a time.” By convention, we take 0! = 1.

Proof : Choosing r objects is equivalent to breaking the n objects into two distinguishable groups:

Group 1 r chosen Group 2 (n − r) not chosen.

There are Cn,r = (^) r!(nn−!r)! ways to do this. §

REMARK : We will adopt the notation (nr^ ), read “n choose r,” as the symbol for Cn,r. The terms (nr^ )^ are called binomial coefficients since they arise in the algebraic expansion of a binomial; viz., (x + y)n^ = ∑^ n r=

(n r

xn−ryr.

Example 2.19. Return to Example 2.15. Now, suppose that we only want to choose 3 committee members from 5 (without designations for president, vice-president, and secretary). Then, there are ( 5 3

= 3! (55! − 3)! =^5 ×3! 4 ×^ × 2!^ 3! = 10

different committees. §

NOTE : From Examples 2.15 and 2.19, one should note that

Pn,r = r! × Cn,r.

Recall that combinations do not regard order as important. Thus, once we have chosen our r objects (there are Cn,r ways to do this), there are then r! ways to permute those r chosen objects. Thus, we can think of a permutation as simply a combination times the number of ways to permute the r chosen objects.

Example 2.20. A company receives 20 hard drives. Five of the drives will be randomly selected and tested. If all five are satisfactory, the entire lot will be accepted. Otherwise, the entire lot is rejected. If there are really 3 defectives in the lot, what is the probability of accepting the lot?