AA228V/CS238V
Validation of Safety-Critical Systems
Lecture 10: Failure Probability Estimation
Sydney Katz (smkatz@stanford.edu)
What is the probability of failure?
Failure Probability
Failure Distribution
The probability of failure is the normalizing constant of the failure distribution!
The probability of failure is the normalizing constant of the failure distribution!
Earlier, we noted that this normalizing constant is generally intractable to compute exactly.
In this lecture, we will discuss ways to estimate it.
Plan for Today
Part 1
Part 2
Part 3
1
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
This is what I would start with for Project 2!
Direct Estimation
1
Perform a rollout of the system
2
Label outcome as if the trajectory is a failure and otherwise
Direct Estimation
1
Perform a rollout of the system
2
Label outcome as if the trajectory is a failure and otherwise
This process is equivalent to producing samples from a Bernoulli distribution defined by parameter .
We can use the parameter estimation techniques from chapter 2 to estimate it!
(maximum likelihood estimation or Bayesian estimation)
Direct Estimation
maximum likelihood estimator
number of failure trajectories
total number of trajectories
Quick Aside: How do we assess how good an estimator is?
Quick Aside: How do we assess how good an estimator is?
Bias
Consistency
Variance
Quick Aside: How do we assess how good an estimator is?
Bias
Consistency
Variance
An estimator is unbiased if it
predicts the true value in
expectation:
An estimator is consistent if it
converges to the true value in
the limit of infinite samples:
The variance of an estimator
quantifies the spread of the
estimates around the true value.
Direct Estimation
maximum likelihood estimator
number of failure trajectories
total number of trajectories
Direct Estimation
maximum likelihood estimator
Unbiased
What happens to the variance as ?
Consistent
Direct Estimation
maximum likelihood estimator
Unbiased
Consistent
1
As the number of samples increases, the variance in the estimate decreases.
Direct Estimation
maximum likelihood estimator
Unbiased
Consistent
1
As the number of samples increases, the variance in the estimate decreases.
2
As the probability of failure decreases, the variance in the estimate increases.
Again, bad news for systems with rare failure events.
We will discuss importance sampling techniques
throughout the rest of this lecture that aim to
address this issue!
Direct Estimation
But first: one more issue with maximum likelihood estimation.
Imagine that we want to estimate the probability of failure for an aircraft collision avoidance system
from an aviation safety database that contains flight records from the month of December.
What would the maximum likelihood estimate of the probability of failure be if there were no
recorded midair collisions in December?
Zero!
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Direct Estimation
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Remember these fun times?
Direct Estimation
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Remember these fun times?
: probability of both frisbees landing in the same direction
: number of times same
: total number of flips
Direct Estimation
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Remember these fun times?
: probability of both frisbees landing in the same direction
: number of times same
: total number of flips
Direct Estimation
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Remember these fun times?
: probability of both frisbees landing in the same direction
:
: number of times same
: total number of flips
Direct Estimation
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Remember these fun times?
: probability of both frisbees landing in the same direction
:
: number of times same
: number of failure trajectories
: total number of flips
Direct Estimation
We could use Bayesian estimation in this case to produce a distribution over the probability of failure.
Remember these fun times?
: probability of both frisbees landing in the same direction
:
: number of times same
: number of failure trajectories
: total number of flips
: total number of trajectories
Direct Estimation
Perception noise
0.25
Number of rollouts
50
Zoom
1.00
Zoom
15
Direct Estimation
A cool thing about Bayesian estimation is that is allows us to quantify the confidence we have in our estimate.
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
This is what I would start with for Project 2!
Direct Estimation
Importance Sampling
1
Draw samples from the nominal trajectory distribution.
2
Estimate the probability of failure by dividing the number of failure samples by the total number of samples.
What might be a problem with this method?
Hint: what theme seems to be coming up over and over again in this course?
It will be inefficient for systems with rare failure events!
1
Draw samples from a proposal distribution that is more likely to produce failure trajectories.
2
Estimate the probability of failure by reweighing the samples.
Importance Sampling
1
Draw samples from a proposal distribution that is more likely to produce failure trajectories.
2
Estimate the probability of failure by reweighing the samples.
Importance Sampling
1
Draw samples from a proposal distribution that is more likely to produce failure trajectories.
2
Estimate the probability of failure by reweighing the samples.
This estimator is both unbiased and consistent.
Direct Estimation
Importance Sampling
1
Draw samples from
2
Estimate the probability of failure:
1
Draw samples from
2
Estimate the probability of failure:
importance
weight
Samples that are more likely under the nominal trajectory distribution will have a higher importance weight.
Importance Sampling
1
Draw samples from
2
Estimate the probability of failure:
importance
weight
Importance Sampling
1
Draw samples from
2
Estimate the probability of failure:
importance
weight
Importance Sampling
1
Draw samples from
2
Estimate the probability of failure:
importance
weight
Importance Sampling
Samples
500
Threshold
-2.00
Proposal
0.0
Proposal
1.0
Error
0.050
We want the proposal distribution
to sample likely failures more often
than unlikely failures or successes.
Is there an optimal proposal distribution?
Importance Sampling
Is there an optimal proposal distribution?
We will define the optimal proposal
distribution as the one that minimizes the
variance
of the estimator:
Importance Sampling
Is there an optimal proposal distribution?
We will define the optimal proposal
distribution as the one that minimizes the
variance
of the estimator:
Does this distribution look familiar?
It’s the failure distribution!
🤔…but it is written in terms of the
thing we want to estimate ().
Importance Sampling
Does this distribution look familiar?
It’s the failure distribution!
🤔…but it is written in terms of the
thing we want to estimate ().
Importance Sampling
Does this distribution look familiar?
It’s the failure distribution!
🤔…but it is written in terms of the
thing we want to estimate ().
Best we can do is select a proposal that is as close
as possible
to the failure distribution.
Note: we must be able to sample from
and compute the (normalized) density of
the proposal distribution we choose.
Various importance sampling algorithms have different ways of selecting this proposal.
One option: hand design based on domain knowledge.
Perhapsyourfuzzingdistribution?Hint,hint:project2.
Various importance sampling algorithms have different ways of selecting this proposal.
Another option: fit a proposal distribution to samples from the failure distribution.
Various importance sampling algorithms have different ways of selecting this proposal.
Another option: fit a proposal distribution to samples from the failure distribution.
Failure if · MCMC samples from the failure distribution → fit a Gaussian proposal
Various importance sampling algorithms have different ways of selecting this proposal.
Another option: fit a proposal distribution to samples from the failure distribution.
Challenges
1
Producing samples from the failure distribution is a nontrivial task
(as we saw in the failure distribution lecture).
2
It may be difficult to produce a good fit to samples from the failure
distribution for high-dimensional systems with multiple failure modes.
Various importance sampling algorithms have different ways of selecting this proposal.
Another option: fit a proposal distribution to samples from the failure distribution.
Challenges
1
Producing samples from the failure distribution is a nontrivial task
(as we saw in the failure distribution lecture).
What if we could still fit a good proposal using samples from
a different distribution that is easier to sample from?
2
It may be difficult to produce a good fit to samples from the failure
distribution for high-dimensional systems with multiple failure modes.
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Cross Entropy Method
What if we could still fit a good proposal using samples from
a different distribution that is easier to sample from?
1
Draw samples from an initial proposal distribution that is easy sample from.
2
Use the samples to fit a new proposal distribution from a model class that we also know how
to sample from by selecting the parameters that minimize the cross entropy between the
proposal distribution and the failure distribution.
Cross Entropy Method
What if we could still fit a good proposal using samples from
a different distribution that is easier to sample from?
1
Draw samples from an initial proposal distribution that is easy sample from.
What proposal distribution should we try?
How about the nominal trajectory distribution?
2
Use the samples to fit a new proposal distribution from a model class that we also know how
to sample from by selecting the parameters that minimize the cross entropy between the
proposal distribution and the failure distribution.
For many common model classes (e.g. Gaussian), minimizing the cross entropy is equivalent
to computing the weighted maximum likelihood estimate for the parameters with weights
Cross Entropy Method
If we sample from the nominal distribution and failures are rare,
we may not get any failures and all the weights will be zero!
Samples
500
Threshold
-2.00
Cross Entropy Method
If we sample from the nominal distribution and failures are rare,
we may not get any failures and all the weights will be zero!
Samples
500
Threshold
-2.00
Start with the nominal distribution
and iteratively adapt it to move closer
to the failure distribution.
The adaptive part of adaptive importance sampling!
Cross Entropy Method
Before we start:
1
Pick an initial proposal to adapt
(e.g. nominal trajectory distribution)
2
Pick a notion of closeness to failure
(e.g. robustness)
We will require that for
failure trajectories such that
Cross Entropy Method
Before we start:
1
Pick an initial proposal to adapt
(e.g. nominal trajectory distribution)
2
Pick a notion of closeness to failure
(e.g. robustness)
We will require that for
failure trajectories such that
Ideally, we minimize the cross entropy between the
new proposal distribution and .
Cross Entropy Method
Before we start:
1
Pick an initial proposal to adapt
(e.g. nominal trajectory distribution)
2
Pick a notion of closeness to failure
(e.g. robustness)
We will require that for
failure trajectories such that
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Perform importance sampling
with the final proposal.
Cross Entropy Method
At each iteration
1
Draw samples from the current proposal.
2
Compute for each sample and pick
the top samples.
3
Select the threshold to be the highest
of the elite samples.
4
Compute the next proposal by minimizing
the cross entropy with .
Ideally, we minimize the cross entropy between the
new proposal distribution and .
…but the weights might all be zero!
REPEAT!
Perform importance sampling
with the final proposal.
Cross Entropy Method
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
In regular importance sampling, we have to pick a proposal distribution!
Multiple Importance Sampling
Why pick just one proposal distribution when you can have many?
*perfect for indecisive people like me!
Multiple Importance Sampling
1
Draw samples from the current proposals.
2
Use the samples to estimate .
where
Standard Multiple Importance Sampling (s-MIS)
There is another option…
Multiple Importance Sampling
There is another option…
Standard Multiple Importance Sampling (s-MIS)
Deterministic Mixture Multiple Importance Sampling (DM-MIS)
Multiple Importance Sampling
There is another option…
Standard Multiple Importance Sampling (s-MIS)
Deterministic Mixture Multiple Importance Sampling (DM-MIS)
Multiple Importance Sampling
1
Draw samples from the current proposals.
2
Use the samples to estimate .
where
Standard Multiple
Importance Sampling (s-MIS)
or
Deterministic Mixture Multiple
Importance Sampling (DM-MIS)
*DM-MIS has been shown to have lower variance.
Multiple Importance Sampling
Multiple Importance Sampling
Multiple Importance Sampling
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
1
Select an initial population of proposals spread
out over the space of possible trajectories.
Note: it is important for the
initial population of proposals
to cover the space of possibilities
as best as possible.
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
1
Select an initial population of proposals spread
out over the space of possible trajectories.
2
Draw a sample from each proposal.
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
1
Select an initial population of proposals spread
out over the space of possible trajectories.
2
Draw a sample from each proposal.
3
Compute the importance weight for each sample.
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
1
Select an initial population of proposals spread
out over the space of possible trajectories.
2
Draw a sample from each proposal.
3
Compute the importance weight for each sample.
4
Resample based on the importance weights.
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
1
Select an initial population of proposals spread
out over the space of possible trajectories.
2
Draw a sample from each proposal.
3
Compute the importance weight for each sample.
4
Resample based on the importance weights.
5
Create new proposal distributions
centered at the samples.
Population Monte Carlo
Let’s adapt a whole population of proposal distributions!
1
Select an initial population of proposals spread
out over the space of possible trajectories.
2
Draw a sample from each proposal.
3
Compute the importance weight for each sample.
4
Resample based on the importance weights.
5
Create new proposal distributions
centered at the samples.
REPEAT!
Perform multiple importance
sampling with the final
proposals.
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Sequential Monte Carlo
We want to move samples from the nominal distribution to the failure distribution.
Sequential Monte Carlo
We want to move samples from the nominal distribution to the failure distribution.
It turns out we can estimate the probability of failure based on the path that the samples take.
Sequential Monte Carlo
We want to move samples from the nominal distribution to the failure distribution.
We typically move the samples through a series of intermediate distributions.
How can we get these intermediate distributions? SMOOTHING!
Sequential Monte Carlo
Smoothing
1.00
Sequential Monte Carlo
We want to move samples from the nominal distribution to the failure distribution.
We typically move the samples through a series of intermediate distributions.
How can we get these intermediate distributions? SMOOTHING!
We can also use the thresholding technique similar to
what we did for the cross entropy method.
Sequential Monte Carlo
We want to move samples from the nominal distribution to the failure distribution.
We typically move the samples through a series of intermediate distributions.
How can we get these intermediate distributions? SMOOTHING!
We can also use the thresholding technique similar to
what we did for the cross entropy method.
How do we move samples from one distribution to the next? MCMC!
Sequential Monte Carlo
Sequential Monte Carlo
Sequential Monte Carlo
Sequential Monte Carlo
Sequential Monte Carlo
Sequential Monte Carlo
Sequential Monte Carlo
Sequential Monte Carlo
🤔Okay but how do we estimate the probability of failure from all this?
Sequential Monte Carlo
🤔Okay but how do we estimate the probability of failure from all this?
Keep track of a weight for each sample:
Average the weights at the final iteration:
Sequential Monte Carlo
A few other notes on SMC:
It is common to also do a resampling step similar to population Monte Carlo for each transition.
Example 7.6
This process may allow us to perform fewer MCMC steps.
SMC is nonparametric, we do everything with samples.
This feature allows it to perform well for complex, multimodal failure distributions.
Sequential Monte Carlo
SMC is nonparametric, we do everything with samples.
This feature allows it to perform well for complex, multimodal failure distributions.
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Ratio of Normalizing Constants
It turns out that importance sampling is a special case of a more general problem of determining
the ratio of the normalizing constants of two distributions.
Ratio of Normalizing Constants
It turns out that importance sampling is a special case of a more general problem of determining
the ratio of the normalizing constants of two distributions.
Imagine someone just came up to you and was like…
I will give you a million dollars 💰
if you can get me an accurate
estimate of
using only
samples from
.
I will give you a million dollars 💰
if you can get me an accurate
estimate of
using only
samples from
.
I will give you a million dollars 💰
if you can get me an accurate
estimate of
using only
samples from
.
I will give you a million dollars 💰
if you can get me an accurate
estimate of
using only
samples from
.
Sadly 😕, this scenario is probably
never going to happen to you.
So let’s get back to failure probability estimation…
Can we derive the importance sampling estimator from this?
Quick aside: don’t do the opposite (i.e. estimate )
What might be a problem with estimating this ratio using samples from ?
It doesn’t work so great if and have very little overlap.
The solution?
What might be a problem with estimating this ratio using samples from ?
It doesn’t work so great if and have very little overlap.
The solution?
The solution?
Use an umbrella!☔
The solution?
Use an umbrella!☔
Using samples from
The solution?
Use an umbrella!☔
Using samples from .
🤔What’s the optimal umbrella density?
The solution?
Use an umbrella!☔
Using samples from .
🤔What’s the optimal umbrella density?
🤔…but it is written in terms of the
thing we want to estimate ().
The solution?
Use an umbrella!☔
Using samples from .
🤔What’s the optimal umbrella density?
🤔…but it is written in terms of the
thing we want to estimate ().
In practice, we just try to get as close as possible.
In practice, we just try to get as close as possible.
A good umbrella distribution should cover regions of high likelihood in both distributions.
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Using samples from .
But what are we even doing with all of this ☔?
Turns out we can use it to estimate the probability of failure
using samples from an unnormalized proposal!
unnormalized failure
distribution
nominal trajectory
distribution
unnormalized proposal
density
Turns out we can use it to estimate the probability of failure
using samples from an unnormalized proposal!
unnormalized failure
distribution
nominal trajectory
distribution
unnormalized proposal
density
This process results in the self-normalized importance
sampling (self-IS) estimator:
This process results in the self-normalized importance
sampling (self-IS) estimator:
It is kinda like regular importance sampling — we just normalize the weights by their sum.
This process results in the self-normalized importance
sampling (self-IS) estimator:
It is kinda like regular importance sampling — we just normalize the weights by their sum.
HOWEVER, the optimal proposal is very different…
This process results in the self-normalized importance
sampling (self-IS) estimator:
It is kinda like regular importance sampling — we just normalize the weights by their sum.
HOWEVER, the optimal proposal is very different…
This process results in the self-normalized importance
sampling (self-IS) estimator:
It is kinda like regular importance sampling — we just normalize the weights by their sum.
HOWEVER, the optimal proposal is very different…
It should result in half the samples coming from the failure distribution and half from the success distribution.
This process results in the self-normalized importance
sampling (self-IS) estimator:
It is kinda like regular importance sampling — we just normalize the weights by their sum.
HOWEVER, the optimal proposal is very different…
It should result in half the samples coming from the failure distribution and half from the success distribution.
It can be tough to sample from this proposal though…
This process results in the self-normalized importance
sampling (self-IS) estimator:
It is kinda like regular importance sampling — we just normalize the weights by their sum.
HOWEVER, the optimal proposal is very different…
It should result in half the samples coming from the failure distribution and half from the success distribution.
It can be tough to sample from this proposal though…
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Umbrella Sampling
Bridge Sampling
Using samples from
Bridge Sampling
Bridge Sampling
Using samples from and .
🤔What’s the optimal bridge density?
Bridge Sampling
Using samples from and .
🤔What’s the optimal bridge density?
🤔…but it is written in terms of the
thing we want to estimate ().
Bridge Sampling
Using samples from and .
🤔What’s the optimal bridge density?
🤔…but it is written in terms of the
thing we want to estimate ().
In practice, we just try to get as close as possible.
In practice, we just try to get as close as possible.
A good bridge distribution should bridge the gap between both distributions.
See algorithm 7.8 for a
technique to estimate
this density.
Let’s get back to failure probability estimation again… what should we do now?
Let’s get back to failure probability estimation again… what should we do now?
unnormalized failure
distribution
nominal trajectory
distribution
unnormalized proposal
density
Turns out this is a horrible plan!
It ends up being no better than direct estimation.
Example 7.9
Let’s do something even crazier!
Let’s do something even crazier!
Using samples from and .
Let’s do something even crazier!
Using samples from and .
Get a bunch of intermediate distributions and apply bridge sampling to them!
Bridge sampling through a sequence of intermediate distributions
Iteration
0
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting
Multilevel Splitting
1
Pick a notion of distance to failure (e.g. robustness)
We will require that for
failure trajectories such that
2
Pick a series of thresholds for the distance to failure
ranging from to .
Multilevel Splitting
1
Pick a notion of distance to failure (e.g. robustness)
2
Pick a series of thresholds for the distance to failure
ranging from to .
Multilevel Splitting
1
Pick a notion of distance to failure (e.g. robustness)
2
Pick a series of thresholds for the distance to failure
ranging from to .
If these probabilities are large enough, we
can estimate them using direct sampling!
We can ensure that these probabilities are large enough by selecting them adaptively.
Multilevel Splitting
Multilevel Splitting
Multilevel Splitting
Multilevel Splitting
Multilevel Splitting
Multilevel Splitting
Multilevel Splitting
Plan for Today
Part 1
Part 2
Part 3
1
Direct Estimation
2
Importance Sampling
3
Cross Entropy Method (Adaptive Importance Sampling)
4
Multiple Importance Sampling
5
Population Monte Carlo
6
Sequential Monte Carlo
7
Ratio of Normalizing Constants
8
Self-Normalized Importance Sampling
9
Bridge Sampling
10
Multilevel Splitting