PROBABILITY and BAYES THEOREM

Similar documents
Chapter Six Probability

Probability and Sample space

7.1: Sets. What is a set? What is the empty set? When are two sets equal? What is set builder notation? What is the universal set?

Event p351 An event is an outcome or a set of outcomes of a random phenomenon. That is, an event is a subset of the sample space.

MANAGEMENT PRINCIPLES AND STATISTICS (252 BE)

4.2 Bernoulli Trials and Binomial Distributions

b) Consider the sample space S = {1, 2, 3}. Suppose that P({1, 2}) = 0.5 and P({2, 3}) = 0.7. Is P a valid probability measure? Justify your answer.

STAT 430/510 Probability Lecture 5: Conditional Probability and Bayes Rule

Experimental Probability - probability measured by performing an experiment for a number of n trials and recording the number of outcomes

PROBABILITY AND STATISTICS, A16, TEST 1

Theoretical Foundations

4.1 Probability Distributions

Lecture 6 Probability

5.2 Random Variables, Probability Histograms and Probability Distributions

Math 21 Test

Examples: On a menu, there are 5 appetizers, 10 entrees, 6 desserts, and 4 beverages. How many possible dinners are there?

Chapter CHAPTER 4. Basic Probability. Assessing Probability. Example of a priori probability

MATH 118 Class Notes For Chapter 5 By: Maan Omran

Examples: Random Variables. Discrete and Continuous Random Variables. Probability Distributions

Instructor: A.E.Cary. Math 243 Exam 2

Chapter 5. Discrete Probability Distributions. Random Variables

Probability mass function; cumulative distribution function

(c) The probability that a randomly selected driver having a California drivers license

Chapter 6: Random Variables. Ch. 6-3: Binomial and Geometric Random Variables

Keller: Stats for Mgmt & Econ, 7th Ed July 17, 2006

6.1 Binomial Theorem

Mathematical Statistics İST2011 PROBABILITY THEORY (3) DEU, DEPARTMENT OF STATISTICS MATHEMATICAL STATISTICS SUMMER SEMESTER, 2017.

Chapter 5 Student Lecture Notes 5-1. Department of Quantitative Methods & Information Systems. Business Statistics

Chapter 5 Probability Distributions. Section 5-2 Random Variables. Random Variable Probability Distribution. Discrete and Continuous Random Variables

Review. What is the probability of throwing two 6s in a row with a fair die? a) b) c) d) 0.333

Binomial Random Variable - The count X of successes in a binomial setting

ECON 214 Elements of Statistics for Economists 2016/2017

6 If and then. (a) 0.6 (b) 0.9 (c) 2 (d) Which of these numbers can be a value of probability distribution of a discrete random variable

Chapter 4 and 5 Note Guide: Probability Distributions

Name PID Section # (enrolled)

2011 Pearson Education, Inc

Normal distribution. We say that a random variable X follows the normal distribution if the probability density function of X is given by

Name PID Section # (enrolled)

Lesson 97 - Binomial Distributions IBHL2 - SANTOWSKI

Opening Exercise: Lesson 91 - Binomial Distributions IBHL2 - SANTOWSKI

Section M Discrete Probability Distribution

2. Modeling Uncertainty

Probability Theory. Probability and Statistics for Data Science CSE594 - Spring 2016

Continuous distributions. Lecture 6: Probability. Probabilities from continuous distributions. From histograms to continuous distributions

Final Examination CS540: Introduction to Artificial Intelligence

Assignment 2 (Solution) Probability and Statistics

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

ECON 214 Elements of Statistics for Economists 2016/2017

Business Statistics. Chapter 5 Discrete Probability Distributions QMIS 120. Dr. Mohammad Zainal

Probability Review. The Practice of Statistics, 4 th edition For AP* STARNES, YATES, MOORE

1. You roll a six sided die two times. What is the probability that you do not get a three on either roll? 5/6 * 5/6 = 25/36.694

University of California, Los Angeles Department of Statistics. Normal distribution

Chapter 3. Discrete Probability Distributions

The Binomial Distribution

