Download presentation
Presentation is loading. Please wait.
1
Discrete Random Variables
2
Random Variables – What We Know
A random variable is a function that associates a unique numerical value with every outcome of an experiment. The value of a random variable changes from occurrence to occurrence. Although we don’t know the next value of a random variable, we do know the overall pattern of the values assumed by a random variable over many repetitions. G. Baker, Department of Statistics University of South Carolina; Slide 2
3
Categorical Random Variables
Molding Defects: Type Freq Blk Spots 100 Scratches 40 Splay 35 Sinks 15 Flow Lines 12 Other 20 Black Spot Locations Location Freq Top 70 Mid 10 Bottom 10 Left 5 Right 5 G. Baker, Department of Statistics University of South Carolina; Slide 3
4
Numerical Random Variables
Assume numerical values from a meaningful numerical scale. Example: Age is a numerical variable. Zip code is a categorical random variable. G. Baker, Department of Statistics University of South Carolina; Slide 4
5
Life of a Light Bulb in Hours
G. Baker, Department of Statistics University of South Carolina; Slide 5
6
Notation We will use capital letters from the end of the alphabet to represent a random variable. Usually X or Y The corresponding lower case letter will represent a particular value of the random variable. P(Y = y) is the probability that the random variable Y is equal to the value y. G. Baker, Department of Statistics University of South Carolina; Slide 6
7
Discrete and Continuous Random Variables
A continuous random variable can take any value in an interval of the real number line. Usually measurements A discrete random variable can take one of a countable list of distinct values. Usually counts G. Baker, Department of Statistics University of South Carolina; Slide 7
8
Numeric Random Variables
Continuous Discrete Number of Active Pumps Ounces G. Baker, Department of Statistics University of South Carolina; Slide 8
9
Discrete and Continuous Random Variables
Discrete or continuous? Time until a projectile returns to earth. The number of times a transistor in computer memory changes state in one operation. The volume of gasoline that is lost to evaporation during the filling of a gas tank. The outside diameter of a machined shaft. The number of chapters in your text book. G. Baker, Department of Statistics University of South Carolina; Slide 9
10
Discrete Numeric Random Variables
A small airport in New Zealand is interested in the number of late aircraft arrivals per day. Every day for a year it counts the daily number of late arrivals. Let random variable Y = Number of aircraft in one day that arrive late. Y 1 2 3 4+ P(Y=y) 0.12 0.19 0.30 0.26 0.13 G. Baker, Department of Statistics University of South Carolina; Slide 10
11
Discrete Numeric Random Variables
What is the probability that on any randomly chosen day that 3 aircraft are late? What is the chance that on any randomly chosen day at least 1 aircraft is late? Y 1 2 3 4+ P(Y=y) 0.12 0.19 0.30 0.26 0.13 G. Baker, Department of Statistics University of South Carolina; Slide 11
12
Discrete Numeric Random Variables
An assembly consists of three mechanical components. Suppose that the probabilities that the first, second, and third components meet specifications are 0.90, 0.95 and 0.99 respectively. Assume the components are independent. Let Si = the event that a component is within specification. G. Baker, Department of Statistics University of South Carolina; Slide 12
13
Possible Outcomes for One assembly
S1S2S3 Let Y = Number of components within specification in a randomly chosen assembly Y P(Y=y) G. Baker, Department of Statistics University of South Carolina; Slide 13
14
Discrete Random Variables
Probability or Distribution Function p(y) = P(Y = y) Note: 0 < p(y) < 1 for every value of y and G. Baker, Department of Statistics University of South Carolina; Slide 14
15
Probability Function for a Discrete Random Variable can be expressed as a table or graph and sometimes as a formula. Y P(Y=y) G. Baker, Department of Statistics University of South Carolina; Slide 15
16
Cumulative Probability or Distribution Function
If Y is a random variable, then the cumulative distribution function is denoted by F(y). F(y) = P(Y < y) G. Baker, Department of Statistics University of South Carolina; Slide 16
17
Number of Components within Specification for a Randomly chosen Assembly
Distribution Function: Y P(Y=y) Cumulative Distribution Function: Y P(Y<y) G. Baker, Department of Statistics University of South Carolina; Slide 17
18
Cumulative Distribution Function
P(Y < y) P(Y = y) G. Baker, Department of Statistics University of South Carolina; Slide 18
19
Expected Value Note, this distribution is the distribution for a population The expected value of the population is the population mean, µ, for the distribution. Y P(Y=y) G. Baker, Department of Statistics University of South Carolina; Slide 19
20
Number of Components within Specification on a Randomly Chosen Assembly
G. Baker, Department of Statistics University of South Carolina; Slide 20
21
Variance The variance of the population is the expected value of (Y - µ)2. Y P(Y=y) G. Baker, Department of Statistics University of South Carolina; Slide 21
22
Computational Formula for Variance
G. Baker, Department of Statistics University of South Carolina; Slide 22
23
Population Standard Deviation
Standard Deviation is the positive square root of the variance. G. Baker, Department of Statistics University of South Carolina; Slide 23
24
We receive 75% of a certain part from Supplier A and 25% from supplier B. Two of these parts are used in an assembly. Let Y = number of parts from Supplier A in the assembly. What is the expected value of Y? G. Baker, Department of Statistics University of South Carolina; Slide 24
25
Project A B C Prob of accept 0.30 0.80 0.10
A project manager for an engineering firm submitted bids on three projects. The following table summarizes the firm’s chances of having the three projects accepted. Project A B C Prob of accept Assuming the projects are independent of one another, what is the probability that the firm will have all three projects accepted? G. Baker, Department of Statistics University of South Carolina; Slide 25
26
What is the probability of having at least one project accepted?
Project A B C Prob of accept G. Baker, Department of Statistics University of South Carolina; Slide 26
27
Let Y = number of projects accepted.
p(y) What is the expected number of projects accepted? G. Baker, Department of Statistics University of South Carolina; Slide 27
28
Let Y = number of projects accepted.
p(y) What is the variance for number of projects accepted? G. Baker, Department of Statistics University of South Carolina; Slide 28
29
Rules of Expectation E(c) = c E(cY) = cE(Y) E(X + Y) = E(X) + E(Y)
G. Baker, Department of Statistics University of South Carolina; Slide 29
30
Consider the following process:
5 1 1 G. Baker, Department of Statistics University of South Carolina; Slide 30
31
Rules of Variance Var(c) = 0 Var(cY) = c2Var(Y)
Var(X + Y) = Var(X) + Var(Y) G. Baker, Department of Statistics University of South Carolina; Slide 31
32
Binomial Random Variable
Suppose we toss a fair coin 20 times, counting the number of heads. This is an example of a binomial experiment. The possible outcomes can be represented with a binomial random variable which follows a binomial distribution. G. Baker, Department of Statistics University of South Carolina; Slide 32
33
Binomial Experiment Y represents the outcome of n identical trials.
There are two possible outcomes for each trial: success and failure. Outcomes are independent from trial to trial. Probability of success, p, remains constant from trial to trial. G. Baker, Department of Statistics University of South Carolina; Slide 33
34
Binomial Experiment Each toss of the coin is a trail. We performed 20 trials. So n = 20. The two possible outcomes of a trials are heads or tails. Since we are counting heads, heads is a success, while tails is a failure. Are the outcomes of our trials independent of one another? Probability of success (heads) is 0.50 G. Baker, Department of Statistics University of South Carolina; Slide 34
35
Binomial Experiment A manufacturer of water filters for refrigerators monitors the process for defective filters. Historically, this process averages 5% defective filters. Suppose five filters are randomly selected for testing and we count number of defective filters. Define a trial. Calculate n. Define a “success”. Are the outcomes independent from trial to trial? Calculate p. G. Baker, Department of Statistics University of South Carolina; Slide 35
36
Water Filters A manufacturer of water filters for refrigerators monitors the process for defective filters. Historically, this process averages 5% defective filters. Five filters are randomly selected. Find the probability that all five filters are defective. Find the probability that no filters are defective. Find the probability that exactly 1 filter is defective. G. Baker, Department of Statistics University of South Carolina; Slide 36
37
Find the probability that exactly 2 filters are defective.
A manufacturer of water filters for refrigerators monitors the process for defective filters. Historically, this process averages 5% defective filters. Five filters are randomly selected. Find the probability that exactly 2 filters are defective. 5(.05)2(.95)3 10(.05)2(.95)3 15(.05)2(.95)3 G. Baker, Department of Statistics University of South Carolina; Slide 37
38
Remember Combinations
Number of ways to choose r distinct objects from n distinct objects: “n choose r” G. Baker, Department of Statistics University of South Carolina; Slide 38
39
Probability Function for a Binomial Random Variable
for y = 0, 1, 2, …,n G. Baker, Department of Statistics University of South Carolina; Slide 39
40
If Y follows a Binomial Distribution
Binomial mean Binomial variance Binomial standard deviation G. Baker, Department of Statistics University of South Carolina; Slide 40
41
Suppose we are producing 15% defective filters
Suppose we are producing 15% defective filters. Let Y = Number of Defective Filters in a Sample of 10 G. Baker, Department of Statistics University of South Carolina; Slide 41
42
What is the approximate probability that there will be at least 1 defective filter in a sample of 10? G. Baker, Department of Statistics University of South Carolina; Slide 42
43
Historically, 10% of homes in Florida have radon levels higher than that recommended by the EPA. In a random sample of 20 homes, find the probability that exactly 3 have radon levels higher than the EPA recommendation. Assume home are independent of one another. G. Baker, Department of Statistics University of South Carolina; Slide 43
44
If a manufacturing process has a 0
If a manufacturing process has a 0.03 defective rate, what is the probability that at least one of the next 25 units inspected will be defective? (0.03)1 * (0.97)24 1 – (0.03)1 * (0.97)24 1 – (0.03)0 * (0.97)25 1 – (0.03)25 G. Baker, Department of Statistics University of South Carolina; Slide 44
45
A manufacturing process has a 0. 03 defective rate
A manufacturing process has a 0.03 defective rate. If we randomly sample 25 units What is the probability that less than 6 will be defective? What is the probability that 4 or more are defective? What is the probability that between 2 and 5, inclusive, are defective? G. Baker, Department of Statistics University of South Carolina; Slide 45
46
Golf Resort At a particular golf resort, if a person hits a hole-in-one, the player gets to select 4 slips of paper from a bin of 100 slips. Of the 100 slips of paper, 2 are good for a brand new driver valued at $300. So if the person selects 1 or 2 slips good for the driver, he gets the driver. Is this a binomial experiment? We can get the answer using straight probability. G. Baker, Department of Statistics University of South Carolina; Slide 46
47
Golf Resort Let Y = number of slips chosen that are good for a free driver. To win, the player must draw 1 or 2 of the 2 slips which entitle him to a free driver. P(Y = 1 or 2) = P(Y = 1) + P(Y = 2) Recall: G. Baker, Department of Statistics University of South Carolina; Slide 47
48
Probability of Winning Driver
G. Baker, Department of Statistics University of South Carolina; Slide 48
49
Hypergeometric Distribution
Models the number of successes out of n trials when sampling without replacement from a finite population of N objects that contains exactly r successes. for y = 0, 1, 2,…,n G. Baker, Department of Statistics University of South Carolina; Slide 49
50
Hypergeometric Distribution
Expected Value: G. Baker, Department of Statistics University of South Carolina; Slide 50
51
If a shipment of 100 generators contains 5 faulty generators, what is the probability that we can select 10 generators from the shipment and not get a faulty one? A B C D G. Baker, Department of Statistics University of South Carolina; Slide 51
52
Insulated Wire Consider a process that produces insulated copper wire. Historically the process has averaged 2.6 breaks in the insulation per 1000 meters of wire. We want to find the probability that 1000 meters of wire will have 1 or fewer breaks in insulation? Is this a binomial problem? A hypergeometric problem? G. Baker, Department of Statistics University of South Carolina; Slide 52
53
Poisson Distribution Poisson distribution can be used to model the number of events occurring in a continuous time or space. Let Y = number of breaks in 1000 meters of wire. P(Y < 1) = P(Y = 0) + P(Y = 1) G. Baker, Department of Statistics University of South Carolina; Slide 53
54
Poisson Distribution for y = 0, 1, 2,… Further:
where λ is the average number of occurrences per base unit. and t is the number of base units inspected. Further: G. Baker, Department of Statistics University of South Carolina; Slide 54
55
Insulated Wire Let Y = Number of breaks in 1000 meters of wire. λ = 2.6 and t = 1 The expected number of breaks in 1000 meters of wire is 2.6. G. Baker, Department of Statistics University of South Carolina; Slide 55
56
Insulated Wire If we were inspecting 2000 meters of wire, λt = 2.6*2 = 5.2 If we were inspecting 500 meters of wire, λt = 2.6*0.5 = 1.3 G. Baker, Department of Statistics University of South Carolina; Slide 56
57
Conditions for a Poisson Distribution
Areas of inspection are independent of one another. The probability of the event occurring at any particular point in space or time is negligible. The mean remains constant over all areas of inspection. G. Baker, Department of Statistics University of South Carolina; Slide 57
58
Suppose we average 5 radioactive particles passing a counter in 1 millisecond. What is the probability that exactly 3 particles will pass in one millisecond? G. Baker, Department of Statistics University of South Carolina; Slide 58
59
Suppose we average 5 radioactive particles passing a counter in 1 millisecond. What is the probability that exactly 10 particles will pass in three milliseconds? G. Baker, Department of Statistics University of South Carolina; Slide 59
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.