SlideShare a Scribd company logo
1 of 28
Download to read offline
CHAPTER 3
DISCRETE RANDOM VARIABLES
Prepared by: Noryani Muhammad
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
OBJECTIVES
1. To study the concept of discrete random variables.
2. To construct the probability and cumulative
distribution functions, mean, and standard deviation.
3. To study and apply the binomial, hypergeometric,
and poisson distributions.
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.1 CONSEPT OF A RANDOM VARIABLE
• A quantitative variable whose value is random,
determined by the outcome of a random
experiment.
• Denoted by uppercase X and the possible values
are denoted by lowercase x.
• Discrete random variable assume only
countable value.
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.2 PROBABILITY DISTRIBUTION FUNCTION
1)(
1)(0


xXp
xXp
allx
Two conditions of a probability distribution function:
Example:
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.2 PROBABILITY DISTRIBUTION FUNCTION
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.2 PROBABILITY DISTRIBUTION FUNCTION
Test your understanding….
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
Test your understanding….
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
Determine whether or not each table represents a valid probability distribution.
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.3 CUMULATIVE DISTRIBUTION FUNCTION
The cumulative distribution function f(x) of a discrete random
variable X with the probability distribution function f(x) is
Example ~ Refer example 3.3
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.3 CUMULATIVE DISTRIBUTION FUNCTION
Example 3.5
Excellent does not an accident, but it comes through a hard work!!
Test your understanding….
1. Find the cumulative distribution function of X:
Breakdowns per week 0 1 2 3
p.d.f , p(X=x) 0.15 0.2 0.35 0.3
c.d.f, p(X=x)
2. The probability distribution of X, the number of imperfections per 10
meters of a synthetic fabric in continuous rolls of uniform width, is given by:
a) Construct the cumulative distribution function of X.
b) Using the answer in (a), find the probability that there is at least three
imperfections per 10 meters of the fabric.
Excellent does not an accident, but it comes through a hard work!!
Test your understanding….
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.4 EXPECTED VALUE AND VARIANCE
Expected value: Value that is expected to occur
every time when experiment is repeated.
Variance: Deviation from the mean.
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.4 EXPECTED VALUE AND VARIANCE
Example: Find the mean and standard deviation of X
Excellent does not an accident, but it comes through a hard work!!
Test your understanding….
Find the mean and standard deviation of X:
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.5 THE BINOMIAL DISTRIBUTION
The binomial distribution is applied to find the
probability that an outcomes will occurs x times in n
performances of an experiment which satisfies the
Bernoulli Process.
1. The experiment consists of n repeated trials.
2. Each trial results in two outcomes only: classified as a success (p) or
a failure (q).
Success = the outcome to which the question refers
Failure=the outcome to which it does not refer
3. The probability p and q remains constant from trial to trial.
4. The repeated trials are independent.
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.5 THE BINOMIAL DISTRIBUTION
Examples
1. Testing the effectiveness of a drug: Several patients take the drug
(the trials), and for each patient the drug is either effective or not
effective (two possible outcomes).
2. Weekly sales of a car salesperson: The salesperson has several
customers during the week (the trials), and for each customer the
salesperson either makes a sales or does not make a sale (two possible
outcomes).
3. Taste tests for colas: A number of people taste two different colas
(the trials), and for each person the preference is either for the first
cola or for the second cola (two possible outcomes).
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.5 THE BINOMIAL DISTRIBUTION
For a binomial experiment, the probability of exactly
x successes in n trials is given by the binomial formula:
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.5 THE BINOMIAL DISTRIBUTION
Examples
1. The probability that a certain kind of component will survive a given
shock test is 3/4. If 10 components are tested,
(a) determine the probability distribution function for a component tested
that survived.
(b) find the probability that exactly 5 components tested that survived.
(0.0584)
2. The probability that an engineering student will get an ‘A’ for a final year
project is 0.75. Find the probability that
a. exactly 2 of the next 4 students will get an ‘A’ for the project. (0.2109)
b. at most 1 of the next 4 students will get an ‘A’ for the project. (0.0508)
c. at least 3 of the next 4 students will get an ‘A’ for the project. (0.7383)
Excellent does not an accident, but it comes through a hard work!!
Test your understanding….
Exercise 3.7 (pg65)
A large chain retailer purchases a certain kind of electronic device from a
manufacturer. The manufacturer indicates that the defective rate of the device is 3%.
The inspector of the retailer randomly picks 20 items from a shipment.
a. What is the probability that there will be at least one defective item? (0.4562)
b. How many defective items are expected from this shipment? (0.6)
Exercise 3.8 (pg66)
It is conjectured that an impurity exists in 30% of all drinking wells in a certain rural
community. In order to gain some insight on this problem, it is determined that some
tests should be made. It is too expensive to test all of the many wells in the area so 10
were randomly selected for testing.
(a) What is the probability that exactly three wells have the impurity assuming that
the conjecture is correct? (0.2668)
(b) What is the probability that more than three wells are impure? (0.3504)
(c) How many wells are expected to have the impurity? (3)
(d) Find the standard deviation of the wells which have the impurity. (1.4491)
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.6 THE HYPERGEOMETRIC DISTRIBUTION
The probability of x successes in n draws without replacement
from a finite population of size N containing exactly k successes.
nx
n
N
xn
kN
x
k
xp ,...,2,1,0)( 





















   















N
k
pwhere
N
nN
ppnVariance
npMean
,
1
1:
:
2


EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.6 THE HYPERGEOMETRIC DISTRIBUTION
Example
1. A shipment of 20 computer chips contains 5 that are defective. If 10 of
them are randomly chosen for inspection, what is the probability that
2 of them will be defective? (0.3483)
2. Batches of 40 digital voice recorders each are considered acceptable
if they contain no more than 3 defectives. The procedure for sampling
the batch is to select 5 recorders at random without replacement and
to reject the batch if a defective is found.
a. What is the probability that exactly 1 defective is found in the sample
if there are 3 defectives in the entire batch? (0.3011)
b. Find the mean and variance of the random variable above. (0.375,
0.3113)
Excellent does not an accident, but it comes through a hard work!!
Test your understanding….
Exercise 3.9 (pg69)
A distributor sells 100 machine components from a local manufacturer and 200
machine components from a foreign manufacturer. If four components are selected
randomly and without replacement,
(a) what is the probability that they are all from the local manufacturer? (0.0119)
(b) what is the probability that two or more components in the sample are
from the local manufacturer? (0.4075)
(c) what is the probability that at least one component in the sample is
from the local manufacturer? (0.8045)
Exercise 3.10 (pg69)
Five new recruits from different family and education background have been trained
separately to conduct a special task. After they have completed their training, they
were sent to join other recruits. A random sample of 10 of these recruits is selected.
Let X = the number of new recruits in the second sample. If there are actually 25
recruits altogether, what is the probability that:
a. the number of new recruits in the second sample is two? (0.3854)
b. the number of new recruits in the second sample is at most two? (0.6988)
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.7 THE POISSON DISTRIBUTION
Poisson experiments are experiments yielding numerical values
of a random variable X, the number of outcomes occurring
during a given unit of time or space.
3 conditions to apply Poisson Probability Distribution:
a. X is a discrete random variable.
b. The occurrences are random.
c. The occurrences are independent.
Example :
 The number of UTeM students completing their industrial
training in four months period.
 The number of new PROTON cars sold yearly.
 The parts per million of some toxin found in the water or air
emission from a manufacturing plant.
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
!
)(
x
e
xp
x 
 

Where:
λ=no of occurrence in the interval
e=2.71828






:
:
:
2
ionStndDeviat
Variance
Mean
EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
3.7 THE POISSON DISTRIBUTION
Examples
1.
Over a 10-minute period, a counter records an average of 1.3 gamma
particles per millisecond coming from a radioactive substance. To a good
approximation, the distribution of the count, X, of gamma particles
during the next millisecond is Poisson. Determine:
(a) the probability of one or more gamma particles. (0.7275)
(b) the variance. (1.3)
2. If a bank receives on the average λ = 6 bad checks per day, what are the
probabilities that it will receive:
(a) 4 bad checks on any given day? (0.1339)
(b) 10 bad checks over any 2 consecutive days? (0.1048)
Excellent does not an accident, but it comes through a hard work!!
Test your understanding….
Exercise 3.11 (pg71)
In the inspection of tin plate produced by a continuous electrolytic
process, 0.2 imperfection is spotted per minute, on average. Find
the probabilities of spotting
(a) one imperfection in 3 minutes. (0.3293)
(b) at least two imperfections in 5 minutes. (0.2642)
(c) at most one imperfection in 15 minutes. (0.1992)
Exercise 3.12 (pg71)
Three is the average number of oil tankers arriving each day at a
small port. The facilities at the port can handle at most 5 tankers per
day. What is the probability that on a given day tankers have to be
turned away? (0.084)
Excellent does not an accident, but it comes through a hard work!!28

More Related Content

Similar to discrete random_variables

Unit 11.2 experimental probability
Unit 11.2 experimental probabilityUnit 11.2 experimental probability
Unit 11.2 experimental probabilityMark Ryder
 
Algebra unit 9.6
Algebra unit 9.6Algebra unit 9.6
Algebra unit 9.6Mark Ryder
 
Probability distribution
Probability distributionProbability distribution
Probability distributionPunit Raut
 
unit11-150415150010-conversion-gate02.ppt
unit11-150415150010-conversion-gate02.pptunit11-150415150010-conversion-gate02.ppt
unit11-150415150010-conversion-gate02.pptREDENJAVILLO1
 
probability ch 6 ppt_1_1.pptx
probability ch 6 ppt_1_1.pptxprobability ch 6 ppt_1_1.pptx
probability ch 6 ppt_1_1.pptxYeMinThant4
 
Poisson probability distribution
Poisson probability distributionPoisson probability distribution
Poisson probability distributionNadeem Uddin
 
Statistik Chapter 5
Statistik Chapter 5Statistik Chapter 5
Statistik Chapter 5WanBK Leo
 
CHAPTER 81. Consider using the addition rule when simple outcome.pdf
CHAPTER 81. Consider using the addition rule when simple outcome.pdfCHAPTER 81. Consider using the addition rule when simple outcome.pdf
CHAPTER 81. Consider using the addition rule when simple outcome.pdfbhargavadrbrijrani
 
7. binomial distribution
7. binomial distribution7. binomial distribution
7. binomial distributionKaran Kukreja
 
Chapter 7-8 Review Sheet Answers
Chapter 7-8 Review Sheet AnswersChapter 7-8 Review Sheet Answers
Chapter 7-8 Review Sheet Answerssojhk
 
Probability sampling
Probability samplingProbability sampling
Probability samplingPaul Grima
 
Sqqs1013 ch5-a122
Sqqs1013 ch5-a122Sqqs1013 ch5-a122
Sqqs1013 ch5-a122kim rae KI
 
Half Life Decay Presentation (Chemistry for engineers)
Half Life Decay Presentation (Chemistry for engineers)Half Life Decay Presentation (Chemistry for engineers)
Half Life Decay Presentation (Chemistry for engineers)EmanuelLoto
 
Internal examination 3rd semester disaster
Internal examination 3rd semester disasterInternal examination 3rd semester disaster
Internal examination 3rd semester disasterMahendra Poudel
 

Similar to discrete random_variables (20)

3.SM.02 Sampling Methods.pdf
3.SM.02 Sampling Methods.pdf3.SM.02 Sampling Methods.pdf
3.SM.02 Sampling Methods.pdf
 
Unit 11.2 experimental probability
Unit 11.2 experimental probabilityUnit 11.2 experimental probability
Unit 11.2 experimental probability
 
Algebra unit 9.6
Algebra unit 9.6Algebra unit 9.6
Algebra unit 9.6
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 
unit11-150415150010-conversion-gate02.ppt
unit11-150415150010-conversion-gate02.pptunit11-150415150010-conversion-gate02.ppt
unit11-150415150010-conversion-gate02.ppt
 
probability ch 6 ppt_1_1.pptx
probability ch 6 ppt_1_1.pptxprobability ch 6 ppt_1_1.pptx
probability ch 6 ppt_1_1.pptx
 
Poisson probability distribution
Poisson probability distributionPoisson probability distribution
Poisson probability distribution
 
Statistik Chapter 5
Statistik Chapter 5Statistik Chapter 5
Statistik Chapter 5
 
Unit3
Unit3Unit3
Unit3
 
CHAPTER 81. Consider using the addition rule when simple outcome.pdf
CHAPTER 81. Consider using the addition rule when simple outcome.pdfCHAPTER 81. Consider using the addition rule when simple outcome.pdf
CHAPTER 81. Consider using the addition rule when simple outcome.pdf
 
Sheet#2
Sheet#2Sheet#2
Sheet#2
 
7. binomial distribution
7. binomial distribution7. binomial distribution
7. binomial distribution
 
Chapter 7-8 Review Sheet Answers
Chapter 7-8 Review Sheet AnswersChapter 7-8 Review Sheet Answers
Chapter 7-8 Review Sheet Answers
 
Probability sampling
Probability samplingProbability sampling
Probability sampling
 
Sqqs1013 ch5-a122
Sqqs1013 ch5-a122Sqqs1013 ch5-a122
Sqqs1013 ch5-a122
 
Poisson distribution jen
Poisson distribution jenPoisson distribution jen
Poisson distribution jen
 
Half Life Decay Presentation (Chemistry for engineers)
Half Life Decay Presentation (Chemistry for engineers)Half Life Decay Presentation (Chemistry for engineers)
Half Life Decay Presentation (Chemistry for engineers)
 
Poission distribution
Poission distributionPoission distribution
Poission distribution
 
Internal examination 3rd semester disaster
Internal examination 3rd semester disasterInternal examination 3rd semester disaster
Internal examination 3rd semester disaster
 
Lect w3 probability
Lect w3 probabilityLect w3 probability
Lect w3 probability
 

Recently uploaded

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Recently uploaded (20)

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

discrete random_variables

  • 1. CHAPTER 3 DISCRETE RANDOM VARIABLES Prepared by: Noryani Muhammad
  • 2. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE OBJECTIVES 1. To study the concept of discrete random variables. 2. To construct the probability and cumulative distribution functions, mean, and standard deviation. 3. To study and apply the binomial, hypergeometric, and poisson distributions.
  • 3. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.1 CONSEPT OF A RANDOM VARIABLE • A quantitative variable whose value is random, determined by the outcome of a random experiment. • Denoted by uppercase X and the possible values are denoted by lowercase x. • Discrete random variable assume only countable value.
  • 4. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.2 PROBABILITY DISTRIBUTION FUNCTION 1)( 1)(0   xXp xXp allx Two conditions of a probability distribution function: Example:
  • 5. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.2 PROBABILITY DISTRIBUTION FUNCTION
  • 6. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.2 PROBABILITY DISTRIBUTION FUNCTION
  • 7. Test your understanding…. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE
  • 8. Test your understanding…. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE Determine whether or not each table represents a valid probability distribution.
  • 9. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.3 CUMULATIVE DISTRIBUTION FUNCTION The cumulative distribution function f(x) of a discrete random variable X with the probability distribution function f(x) is Example ~ Refer example 3.3
  • 10. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.3 CUMULATIVE DISTRIBUTION FUNCTION Example 3.5
  • 11. Excellent does not an accident, but it comes through a hard work!! Test your understanding…. 1. Find the cumulative distribution function of X: Breakdowns per week 0 1 2 3 p.d.f , p(X=x) 0.15 0.2 0.35 0.3 c.d.f, p(X=x) 2. The probability distribution of X, the number of imperfections per 10 meters of a synthetic fabric in continuous rolls of uniform width, is given by: a) Construct the cumulative distribution function of X. b) Using the answer in (a), find the probability that there is at least three imperfections per 10 meters of the fabric.
  • 12. Excellent does not an accident, but it comes through a hard work!! Test your understanding….
  • 13. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.4 EXPECTED VALUE AND VARIANCE Expected value: Value that is expected to occur every time when experiment is repeated. Variance: Deviation from the mean.
  • 14. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.4 EXPECTED VALUE AND VARIANCE Example: Find the mean and standard deviation of X
  • 15. Excellent does not an accident, but it comes through a hard work!! Test your understanding…. Find the mean and standard deviation of X:
  • 16. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.5 THE BINOMIAL DISTRIBUTION The binomial distribution is applied to find the probability that an outcomes will occurs x times in n performances of an experiment which satisfies the Bernoulli Process. 1. The experiment consists of n repeated trials. 2. Each trial results in two outcomes only: classified as a success (p) or a failure (q). Success = the outcome to which the question refers Failure=the outcome to which it does not refer 3. The probability p and q remains constant from trial to trial. 4. The repeated trials are independent.
  • 17. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.5 THE BINOMIAL DISTRIBUTION Examples 1. Testing the effectiveness of a drug: Several patients take the drug (the trials), and for each patient the drug is either effective or not effective (two possible outcomes). 2. Weekly sales of a car salesperson: The salesperson has several customers during the week (the trials), and for each customer the salesperson either makes a sales or does not make a sale (two possible outcomes). 3. Taste tests for colas: A number of people taste two different colas (the trials), and for each person the preference is either for the first cola or for the second cola (two possible outcomes).
  • 18. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.5 THE BINOMIAL DISTRIBUTION For a binomial experiment, the probability of exactly x successes in n trials is given by the binomial formula:
  • 19. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.5 THE BINOMIAL DISTRIBUTION Examples 1. The probability that a certain kind of component will survive a given shock test is 3/4. If 10 components are tested, (a) determine the probability distribution function for a component tested that survived. (b) find the probability that exactly 5 components tested that survived. (0.0584) 2. The probability that an engineering student will get an ‘A’ for a final year project is 0.75. Find the probability that a. exactly 2 of the next 4 students will get an ‘A’ for the project. (0.2109) b. at most 1 of the next 4 students will get an ‘A’ for the project. (0.0508) c. at least 3 of the next 4 students will get an ‘A’ for the project. (0.7383)
  • 20. Excellent does not an accident, but it comes through a hard work!! Test your understanding…. Exercise 3.7 (pg65) A large chain retailer purchases a certain kind of electronic device from a manufacturer. The manufacturer indicates that the defective rate of the device is 3%. The inspector of the retailer randomly picks 20 items from a shipment. a. What is the probability that there will be at least one defective item? (0.4562) b. How many defective items are expected from this shipment? (0.6) Exercise 3.8 (pg66) It is conjectured that an impurity exists in 30% of all drinking wells in a certain rural community. In order to gain some insight on this problem, it is determined that some tests should be made. It is too expensive to test all of the many wells in the area so 10 were randomly selected for testing. (a) What is the probability that exactly three wells have the impurity assuming that the conjecture is correct? (0.2668) (b) What is the probability that more than three wells are impure? (0.3504) (c) How many wells are expected to have the impurity? (3) (d) Find the standard deviation of the wells which have the impurity. (1.4491)
  • 21. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.6 THE HYPERGEOMETRIC DISTRIBUTION The probability of x successes in n draws without replacement from a finite population of size N containing exactly k successes. nx n N xn kN x k xp ,...,2,1,0)(                                          N k pwhere N nN ppnVariance npMean , 1 1: : 2  
  • 22. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.6 THE HYPERGEOMETRIC DISTRIBUTION Example 1. A shipment of 20 computer chips contains 5 that are defective. If 10 of them are randomly chosen for inspection, what is the probability that 2 of them will be defective? (0.3483) 2. Batches of 40 digital voice recorders each are considered acceptable if they contain no more than 3 defectives. The procedure for sampling the batch is to select 5 recorders at random without replacement and to reject the batch if a defective is found. a. What is the probability that exactly 1 defective is found in the sample if there are 3 defectives in the entire batch? (0.3011) b. Find the mean and variance of the random variable above. (0.375, 0.3113)
  • 23. Excellent does not an accident, but it comes through a hard work!! Test your understanding…. Exercise 3.9 (pg69) A distributor sells 100 machine components from a local manufacturer and 200 machine components from a foreign manufacturer. If four components are selected randomly and without replacement, (a) what is the probability that they are all from the local manufacturer? (0.0119) (b) what is the probability that two or more components in the sample are from the local manufacturer? (0.4075) (c) what is the probability that at least one component in the sample is from the local manufacturer? (0.8045) Exercise 3.10 (pg69) Five new recruits from different family and education background have been trained separately to conduct a special task. After they have completed their training, they were sent to join other recruits. A random sample of 10 of these recruits is selected. Let X = the number of new recruits in the second sample. If there are actually 25 recruits altogether, what is the probability that: a. the number of new recruits in the second sample is two? (0.3854) b. the number of new recruits in the second sample is at most two? (0.6988)
  • 24. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.7 THE POISSON DISTRIBUTION Poisson experiments are experiments yielding numerical values of a random variable X, the number of outcomes occurring during a given unit of time or space. 3 conditions to apply Poisson Probability Distribution: a. X is a discrete random variable. b. The occurrences are random. c. The occurrences are independent. Example :  The number of UTeM students completing their industrial training in four months period.  The number of new PROTON cars sold yearly.  The parts per million of some toxin found in the water or air emission from a manufacturing plant.
  • 25. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE ! )( x e xp x     Where: λ=no of occurrence in the interval e=2.71828       : : : 2 ionStndDeviat Variance Mean
  • 26. EACH NEW DAY IS ANOTHER CHANCE TO CHANGE YOUR LIFE 3.7 THE POISSON DISTRIBUTION Examples 1. Over a 10-minute period, a counter records an average of 1.3 gamma particles per millisecond coming from a radioactive substance. To a good approximation, the distribution of the count, X, of gamma particles during the next millisecond is Poisson. Determine: (a) the probability of one or more gamma particles. (0.7275) (b) the variance. (1.3) 2. If a bank receives on the average λ = 6 bad checks per day, what are the probabilities that it will receive: (a) 4 bad checks on any given day? (0.1339) (b) 10 bad checks over any 2 consecutive days? (0.1048)
  • 27. Excellent does not an accident, but it comes through a hard work!! Test your understanding…. Exercise 3.11 (pg71) In the inspection of tin plate produced by a continuous electrolytic process, 0.2 imperfection is spotted per minute, on average. Find the probabilities of spotting (a) one imperfection in 3 minutes. (0.3293) (b) at least two imperfections in 5 minutes. (0.2642) (c) at most one imperfection in 15 minutes. (0.1992) Exercise 3.12 (pg71) Three is the average number of oil tankers arriving each day at a small port. The facilities at the port can handle at most 5 tankers per day. What is the probability that on a given day tankers have to be turned away? (0.084)
  • 28. Excellent does not an accident, but it comes through a hard work!!28