BIOS 4120: Introduction to Biostatistics Breheny. Lab #7. I. Binomial Distribution. RCode: dbinom(x, size, prob) binom.test(x, n, p = 0.

Probability Review. Pages Lecture 1: Probability Theory 1 Main Ideas 2 Trees 4 Additional Examples 5

Converting to the Standard Normal rv: Exponential PDF and CDF for x 0 Chapter 7: expected value of x

MA : Introductory Probability

Fall 2015 Math 141:505 Exam 3 Form A

Probability Distributions. Definitions Discrete vs. Continuous Mean and Standard Deviation TI 83/84 Calculator Binomial Distribution

Chapter 4. Section 4.1 Objectives. Random Variables. Random Variables. Chapter 4: Probability Distributions

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Name: Date: Pd: Quiz Review

Test 3 Review. 2. What is the effective rate of interest for money invested at 10% annual interest compounded monthly?

300 total 50 left handed right handed = 250

2017 Fall QMS102 Tip Sheet 2

STAT 3090 Test 2 - Version B Fall Student s Printed Name: PLEASE READ DIRECTIONS!!!!

expl 1: Consider rolling two distinguishable, six-sided dice. Here is the sample space. Answer the questions that follow.

Unit 04 Review. Probability Rules

Chapter 5: Probability

ECON 214 Elements of Statistics for Economists

4 Random Variables and Distributions

Probability Distributions

CPS-111:Tutorial 6. Discrete Probability II. Steve Gu Feb 22, 2008

Rules so far. Probability with Tables. Likely Voter. Handout of Class Data. Union of Events A and B. Tom Ilvento STAT 200

Exercises for Chapter (5)

EXERCISES FOR PRACTICE SESSION 2 OF STAT CAMP

I can use simulation to model chance behavior. I can describe a probability model for a chance process. I can use basic probability rules, including

Probability & Sampling The Practice of Statistics 4e Mostly Chpts 5 7

Previously, when making inferences about the population mean, μ, we were assuming the following simple conditions:

Chapter 7 Probability

Stat511 Additional Materials

= 0.35 (or ˆp = We have 20 independent trials, each with probability of success (heads) equal to 0.5, so X has a B(20, 0.5) distribution.

Chapter 6 Probability

TYPES OF RANDOM VARIABLES. Discrete Random Variable. Examples of discrete random. Two Characteristics of a PROBABLITY DISTRIBUTION OF A

A useful modeling tricks.

Subject : Computer Science. Paper: Machine Learning. Module: Decision Theory and Bayesian Decision Theory. Module No: CS/ML/10.

A Survey of Probability Concepts. Chapter 5

Language Models Review: 1-28

Lecture 9. Probability Distributions. Outline. Outline

Module 4: Probability

MATH 112 Section 7.3: Understanding Chance

Counting Basics. Venn diagrams

Lecture 9. Probability Distributions

Final Exam Practice Set, STT 315, Section 106

Section 8.1 Distributions of Random Variables

STT315 Chapter 4 Random Variables & Probability Distributions AM KM

November 2000 Course 1. Society of Actuaries/Casualty Actuarial Society

Part V - Chance Variability

E509A: Principle of Biostatistics. GY Zou

Transcription:

PROBABILITY and BAYES THEOREM From: http://ocw.metu.edu.tr/pluginfile.php/2277/mod_resource/content/0/ ocw_iam530/2.conditional%20probability%20and%20bayes%20theorem.pdf

CONTINGENCY (CROSS- TABULATION) TABLES Presents counts of two or more variables A 1 A 2 Total B 1 a b a+b B 2 c d c+d Total a+c b+d n = a+b+c+d 2

Joint, Marginal, and Conditional Probability We study methods to determine probabilities of events that result from combining other events in various ways. There are several types of combinations and relationships between events: Intersection of events Union of events Dependent and independent events Complement event 3

Joint, Marginal, and Conditional Probability Joint probability is the probability that two events will occur simultaneously. Marginal probability is the probability of the occurrence of the single event. The joint prob. of A2 and B 1 A 1 A 2 Total B 1 a/n b/n (a+b)/n B 2 c/n d/n (c+d)/n Total (a+c)/n (b+d)/n 1 The marginal probability of A 1. 3

Example 1 Intersection A potential investor examined the relationship between the performance of mutual funds and the school the fund manager earned his/her MBA. The following table describes the joint probabilities. Mutual fund outperform the market Mutual fund doesn t outperform the market Top 20 MBA program.11.29 Not top 20 MBA program.06.54 4

Intersection Example 1 continued The joint probability of P(A 1 and B 1 ) [mutual fund outperform ] and [ from a top 20 ] =.11 The joint probability of [mutual fund outperform ] and [ not from a top 20 ] =.06 Top 20 MBA program (A 1 ) Not top 20 MBA program (A 2 ) Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ).11.29.06.54 5

