---
title: "Parametric Bootstrap example"
canonical: "https://modelassist.epixanalytics.com/space/EA/26575410/Parametric%20Bootstrap%20example"
format: markdown
---
We'll use the same set of data as the [non-parametric Bootstrap](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575409/) example, which also provides us with an opportunity to compare the results. Imagine that we have a set of *n* random measurements of the height of 100 blades of grass from a lawn and we wish to estimate the true mean height of all blades of grass from that lawn. We put these 100 values into a spreadsheet and label the array "Data'.

 

<span style="color: #000000">We need to go through three stages:</span>

 

### 1. Estimate the distribution from the data

For the parametric Bootstrap, we need to specify the distribution type we believe these values to have come from. Clearly, grass blades always have a positive length. One could argue that the length of a blade is the result f the product of a number of random variables (rainfall, genes, length of life, soil quality, number of immediate neighboring competitors for nutrition, etc.). A [Lognormal distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575244/) would be a good choice of distribution type in this situation, because of [Central Limit Theorem](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26574953/).

 

### 2. Simulate the data collection

<span style="color: #000000">We perform a Monte Carlo experiment to replicate the process via which we acquired the data set. Each of the 100 values is replaced by a Crystal Ball Lognormal(18.24, 12.37) distribution.</span>

 

### 3. Calculate the sample statistic

A large number of iterations are run, each one generating a new Bootstrap replicate. For each iteration, we calculate the statistic of interest. We'll calculate the mean, standard deviation, and the difference between the 10th and 90th percentiles again to compare with the non-parametric Bootstrap method. The [Parametric Bootstrap Model](#Parametric_Bootstrap_Model) goes through the calculations. The resultant distributions are our uncertainty about the population statistics:

 

Note that the parametric Bootstrap gives a higher estimate of the mean than the non-parametric Bootstrap. This is because the Lognormal distribution was fitted by [MLE](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575336/), not by [matching moments](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575327/), so the Lognormal mean (=18.24) does not have to be the same as the data mean (17.833). The non-parametric Bootstrap, which uses the data directly, will have a mean estimate equal to the data mean.

 

<span style="color: #000000">The parametric Bootstrap estimate of standard deviation is both greater and significantly more uncertain than the non-parametric Bootstrap estimate. It is greater because the fitted Lognormal distribution had a standard deviation (= 12.37) greater than the data (= 9.86). It is wider because the Lognormal distribution was not actually that good a fit to the data (so our reasoning for using the Lognormal may well be wrong), so the data and statistical model are disagreeing, which increases the level of uncertainty.</span>

 

<span style="color: #000000">The degree of difference between the non-parametric and parametric statistical estimates in this example, combined with the lack of fit of the assumed Lognormal distribution, should make us place more confidence on the non-parametric estimates.</span>

 

> Macro (anchor)



The links to the Parametric Bootstrap software specific models are provided here:

<details>
<summary>Crystal Ball</summary>

> Macro (inline-media-image)

 [Parametric_Bootstrap_Model](/wiki/download/attachments/26579343/Parametric_Bootstrap_Model-CB.xlsx?version=1&modificationDate=1506113498000&cacheVersion=1&api=v2)

 

Using Crystal Ball's distribution fitting feature, we get the following fit:

![image](media://bc9e776e-edfa-42f1-bf3d-53c194bc177d)

 

**Graph of mean estimate:**

![image198.gif](media://ad19296e-7c58-4007-b908-6b454d194239)

  

**Graph of standard deviation estimate:**  


![image199.gif](media://f6dc5826-9eac-4742-a7ca-454ed8ad1ebd)

  

**Graph of standard deviation: percentile range correlation:**


![image423.gif](media://18299094-be8e-42a4-843b-f297a43585e9)


 

The scatter plot above of the generated statistical estimates are correlated for both non-parametric and parametric Bootstrap estimates, but with very different patterns as one would expect from the difference in their estimates.
</details>

<details>
<summary>@Risk</summary>

> Macro (inline-media-image)

 [Parametric_Bootstrap_Model](/wiki/download/attachments/26581760/Parametric_Bootstrap_Model-AtRISK.xlsx?version=1&modificationDate=1506097518000&cacheVersion=1&api=v2)

 

Using @Risk's distribution fitting feature, we get the following fit: 

![image420.gif](media://42266a87-6678-4b11-af42-650085e9884c)

  

**Graph of mean estimate:**

![image421.gif](media://2a28c1b4-c526-4b9f-b4ba-c4f4366570d1)

  

**Graph of standard deviation estimate:**

![image422.gif](media://8ce984d4-f8f3-491f-856a-9e3974b43a36)

  

**Graph of standard deviation: percentile range correlation:**


![image423.gif](media://18299094-be8e-42a4-843b-f297a43585e9)


 

The scatter plot above of the generated statistical estimates are correlated for both non-parametric and parametric Bootstrap estimates, but with very different patterns as one would expect from the difference in their estimates.
</details>

  


 

 

<span style="color: #999999"> </span>

---