Professional Documents
Culture Documents
Distribution .10
0 1 2 3 4
Slide
1
Random Variables
A
A random
random variable
variable is
is aa numerical
numerical description
description of
of the
the
outcome
outcome of
of an
an experiment.
experiment.
A
A discrete
discrete random
random variable
variable may
may assume
assume either
either aa
finite
finite number
number of
of values
values or
or an
an infinite
infinite sequence
sequence of
of
values.
values.
A
A continuous
continuous random
random variable
variable may
may assume
assume any
any
numerical
numerical value
value in
in an
an interval
interval or
or collection
collection of
of
intervals.
intervals.
Slide
2
Example: JSL Appliances
Let
Let xx == number
number ofof TVs
TVs sold
sold at
at the
the store
store in
in one
one day,
day,
where
where xx can
can take
take on
on 55 values
values (0,
(0, 1,
1, 2,
2, 3,
3, 4)
4)
Slide
3
Example: JSL Appliances
Let
Let xx == number
number ofof customers
customers arriving
arriving in
in one
one day,
day,
where
where xx can
can take
take on
on the
the values
values 0,
0, 1,
1, 2,
2, .. .. ..
Slide
4
Examples Discrete Random Variables
Possible
Experiment Random Variable (x)
Value
Contact 5 Number of customers
0, 1, 2, 3, 4, 5
customers who place an order
Inspect a ship- 0, 1, …, 50
Number of defectives radios
ment of 50 radios
Sell an 0 if male,
Gender of the customer 1 if female
automobile
Slide
5
Examples of Continuous Random Variables
Possible
Experiment Random Variable x
Value
Operate a Time between customer
X≥0
bank arrivals in minutes
Slide
6
Random Variables
Slide
7
Exercise 3
Exercise 5
Exercise 6
Slide
8
Discrete Probability Distributions
The
The probability
probability distribution
distribution for
for aa random
random variable
variable
describes
describes how
how probabilities
probabilities are
are distributed
distributed over
over
the
the values
values of
of the
the random
random variable.
variable.
Slide
9
Discrete Probability Distributions
The
The probability
probability distribution
distribution is
is defined
defined byby aa
probability
probability function,
function, denoted
denoted by f(x), which
by f(x), which provides
provides
the
the probability
probability for
for each
each value
value ofof the
the random
random variable.
variable.
f(x) = 1
Slide
10
Discrete Probability Distributions
Number 80/200
Units Sold of Days x f(x)
0 80 0 .40
1 50 1 .25
2 40 2 .20
3 10 3 .05
4 20 4 .10
200 1.00
Slide
11
Discrete Probability Distributions
.50
.40
Probability
.30
.20
.10
0 1 2 3 4
Values of Random Variable x (TV sales)
Slide
12
Discrete Uniform Probability Distribution
The
The discrete
discrete uniform
uniform probability
probability distribution
distribution is
is the
the
simplest
simplest example
example of
of aa discrete
discrete probability
probability
distribution
distribution given
given by
by aa formula.
formula.
The
The discrete
discrete uniform
uniform probability
probability function
function is
is
Slide
13
Expected Value and Variance
The
The expected
expected value,
value, or
or mean,
mean, of
of aa random
random variable
variable
is
is aa measure
measure of
of its
its central
central location.
location.
E(x) = = xf(x)
The
The variance
variance summarizes
summarizes the
the variability
variability in
in the
the
values
values of
of aa random
random variable.
variable.
Var(x) = 2 = (x - )2f(x)
The
The standard deviation, ,, is
standard deviation, is defined
defined as
as the
the positive
positive
square
square root
root of
of the
the variance.
variance.
Slide
14
Expected Value and Variance
Expected Value
x f(x) xf(x)
0 .40 .00
1 .25 .25
2 .20 .40
3 .05 .15
4 .10 .40
E(x) = 1.20
expected number of
TVs sold in a day
Slide
15
Expected Value and Variance
Slide
16
Binomial Distribution
Slide
17
Exercise 7
Exercise 9
Exercise 18
Slide
18
Binomial Distribution
Slide
19
Binomial Distribution
n!
f (x) p x (1 p )( n x )
x !(n x )!
where:
f(x) = the probability of x successes in n trials
n = the number of trials
p = the probability of success on any one trial
Slide
20
Binomial Distribution
n!
f (x) p x (1 p )( n x )
x !(n x )!
Probability of a particular
Number of experimental sequence of trial outcomes
outcomes providing exactly with x successes in n trials
x successes in n trials
Slide
21
Binomial Distribution
Slide
22
Binomial Distribution
Let: p = .10, n = 3, x = 1
n!
f ( x) p x (1 p ) ( n x )
x !( n x )!
3!
f (1) (0.1)1 (0.9)2 3(.1)(.81) .243
1!(3 1)!
Slide
23
Binomial Distribution
Tree Diagram
1st Worker 2nd Worker 3rd Worker x Prob.
L (.1) 3 .0010
Leaves (.1)
S (.9) 2 .0090
Leaves
(.1) L (.1) 2 .0090
Stays (.9)
S (.9) 1 .0810
L (.1) 2 .0090
Leaves (.1)
Stays S (.9) 1 .0810
(.9) L (.1)
1 .0810
Stays (.9)
S (.9) 0 .7290
Slide
24
Binomial Distribution
Slide
25
Binomial Distribution
Expected Value
E(x) = = np
Variance
Var(x) = 2 = np(1 - p)
Standard Deviation
np(1 p )
Slide
26
Binomial Distribution
Expected Value
Variance
Standard Deviation
Slide
27
Distribusi Multinomial
Distribusi probabilitas binomial digunakan untuk sejumlah sukses dari n
percobaan yang independen, dimana seluruh hasil (outcomes)
dikategorikan ke dalam dua kelompok (sukses dan gagal). Distribusi
probabilitas multinomial digunakan untuk penentuan probabilitas hasil
yang dikategorikan ke dalam lebih dari dua kelompok. Fungsi distribusi
probabilitas multinomial:
Slide
28
Contoh
Slide
29
Contoh
Bila dua buah dadu dilemparkan 6 kali, berapa peluang mendapat
jumlah bilangan yang muncul sebesar 7 atau 11 sebanyak 2 kali,
bilangan yang sama pada kedua dadu sekali, dan kemungkinan lainnya
sebanyak 3 kali?
Penyelesaian :
o S = 36
o E1 = jumlah kedua dadu 7 atau 11: peluangnya adalah 2/9
o E2 = bilangan yang sama pada kedua dadu : peluangnya 1/6
o E3 = kemungkinan lainnya: 1 – P(E1 + E2) = 1 – (2/9 + 1/6) = 11/18
Slide
30
Distribusi Binomial Negatif
Percobaan binomial negatif
Mencari peluang sukses dalam percobaan
Slide
31
Distribusi Binomial Negatif
Notasi:
b↑∗ :peluang sukses pada trial tertentu
x :jumlah percobaan
p :peluang sukses
q :peluang gagal
k :jumlah sukses yang terjadi
Slide
32
Statistik Deskriptif
1. Rata-rata
=K/P
2. Variansi
2 = K (1-P) / P2
Slide
33
In an NBA (National Basketball Association) champion
series, the team that win four games out of seven is the
winner. Suppose that teams A and B face each other in the
championship games and that team A has probability 0,55 of
winning a games over team B.
a. What is the probability that team A will win the series in
6 games ?
b. What is the probability that team A will win the series ?
c. If team A and B were facing each other in regional play
off series, whice is decided by winning three out of five
games, what is the probability that team A would win the
series ?
Slide
34
Solution :
b*(4;4;0,55)+b*(5;4;0,55)+b*(6;4;0,55)+b*(7;4
;0,55)
= 0,0915 + 0,1647 + 0,1853 + 0,1668
= 0,6083
c. P(team A win the playoff) is
= b*(3;3;0,55)+b*(4;3;0,55)+b*(5;3;0,55)
= 0,1664 + 0,2246 + 0,2021
= 0,5931
Slide
35
Poisson Distribution
A
A Poisson
Poisson distributed
distributed random
random variable
variable is
is often
often
useful
useful in
in estimating
estimating the
the number
number of of occurrences
occurrences
over
over aa specified
specified interval
interval of
of time
time or
or space
space
It
It is
is aa discrete
discrete random
random variable
variable that
that may
may assume
assume
an
an infinite
infinite sequence
sequence of
of values
values (x
(x == 0,
0, 1,
1, 2,
2, .. .. .. ).).
Slide
36
Poisson Distribution
the
the number
number of
of knotholes
knotholes in
in 14
14 linear
linear feet
feet of
of
pine
pine board
board
the
the number
number ofof vehicles
vehicles arriving
arriving at
at aa
toll
toll booth
booth in
in one
one hour
hour
Slide
37
Poisson Distribution
2.
2. The
The occurrence
occurrence or
or nonoccurrence
nonoccurrence in
in any
any
interval
interval is
is independent
independent of
of the
the occurrence
occurrence or
or
nonoccurrence
nonoccurrence inin any
any other
other interval.
interval.
Slide
38
Poisson Distribution
x e
f ( x)
x!
where:
f(x) = probability of x occurrences in an interval
= mean number of occurrences in an interval
e = 2.71828
Slide
39
Poisson Distribution
Slide
40
Poisson Distribution MERCY
= 6/hour = 3/half-hour, x = 4
3 4 (2.71828)3
f (4) .1680
4!
Slide
41
Poisson Distribution MERCY
Poisson Probabilities
0.25
0.20
Probability
0.15 actually,
the sequence
0.10 continues:
11, 12, …
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10
Number of Arrivals in 30 Minutes
Slide
42
Poisson Distribution
A
A property
property of
of the
the Poisson
Poisson distribution
distribution is
is that
that
the
the mean
mean and
and variance
variance are
are equal.
equal.
m=s2
Slide
43
MERCY
Poisson Distribution
m = s 22 = 3
Slide
44
Hypergeometric Distribution
However,
However, for
for the
the hypergeometric
hypergeometric distribution:
distribution:
the
the trials
trials are
are not
not independent,
independent, and
and
the
the probability
probability of
of success
success changes
changes from
from trial
trial
to
to trial.
trial.
Slide
45
Hypergeometric Distribution
r N r
x n x
f ( x) for 0 < x < r
N
n
where: f(x) = probability of x successes in n trials
n = number of trials
N = number of elements in the population
r = number of elements in the population
labeled success
Slide
46
Hypergeometric Distribution
r N r
x nx
f (x) for 0 < x < r
N
n number of ways
n – x failures can be selected
number of ways from a total of N – r failures
x successes can be selected in the population
from a total of r successes
in the population
number of ways
a sample of size n can be selected
from a population of size N
Slide
47
Hypergeometric Distribution
Example: Neveready
Bob Neveready has removed two
dead batteries from a flashlight and
ZAP
inadvertently mingled them with ZA
P
ZAP
ZAP
Slide
48
Hypergeometric Distribution
r N r 2 2 2! 2!
x n x 2 0 2!0! 0!2!
1
f (x) .167
N 4 4! 6
n 2 2!2!
where:
x = 2 = number of good batteries selected
n = 2 = number of batteries selected
N = 4 = number of batteries in total
r = 2 = number of good batteries in total
Slide
49
Hypergeometric Distribution
Mean
r
E ( x) n
N
Variance
r r N n
Var ( x) n 1
2
N N N 1
Slide
50
Hypergeometric Distribution
Mean
r 2
n 2 1
N 4
Variance
2 2 4 2 1
2 1
2
.333
4 4 4 1 3
Slide
51
Hypergeometric Distribution
Consider
Consider aa hypergeometric
hypergeometric distribution
distribution with
with nn trials
trials
and
and let
let pp == (r/n)
(r/n) denote
denote the
the probability
probability of
of aa success
success
on
on the
the first
first trial.
trial.
If
If the
the population
population size
size is
is large,
large, the
the term
term (N
(N –– n)/(N
n)/(N –– 1)
1)
approaches
approaches 1.1.
The
The expected
expected value
value and
and variance
variance can
can be
be written
written
E(x) == np
E(x) np and Var(x) == np(1
and Var(x) np(1 –– p).
p).
Note
Note that
that these
these are
are the
the expressions
expressions for
for the
the expected
expected
value
value and
and variance
variance of
of aa binomial
binomial distribution.
distribution.
continued
Slide
52
Hypergeometric Distribution
When
When thethe population
population size
size is
is large,
large, aa hypergeometric
hypergeometric
distribution
distribution can
can be
be approximated
approximated by by aa binomial
binomial
distribution
distribution with
with nn trials
trials and
and aa probability
probability ofof success
success
pp == (r/N).
(r/N).
Slide
53
End of Week 5
Slide
54