Intersection Example 1 continued The joint probability of [mutual fund outperform ] and [ from a top 20 ] =.11 P(A The joint probability of 1 and B 1 ) [mutual fund outperform ] and [ not from a top 20 ] =.06 P(A 2 and B 1 ) Top 20 MBA program (A 1 ) Not top 20 MBA program (A 2 ) Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ).11.29.06.54 6

Marginal Probability These probabilities are computed by adding across rows and down columns Top 20 MBA program (A 1 ) Not top 20 MBA program (A 2 ) Marginal Probability P(B j ) Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ) Margina l Prob. P(A i ) P(A 1 and B 1 )+ P(A 1 and B 2 ) = P(A 1 ) P(A 2 and B 1 )+ P(A 2 and B 2 ) = P(A 2 ) 7

Marginal Probability These probabilities are computed by adding across rows and down columns Top 20 MBA program (A 1 ) Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ) Margina l Prob. P(A i ).11.29.40 + = Not top 20 MBA.06 +.54.60 = program (A 2 ) Marginal Probability P(B j ) 8

Marginal Probability These probabilities are computed by adding across rows and down columns Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ) Marginal Prob. P(A i ) Top 20 MBA program (A 1 ) Not top 20 MBA program (A 2 ) P(A 1 and B 1 ) + P(A 2 and B 1 = P(B 1 ) P(A 1 and B 2 ) + P(A 2 and B = 2 P(B 2 ).40.60 Marginal Probability P(B j ) 9

Marginal Probability These probabilities are computed by adding across rows and down columns Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ) Marginal Prob. P(A i ) Top 20 MBA program (A 1 ).11 +.29 +.40 Not top 20 MBA program (A 2 ).06.54.60 Marginal Probability P(B j ).17.83 11

Conditional Probability Example 2 (Example 1 continued) Find the conditional probability that a randomly selected fund is managed by a Top 20 MBA Program graduate, given that it did not outperform the market. Solution P(A 1 B 2 ) = P(A 1 and B 2 ) =.29 = 0.3949 P(B 2 ).83 12

CONDITIONAL PROBABILITY The probability that event A will occur given that or on the condition that, event B has already occurred. It is denoted by P(A B). P( A B) P( A B), P(B) 0 P(B) 13

Conditional Probability Example 2 Find the conditional probability that a randomly selected fund is managed by a Top 20 MBA Program graduate, given that it did not outperform the market. Solution P(A B ) = 1 2 P(A 1 and B 2 ) P(B 2 ) =.29/.83 =.39 49 New information reduces the relevant sample space to the 83% of event B 2. Top 20 MBA program (A 1 ) Not top 20 MBA program (A 2 ) Marginal Probability P(B j ) Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ) Marginal Prob. P(A i ).11.2.29.40.06.54.60.17.8.83 13

Conditional Probability Before the new information becomes available we have P(A 1 ) = 0.40 After the new information becomes available P(A 1 ) changes to P(A 1 given B 2 ) =.3494 Since the the occurrence of B 2 has changed the probability of A 1, the two event are related and are called dependent events. 15

EXAMPLE 3 The director of an insurance company s computing center estimates that the company s computer has a 20% chance of catching a computer virus. However, she feels that there is only a 6% chance of the computer s catching a virus that will completely disable its operating system. If the company s computer should catch a virus, what is the probability that the operating system will be completely disabled? 16

