Lecture 12, Stochastic Optimization
Lecture 12, Stochastic Optimization
Lecture 12
Schedule
Schedule
Optimization under Uncertainty
0.5
A
0.5
B $0
$5 M
Success p, failure 1 – p
𝑿 = 1] = p
𝑿 = 0] = 1 – p
Success p, failure 1 – p
Mean:
Variance:
Binomial Distribution
n independent trials
Binomial Distribution
We also say that X obeys a binomial distribution with
parameters n and p : Binomial(n, p) or B(n,p)
Probability
mass function
(pmf)
Binomial Distribution
Mean:
Variance:
Probability Mass Function (pmf)
Cumulative Distribution Function (cdf)
Poisson
Distribution
Poisson Distribution
11:00 14:00
T
Poisson Distribution Mon
Tue
# of MBLM sold
3
7
Wed 4
Thu 6
Fri 5
11:00 14:00
T
Poisson Distribution Mon
Tue
# of MBLM sold
3
7
Wed 4
Thu 6
Fri 5
11:00 14:00
11:00 14:00
This is the probability of selling k Mala Beef La Mian within time T!!
Poisson Distribution
A random variable X is said to be a Poisson r.v. with parameter
λ (> 0) if it has the probability function
Mean:
Variance:
Poisson Distribution
Useful for modelling the number of occurrences of an event over a specified
interval of time or space.
Examples :
• Number of customer orders received in one hour
• Number of failures in a large computer system per month
Properties:
• Probability of an occurrence is the same for any two intervals of equal length.
• Occurrences in nonoverlapping intervals are independent of one another.
Poisson Distribution
Examples and Applications:
– The number of phone calls arriving at a call centre per minute.
– The number of goals in sports involving two competing teams.
– The number of infant death per year.
– The number defaults found per newly TOP flat.
–…
Exponential
Distribution
Exponential Distribution
… …
T1 T2 T3 T4 T5
… …
T1 T2 T3 T4 T5
If there is a unit of time that you sell nothing, then your probability is:
Exponential Distribution (Optional)
t
# of item sold every unit of 1
time
# of item sold half unit of
time
# of item sold a quarter unit
of time
Exponential Distribution
Often arises as the distribution of amount of time until an event occurs.
Useful for waiting line problems.
11:00 14:00
T
A Newsvendor Problem
Buy x items at cost c
Items sold at price p
Salvage price is zero
Uncertain demand, hence profit is uncertain
Summary
A Newsvendor Problem
Buy x items at cost c
Items sold at price p
Salvage price is zero
Uncertain demand, hence profit is uncertain
A Newsvendor Problem
Assume that the process can be repeated indefinitely under identical
conditions justify one to maximize expected profit
• Closed form solution available.
A Newsvendor Problem
Assume that the process can be repeated indefinitely under identical
conditions justify one to maximize expected profit
• Closed form solution available.
We can solve a stochastic programming problem by generating data
using Monte Carlo simulation.
Generate Demand
A Newsvendor Problem