Statistik15distribusiprobabilitasdiskrit 141031084113 Conversion Gate02

Download as pdf or txt
Download as pdf or txt
You are on page 1of 47

Chapter Six

Distribusi Probabilitas Diskret


GOALS
1. Define the terms probability distribution and
random variables.
2. Distinguish between a discrete and continuous
probability distributions.
3. Calculate the mean, variance, and standard
deviation of a discrete probability distribution.
4. Binomial probability distribution.
5. Hypergeometric distribution.
6. Poisson distribution.
Distribusi Probabilitas
 Distribusi Probabilitas: daftar seluruh hasil
percobaan beserta probabilitas untuk masing-
masing hasil.
 Karakteristik Distribusi Probabilitas:
 Probabilitas sebuah hasil adalah antara 0 dan 1
 Semua kejadian (event) adalah mutually
exclusive
 Jumlah probabilitas semua kejadian (event) yang
mutually exclusive=1 (c o lle c tiv e ly e x ha us tive )
 Contoh:
Eksperimen melempar koin 3 kali. Keluarnya
He a d (H) menjadi fokus, misalnya X adalah
kejadian keluar He a d (H).
H: hasil lemparan he a d dan T: hasil lemparan
ta il.
Maka, akan ada 8 kemungkinan hasil.
Contoh: Eksperimen melempar koin
tiga kali
Possible Lemparan Koin Number
Result Pertama Kedua Ketiga of Heads

1 T T T 0
2 T T H 1
3 T H T 1
4 H T T 1
5 T H H 2
6 H T H 2
7 H H T 2
8 H H H 3
Distribusi Probabilitas

Number of Heads Probability of Outcomes


(X) P(X)
0 1/8 = 0,125
1 3/8 = 0.375
2 3/8 = 0.375
3 1/8 = 0,125
Total 1
Random Variables (Variabel
Acak)
 Variable Acak adalah nilai numerik yang
ditentukan oleh hasil suatu eksperimen. Nilainya
bisa bermacam-macam.
 Contoh:
 Jumlah siswa yang absen pada hari ini, angkanya
mungkin 0, 1, 2, 3… dll.  angka absen adalah
variabel acak
 Berat tas yang dibawa mahasiswa, mungkin 2,5 kg;
3,2kg, … dll.berat tas adalah variabel acak.
Types of Random Variables

 A discrete random variable can assume


only certain outcomes. Usually data was
obtained by counting.

 A continuous random variable can


assume an infinite number of values
within a given range. Usually data was
obtained by measuring.
Types of Random Variables
 Examples of a discrete random variable:
 The number of students in a class.
 The number of children in a family.
 The number of cars entering a carwash in a hour.
 Number of home mortgages approved by Coastal
Federal Bank last week.
 Number of CDs you own.
 Number of trips made outside Hong Kong in the
past one year.
 The number of ten-cents coins in your pocket.
Types of Probability
Distributions
 Examples of a continuous random
variable:
 The distance students travel to class.
 The time it takes an executive to drive to work.
 The length of an afternoon nap.
 The length of time of a particular phone call.
 The amount of money spent on your last
haircut.
The Mean of a Discrete Probability
Distribution
 The mean:
 reports the central location of the data.
 is the long-run average value of the random
variable.
 is also referred to as its expected value, E(X),
in a probability distribution.
 is a weighted average.
The Mean of a Discrete Probability
Distribution
The mean is computed by the formula:

μ = Σ[xP(x)]
where µ represents the mean and P(x ) is the
probability of the various outcomes x .

Similar to the formula for computing grouped


mean where P(x) is replaced by relative
frequency.
The Variance of a Discrete
Probability Distribution
 The variance measures the amount of
spread (variation) of a distribution.
 The variance of a discrete distribution is

denoted by the Greek letter σ2 (sigma


squared).
 The standard deviation is the square root

of σ2
The Variance & standard deviation
of a Discrete Probability
Distribution
 The variance of a discrete probability
distribution is computed from the formula:
2 2
σ = Σ[(x − μ) P(x)]
 The stadard deviation is the square root of σ2
2
σ= σ

Similar to the formula for computing grouped


variance where P(x) is replaced by relative
frequency.
EXAMPLE 2
 Arman, owner of College Painters, studied his records
for the past 20 weeks and reports the following
number of houses painted per week:
# of Houses Pa i n t e d Weeks to finish

10 5

11 6
12 7
13 2

 Set the probability distribution


 Compute mean and variance
EXAMPLE 2 c o ntinue d
 Probability Distribution:

Number of houses painted, x W e e k s Probability, P( x)

10 5 .25
11 6 .30
12 7 .35
13 2 .10
Total 20 1.00
EXAMPLE 2 c o ntinue d
 Compute the mean number of houses painted
per week:
μ = E(x) = Σ[xP(x)]
= (10)(.25) + (11)(.30) + (12)(.35) + (13)(.10)
= 11.3
x Week P(x) x.P(x)
10 5 0.25 2.5
11 6 0.30 3.3
12 7 0.35 4.2
13 2 0.10 1.3
Total 20 1 11.3
EXAMPLE 2 c o ntinue d
 Compute the variance of the number of