EXAMPLE 4 Of a company s employees, 30% are women and 6% are married women. Suppose an employee is selected at random. If the employee selected is a woman, what is the probability that she is married? 17

Independence Independent events Two events A and B are said to be independent if or P(A B) = P(A) P(B A) = P(B) That is, the probability of one event is not affected by the occurrence of the other event. 18

Dependent and independent events Example 5 (Example 1 continued) We have already seen the dependency between A 1 and B 2. Let us check A 2 and B 2. P(B 2 ) =.83 P(B 2 A 2 )=P(B 2 and A 2 )/P(A 2 ) =.54/.60 =.90 Conclusion: A 2 and B 2 are dependent. 19

Union Example 6 (Example 1 continued) Calculating P(A or B)) Determine the probability that a randomly selected fund outperforms the market or the manager graduated from a top 20 MBA Program. 20

Union Solution Comment: P(A 1 or B 1 ) = 1 P(A 2 and B 2 ) = 1.46 =.54 Top 20 MBA program (A 1 ) Not top 20 MBA program (A 2 ) Mutual fund outperforms the market (B 1 ) Mutual fund doesn t outperform the market (B 2 ).11.29.06.54 A 1 or B 1 occurs whenever either: A 1 and B 1 occurs, A 1 and B 2 occurs, A 2 and B 1 occurs. P(A 1 or B 1 ) = P(A 1 and B 1 ) + P(A 1 and B 2 ) + P(A 2 and B 1 ) =.11 +.29 +.06 =.46 21

EXAMPLE 7 There are three approaches to determining the probability that an outcome will occur: classical, relative frequency, and subjective. Which is most appropriate in determining the probability of the following outcomes? The unemployment rate will rise next month. Five tosses of a coin will result in exactly two heads. An American will win the French Open Tennis Tournament in the year 2000. A randomly selected woman will suffer a breast cancer during the coming year. 22

EXAMPLE 8 Abby, Brenda, and Cameron; three candidates for the presidency of a college s student body, are to address a student forum. The forum s organizer is to select the order in which the candidates will give their speeches, and must do so in such a way that each possible order is equally likely to be selected. A) What is the random experiment? B) List the outcomes in the sample space. C) Assign probabilities to the outcomes. D) What is the probability that Cameron will speak first? E) What is the probability that one of the women will speak first? F) What is the probability that Abby will speak before Cameron does? 23

EXAMPLE 9 Suppose A and B are two independent events for which P(A) = 0.20 and P(B) = 0.60. Find P(A/B). Find P(B/A). Find P(A and B). Find P(A or B). 24

EXAMPLE 10 A Ph.D. graduate has applied for a job with two universities: A and B. The graduate feels that she has a 60% chance of receiving an offer from university A and a 50% chance of receiving an offer from university B. If she receives an offer from university B, she believes that she has an 80% chance of receiving an offer from university A. a) What is the probability that both universities will make her an offer? b) What is the probability that at least one university will make her an offer? c) If she receives an offer from university B, what is the probability that she will not receive an offer from university A? 25

EXAMPLE 11 Suppose P(A) = 0.50, P(B) = 0.40, and P(B/A) = 0.30. a) Find P(A and B). b) Find P(A or B). c) Find P(A/B). 26

EXAMPLE 12 A statistics professor classifies his students according to their grade point average (GPA) and their gender. The accompanying table gives the proportion of students falling into the various categories. One student is selected at random. Gender Under 2.0 2.0 3.0 Over 3.0 Male 0.05 0.25 0.10 Female 0.10 0.30 0.20 If the student selected is female, what is the probability that her GPA is between 2.0 and 3.0? If the GPA of the student selected is over 3.0, what is the probability that the student is male? What is the probability that the student selected is female or has a GPA under 2.0 or both? Is GPA independent of gender? Explain using probabilities. 27

Probability Rules and Trees We present more methods to determine the probability of the intersection and the union of two events. Three rules assist us in determining the probability of complex events from the probability of simpler events. 28

