20
Simulation le: Generate a distribution for the random v What is the approximate probability that you will draw X ≤ 1.5?

Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Embed Size (px)

Citation preview

Page 1: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

• Example: Generate a distribution for the random variate:

What is the approximate probability that you will draw X ≤ 1.5?

Page 2: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 3: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 4: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 5: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 6: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 7: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

HHHHMMMM…

Page 8: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

SimulationWhat if we crank up the

sample sizes?

Page 9: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 10: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 11: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

Page 12: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

SimulationHere is how we did all of that:

Page 13: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

So what was the mean of that original Weibull distribution anyway?

Looks like that’s where the mean on the histograms is going

Page 14: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

SimulationHow about the variance and sd?

= 0.376sWeibull= 0.613

= 1.5a = 1b

Page 15: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

So what did we observe?

Page 16: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Looks like the distribution of the sample means is a little skewed, but they’re approaching normal

So what did we observe?

Page 17: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

So what did we observe?

• Generalizing to a IID sample, it can be shown that:

Page 18: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

The Central Limit Theorem

For a sum of IID random variables

For an average of IID random variables

Page 19: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Example

Random errors in the response of an instrument’s detector occur according to some unknown distribution, but have a mean = 2.45 units and variance = 0.63 units2.

Approximately, what is the probability that the cumulative error is greater that 123 units after 50 measurements?

Plot the approximate probability density for the cumulative error after 73 measurements.

Page 20: Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?

Simulation

A a certain stock price moves with the approximate behavior from month to month:• Pr(no change) = 0.5• Pr(up 5%) = 0.25• Pr(down 5%) = 0.25

Plot a realization of the stock’s movement assuming an initial stock price of $10.

Approximately how much money to you expect to make/loose after one year of owning the stock? Three years? Ten years?