houses painted per week:
σ2 = Σ[(x − μ) 2 P(x)]
= (10 − 11.3) 2 (.25) + ... + (13 − 11.3) 2 (.10)
= 0.4225 + 0.0270 + 0.1715 + 0.2890
= 0.91
x Week P(x) x.P(x) x-µ (x-µ) 2 (x-µ) 2.P(x)
10 5 0.25 2.5 -1.3 1.69 0.42
11 6 0.30 3.3 -0.3 0.09 0.03
12 7 0.35 4.2 0.7 0.49 0.17
13 2 0.10 1.3 1.7 2.89 0.29
Total 20 1 11.3 0.91
Types of Probability Distributions

 Discrete Probability Distributions


 Binomial Probability Distributions
 Hypergeometric Probability Distributions
 Poisson Probability Distributions

 Continuous Probability Distributions


 Normal Probability Distributions
Binomial Probability Distribution
 The binomial distribution has the following
characteristics:
 An outcome of an experiment is classified into
o ne o f TWO m utua lly e x c lus iv e c a te g o rie s ,
such as a success or failure.
 The data collected are the results of counting
the success event of some trial.
 The probability of success stays the same for
each trial.
 The trials are independent.
Binomial Probability Distribution
 To construct a binomial distribution, let
 n be the number of trials
 x be the number of observed successes
 π be the probability of success on each trial

 The formula for the binomial probability


distribution is:
P(x) = nCx π x(1- π)n-x
Binomial Probability Distribution
 The formula for the binomial probability
distribution is:
P(x) = nCx π x(1- π)n-x
TTT, TTH, THT, THH,
HTT, HTH, HHT, HHH.

 X=number of heads
 The coin is fair, i.e., P(head) = 1/2.
 P(x=0) = 3 C 0 0.5 0(1- 0.5) 3-0 =0.125=1/8
 P(x=1) = 3 C 1 0.5 1(1- 0.5) 3-1 =0.375=3/8
 P(x=2) = 3 C 2 0.5 2(1- 0.5) 3-2 =0.375=3/8
 P(x=3) = 3 C 3 0.5 3(1- 0.5) 3-3 =0.125=1/8
When the coin is not fair, simple counting rule will not work.
EXAMPLE 3
The Department of Labor reports that
20% of the workforce in Surabaya is
unemployed. From a sample of 14
workers, calculate the following
probabilities:
 Exactly three are unemployed.
 At least three are unemployed.
 At least one are unemployed.
EXAMPLE 3 c o ntinue d

The Department of Labor reports that 20% of the workforce in


Surabaya is unemployed. From a sample of 14 workers

 The probability of exactly 3:


P (3)=14 C 3 (.20)3 (1 − .20 )11
= (364 )(.0080 )(.0859 )
= .2501

 The probability of at least 3 is:


P( x ≥ 3) = P (3) + P (4) + P (5) + ....... + P (14)
= 14 C3 (.20)3 (.80)11 + ... + 14 C14 (.20)14 (.80) 0
= .250 + .172 + ... + .000 = 0.551
Example 3 c o ntinue d

The Department of Labor reports that 20% of the workforce in


Surabaya is unemployed. From a sample of 14 workers

 The probability of at least one being


unemployed.
P(x ≥ 1) = P (1) + P (2) + .... + P (14)
= 1 − P(0)
0 14
= 1 − 14 C0 (.20) (1 − .20)
= 1 − .044 = .956
Mean & Variance of the Binomial
Distribution
 The mean is found by:
µ = nπ
 The variance is found by:

σ = nπ (1 − π )
2
EXAMPLE 4
 From EXAMPLE 3, recall that π =.2 and n=14.

 Hence, the mean is:


µ= n π = 14(.2) = 2.8.

 The variance is:


σ2 = n (1- π ) = (14)(.2)(.8) =2.24.
Contoh
 Probabilitas kerusakan pada barang yang
diproduksi Perusahaan “X” adalah 10%.
Jika diambil 6 sampel random, maka :
 Buatlah distribusi probabilitas
 Hitung rata-rata dan standar deviasi
probabilitas tersebut
Jumlah Barang Probabilitas, P(X)
Rusak (X)
0 P(0)=6C0 0.10(1- 0.1)6-0 = 0,531
1 P(1)=6C1 0.11(1- 0.1)6-1 = 0,354
2 P(2)=6C2 0.12(1- 0.1)6-2 =0,098
3 0,015
4 0,001
5 0,000
6 0,000
Total 1
µ = nπ = 6 * 0,10 = 0,60
σ 2 = nπ (1 − π ) = 6 * 0,10(1 − 0,9) = 0,54
σ = 0,54 = 0,73
Soal
 Berdasarkan data yang ada, probabilitas