Multiplication Rule For any two events A and B P(A and B) = P(A)P(B A) = P(B)P(A B) When A and B are independent P(A and B) = P(A)P(B) 29

Multiplication Rule Example 13 What is the probability that two female students will be selected at random to participate in a certain research project, from a class of seven males and three female students? Solution Define the events: A the first student selected is a female B the second student selected is a female P(A and B) = P(A)P(B A) = (3/10)(2/9) = 6/90 =.067 30

Multiplication Rule Example 14 What is the probability that a female student will be selected at random from a class of seven males and three female students, in each of the next two class meetings? Solution Define the events: A the first student selected is a female B the second student selected is a female P(A and B) = P(A)P(B) = (3/10)(3/10) = 9/100 =.09 31

Addition Rule For any two events A and B P(A or B) = P(A) + P(B) - P(A and B) P(A) =6/13 + P(B _ ) =5/13 P(A and B) =3/13 A B P(A or B) = 8/13 A or B 31

Addition Rule When A and B are mutually exclusive, P(A or B) = P(A) + P(B) A B B P(A and B) = 0 32

Addition Rule Example 15 The circulation departments of two newspapers in a large city report that 22% of the city s households subscribe to the Sun, 35% subscribe to the Post, and 6% subscribe to both. What proportion of the city s household subscribe to either newspaper? 34

Addition Rule Solution Define the following events: A = the household subscribe to the Sun B = the household subscribe to the Post Calculate the probability P(A or B) = P(A) + P(B) P(A and B) =.22+.35 -.06 =.51 35

EXAMPLE A computer manufacturer inspected memory chips 100% before they enter assembly operations. Let D: Defective chip D * : Non-defective chip A: A chip approved for assembly by inspector A * : A chip not approved for assembly by inspector From past experience, it is known that P(D)=0.10. Also, it is known that the probability of an inspector passing a chip given that it is defective is 0.005, while the corresponding probability, given that the chip is nondefective is 0.999. 36

EXAMPLE (contd.) a) Find the joint probability that a chip is defective and is approved for assembly. b) Find the probability that a chip is acceptable and is approved for assembly. c) Find the probability that a chip is approved by assembly. 37

EXAMPLE The accompanying contingency table gives frequencies for a classification of the equipment used in a manufacturing plant. Equipment use Working status Low Moderate High Total In working order 10 18 12 40 Under repair 2 6 8 16 Total 12 24 20 56 a) Find the probability that a randomly selected piece of equipment is a high-use item given that it is in working order. b) Find the probability that a randomly selected piece of equipment is under repair given that it is a moderate use item. 37

Probability Trees This is a useful device to calculate probabilities when using the probability rules. 38

Probability Trees Example 14 revisited (dependent events). Find the probability of selecting two female students (without replacement), if there are 3 female students in a class of 10. Joint probabilities Second selection P(FF)=(3/10)(2/9) First selection P(FM)=(3/10)(7/9) P(MF)=(7/10)(3/9) Second selection P(MM)=(7/10)(6/9) 39

Probability Trees Example 15 revisited (independent events) Find the probability of selecting two female students (with replacement), if there are 3 female students in a class of 10. FF P(FF)=(3/10)(3/10) Second selection First selection Second selection FM MF P(FM)=(3/10)(7/10) P(MF)=(7/10)(3/10) MM P(MM)=(7/10)(7/10) 40

Probability Trees Example 16 (conditional probabilities) The pass rate of first-time takers for the bar exam at a certain jurisdiction is 72%. Of those who fail, 88% pass their second attempt. Find the probability that a randomly selected law school graduate becomes a lawyer (candidates cannot take the exam more than twice). 41

Probability Trees Solution P(Pass) =.72 First exam Second exam P(Fail and Pass)=. 28(.88)=.2464 P(Fail and Fail) = (.28)(.(12) =.0336 P(Pass) = P(Pass on first exam) + P(Fail on first and Pass on second) =.9664 42

Bayes Law Conditional probability is used to find the probability of an event given that one of its possible causes has occurred. We use Bayes law to find the probability of the possible cause given that an event has occurred. 43

Bayes Formula Conditional probability is used to find the probability of an event given that one of its possible causes has occurred. We use Bayes formula to find the probability of the possible cause given that an event has occurred. P(B A j )P( A j ) P( A B), j 1, 2,..., k j k i 1 P(B A i )P( A i ) 44

Bayes Law Example 17 Medical tests can produce false-positive or falsenegative results. A particular test is found to perform as follows: Correctly diagnose Positive 94% of the time. Correctly diagnose Negative 98% of the time. It is known that 4% of men in the general population suffer from the illness. What is the probability that a man is suffering from the illness, if the test result were positive? 46

Bayes Law Solution Define the following events D = Has a disease D C = Does not have the disease PT = Positive test results NT = Negative test results Build a probability tree 47

Bayes Law Solution Continued The probabilities provided are: P(D) =.04 P(PT D) =.94 P(PT D C ) =.02 P(D C ) =.96 P(NT D)=.06 P(NT D C ) =.98 The probability to be determined is P(D PT) 48

Bayes Law P(D and PT) =.0376 + P(D PT) P(Dand PT) P(PT) P(D C and PT) =.0192 P(PT) =.0568.0376.0568.6620 49

Bayes Law Prior probabilities Likelihood probabilities Posterior probabilities P(D PT).0376.6620.0568 50

EXAMPLE 18 An ice cream vendor sells three flavors: chocolate, strawberry, and vanilla. Forty five percent of the sales are chocolate, while 30% are strawberry, with the rest vanilla flavored. Sales are by the cone or the cup. The percentages of cones sales for chocolate, strawberry, and vanilla, are 75%, 60%, and 40%, respectively. For a randomly selected sale, define the following events: A 1 = chocolate chosen A 2 = strawberry chosen A 3 = vanilla chosen B = ice cream on a cone B C = ice cream in a cup 51

Find the probability that the ice cream was sold on a cone and was a) chocolate flavor b) strawberry flavor c) vanilla flavor ANSWERS: a) P(B and A 1 ) = P(B/A 1 ).P(A 1 ) = (0.75)(0.45) =0.3375 b) P(B and A 2 ) = P(B/A 2 ).P(A 2 ) = (0.60)(0.30) = 0.18 c) P(B and A 3 ) = P(B/A 3 ).P(A 3 ) = (0.40)(0.25) = 0.10 52

Find the probability that the ice cream was sold in a cup and was chocolate flavor ANSWERS: P(B C and A 1 ) = P(B C /A 1 ).P(A 1 ) = (0.25)(0.45) = 0.1125 Find the probability that the ice cream was sold on a cone. ANSWER: P(B) = P(B and A 1 ) + P(B and A 2 ) + P(B and A 3 ) = 0.3375 + 0.18 + 0.10 = 0.6175 Find the probability that the ice cream was sold in a cup. ANSWER: P(B C ) = 1 P(B) = 1 0.6175 = 0.3825 53

Find the probability that the ice cream was chocolate flavor, given that it was sold on a cone ANSWER: P(A 1 /B) = P(A 1 and B) / P(B) = 0.3375 / 0.6175 = 0.5466 Find the probability that the ice cream was chocolate flavor, given that it was sold in a cup ANSWER: P(A 1 /B C ) = P(A 1 and B C ) / P(B C ) = 0.1125 / 0.3825 = 0.2941 54

Random Variables and Discerete Probability Distributions 55

Random Variables and Probability Distributions A random variable is a function or rule that assigns a numerical value to each simple event in a sample space. A random variable reflects the aspect of a random experiment that is of interest for us. There are two types of random variables: Discrete random variable Continuous random variable. 56

Random Variables If X is a function that assigns a real numbered value to every possible event in a sample space of interest, X is called a random variable. It is denoted by capital letters such as X, Y and Z. The specified value of the random variable is unknown until the experimental outcome is observed. 57

EXAMPLES The experiment of flipping a fair coin. Outcome of the flip is a random variable. S={H,T} X(H)=1 and X(T)=0 Select a student at random from all registered students at METU. We want to know the weight of these students. X = the weight of the selected student S: {x: 45kg X 300kg} 58