mahasiswa lulus Mata Kuliah Statistik
adalah 70%. Jika diambil sampel random
10 mahasiswa, hitung probabilitas :
1. 6 mahasiswa lulus
2. 3 mahasiswa tidak lulus
3. Kurang dari 9 mahasiswa lulus
4. Paling banyak 2 mahasiswa tidak lulus
Soal
• Mahasiswa Lulus n=10; π=0.7
1. 6 mahasiswa lulus P(6)
2. 3 mahasiswa tidak lulus = 7 mahasiswa lulus
dengan π=0.7 gunakan x =10-3=7P(7)
atau dengan π=1-0.7=0.3  P(3)
3. Kurang dari 9 mahasiswa lulus
 P(x<9)=P(8)+P(7)+…+P(0)
atau P(x<9)=1-P(9)+P(10)
4. Paling banyak 2 mahasiswa tidak lulus = paling banyak 8
mahasiswa lulus
 dengan π=0.3 P(x ≤2)=P(2)+P(1)+P(0)
atau dengan π=0.7 P(x≤8)=P(8)+…+P(0) =1-P(9)+P(10)
Hypergeometric Distribution
 Use the hypergeometric distribution to find
the probability of a specified number of
successes or failures if:
 the sample is selected from a finite population
without replacement (recall that a criteria for
the binomial distribution is that the probability
of success remains the same from trial to trial)

 the size of the sample n is greater than 5% of


the size of the population N .
Hypergeometric Distribution
 The hypergeometric distribution has the
following characteristics:
 There are only 2 possible outcomes, eg. Success
or failure
 It results from a count of the number of successes
in a fixed number of trials (number of success is
the Random variable)
 The probability of a success is not the same on
each trial without replacement, thus events are
not independent
EXAMPLE 8 o f la s t le c ture
In a bag containing 7 red chips and 5 blue chips you
select 2 chips one after the other without
replacement.
6/11 R2

7/12 R1
5/11 B2

7/11 R2

5/12 B1

4/11 B2

The probability of a success (red chip) is not the same on each trial.
Hypergeometric Distribution
 The formula for finding a probability using the
hypergeometric distribution is:

( S C x )( N −S Cn − x )
P( x ) =
N Cn

where N is the size of the population, S is the


number of successes in the population, x is
the number of successes in a sample of n
observations.
EXAMPLE 5
 The National Air Safety Board has a list of 10 reported
safety violations. Suppose only 4 of the reported
violations are actual violations and the Safety Board will
only be able to investigate five of the violations. What is
the probability that three of five violations randomly
selected to be investigated are actually violations?

( 4 C3 )( 10− 4 C5−3 )
P(3) =
10 C5

( 4 C3 )(6 C2 ) 4(15)
= = = .238
10 C5 252
Contoh

 Perusahaan “X” mempunyai 50 karyawan,


40 diantaranya bergabung dalam Serikat
Kerja. Jika diambil 5 sampel random,
maka :
1. Berapa probabilitas 4 karyawan
bergabung dalam Serikat Kerja
2. Buat distribusi probabilitas
( 40 C4 )(50−40 C5−4 ) (91.390)(10)
P ( 4) = = = 0,431
50 C5 2.118.760

Jumlah Karyawan (X) Probabilitas, P(X)


0 0,000
1 0,004
2 0,044
3 0,210
4 0,431
5 0,311
Total 1
POISSON DISTRIBUTION
Poisson Distribution
1. Number of events that occur in an interval
• events per unit
— Time, Length, Area, Space

1. Examples
 Number of customers arriving in 20
minutes
 Number of strikes per year in the U.S.
 Number of defects per lot (group) of
DVD’s
Poisson Process
1. Constant event
probability
 Average of 60/hr is
1/min for 60 1-minute
intervals
1. One event per interval
 Don’t arrive together
1. Independent events
 Arrival of 1 person does
not affect another’s
arrival
© 1984-1994 T/Maker Co.
Poisson Probability Distribution
Function
x -λ
λe
p (x ) =
x!

p(x) = Probability of x given λ


λ = Expected (mean) number of
‘successes’
e = 2.71828 (base of natural logarithm)
x = Number of ‘successes’ per unit
Poisson Distribution Example
Customers arrive at a
rate of 72 per hour.
What is the probability of
4 customers arriving in 3
minutes?

© 1995 Corel Corp.


Poisson Distribution Solution

72 Per Hr. = 1.2 Per Min. = 3.6 Per 3 Min. Interval


λ e
x
p ( x) =
x!
( 3.6 )
4 -3.6
e
p (4) = = .1912
4!
Thinking Challenge
You work in Quality
Assurance for an investment
firm. A clerk enters 75
words per minute with 6
errors per hour. What is the
probability of 0 errors in a
255-word bond transaction?

© 1984-1994 T/Maker Co.


Poisson Distribution Solution: Finding λ*

 75 words/min = (75 words/min)(60 min/hr)


= 4500 words/hr
 6 errors/hr = 6 errors/4500 words
= .00133 errors/word
 In a 255-word transaction (interval):
λ = (.00133 errors/word )(255 words)
= .34 errors/255-word transaction
Poisson Distribution Solution:
Finding p(0)*


λ e
x
p( x) =
x!
( .34 )
0 -.34
e
p (0) = = .7118
0!
Chapter Six
Discrete Probability Distributions

- END -

You might also like