Discrete and Continuous Random A random variable is discrete if it can assume a countable number of values. A random variable is continuous if it can assume an uncountable number of values. Discrete random variable Continuous random variable After the first value is defined the second value, and any value thereafter are known. Variables After the first value is defined, any number can be the next one 0 1 2 Therefore, the number of values is countable 3... 0 1/16 1/4 1/2 1 Therefore, the number of values is uncountable 58

Discrete Probability Distribution A table, formula, or graph that lists all possible values a discrete random variable can assume, together with associated probabilities, is called a discrete probability distribution. To calculate the probability that the random variable X assumes the value x, P(X = x), add the probabilities of all the simple events for which X is equal to x, or Use probability calculation tools (tree diagram), Apply probability definitions 60

Requirements for a Discrete Distribution If a random variable can assume values x i, then the following must be true: 1. 0 p(x i ) 2. p(x i ) 1 for al x i 1 all xi 61

EXAMPLE Consider an experiment in which a fair coin is tossed 3 times. X = The number of heads Let s assign 1 for head and 0 for tail. The sample space is S: {TTT,TTH,THT,HTT,THH,HTH,HHT,HHH} Possible values of X is 0, 1, 2, 3. Then, the probability distribution of X is x 0 1 2 3 Total p(x) 1/8 3/8 3/8 1/8 1 62

Distribution and Relative Frequencies In practice, often probability distributions are estimated from relative frequencies. Example 7.1 A survey reveals the following frequencies (1,000s) for the number of color TVs per household. Number of TVs Number of Households x p(x) 0 1,218 0 1218/Total =.012 1 32,379 1.319 2 37,961 2.374 3 19,387 3.191 4 7,714 4.076 5 2,842 5.028 Total 101,501 1.000 63

Determining Probability of Events The probability distribution can be used to calculate the probability of different events Example 7.1 continued Calculate the probability of the following events: P(The number of color TVs is 3) = P(X=3) =.191 P(The number of color TVs is two or more) = P(X 2)=P(X=2)+P(X=3)+P(X=4)+P(X=5)=.374 +.191 +.076 +.028 =.669 63

Developing a Probability Distribution Probability calculation techniques can be used to develop probability distributions Example 7.2 A mutual fund sales person knows that there is 20% chance of closing a sale on each call she makes. What is the probability distribution of the number of sales if she plans to call three customers? 64

Developing a Probability Distribution Solution Use probability rules and trees Define event S = {A sale is made}. P(S)=.2 P(S C )=.8 P(S)=.2 P(S C )=.8 P(S)=.2 P(S C )=.8 P(S)=.2 P(S C )=.8 P(S)=.2 P(S C )=.8 P(S)=.2 P(S C )=.8 P(S)=.2 P(S C )=.8 S S S S S S C S S C S S S C S C S C S S S C S S C S C S C S S C S C S C (.2)(.2)(.8)=.032 X P(x) 3.2 3 =.008 2 3(.032)=.096 1 3(.128)=.384 0.8 3 =.512 65

The Cumulative Distribution Function If X is a random variable, then the cumulative distribution function (cdf), denoted by F(x) is given by F (x) P( X x) p( y) y:y x for all real numbers x. It is a non-decreasing step function of x and it is right continuous. 67

The Cumulative Distribution Function For any two numbers a and b, a b P (a X b) = F (b) F (a - ) where a - represents the largest possible X value which is less than a. If a and b are integers, P (a X b) = F (b) F(a-1) Taking a=b, P( X=a ) = F (a)-f (a-1) 68

EXAMPLE Let X is the number of days of sick leave taken by a randomly selected employee of a large company during a particular year. If the max. number of allowable sick days per year is 14, possible values of X are 0,1,2,,14. With F(0)=0.58, F(1)=0.72, F(2)=0.76,F(3)=0.81,F(4)=0.88 and F(5)=0.94, find P(2 X 5) = P(X = 3) = P(X 2) = 69

FORMULAS-1

FORMULAS-2

FORMULAS-3

FORMULAS-4