---
title: "Non-parametric Bootstrap example"
canonical: "https://modelassist.epixanalytics.com/space/EA/26575409/Non-parametric%20Bootstrap%20example"
format: markdown
---
`

 

<span style="color: #000000">Imagine that we have a set of </span><span style="color: #000000">*n*</span><span style="color: #000000"> 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>

 

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

 

### 1. Estimate the distribution from the data

For the non-parametric Bootstrap, we simply use the frequency distribution of the *n* data values as our estimate. 

 

<span style="color: #000000">In relative frequency form, a continuous variable would simply be a list of values each with probability 1/n. The data set plot however shows three peaks with probability 2/n because the measuring was done to 1/10mm and therefore three values occurred twice. A finer level of measurement would make each value individual.</span>

### 2. Simulate the data collection

We now 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 Discrete Uniform distribution.

 

### 3. Calculate the sample statistic

We now run a large number of iterations, each one generating a new Bootstrap replicate and, for each iteration, we calculate the statistic of interest. In this case, we'll calculate the mean, standard deviation, and the difference between the 10th and 90th percentiles. [Non-Parametric Bootstrap Model](#Non_Parametric_Bootstrap_Model) goes through the calculations. The resultant distributions are our uncertainty about the population statistics:

 

<span style="color: #000000">A very important advantage that the Bootstrap has over other statistical methods is the ability to analyze the correlation between uncertainty distributions. For example, the scatter plots below of the generated statistical estimates are correlated. It is therefore very convenient for us that the Bootstrap automatically creates the necessary correlations structure.</span>

 

![image](media://042c8a56-3408-45b9-a160-aa4a93d486be)

 

 

![image](media://10db3feb-177f-4fe8-8767-33195882f5bb)

 

> Macro (anchor)



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

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

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

 

To use the frequency distribution mentioned in step 1, we can use the distribution [Discrete Uniform](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575206/) that is constructed with [Crystal Ball's Custom Distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575279/) as the best guess estimate of the population distribution:

 

![image](media://74991a0a-075f-429b-b8f1-7298f2f2a34f)

 

<span style="color: #000000">A cumulative plot of the empirical distribution is as follows</span>:

 

![image](media://9f382016-dccd-4e5d-926b-24e88a85af82)

  


<span style="color: #000000">In step 3, the resultant distributions are our uncertainty about the population statistics:</span>

<u>Graph of mean estimate:</u>

 

![image193.gif](media://bf47bf58-5582-4c65-ac9a-dd51f4e4e0e8)

   


<u>Graph of standard deviation estimate:</u>

  

![image194.gif](media://2a0267d4-a50a-4990-ac03-b6341de78ebd)

    


<u>Graph of percentile range estimate:</u>


![image195.gif](media://d7f5cd8a-51d2-485a-aa92-69a6a44c66c6)
</details>

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

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

 

 To use the frequency distribution mentioned in step 1<span style="color: #000000">, we can use the distribution </span>[RiskDuniform](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26581732)<span style="color: #000000">(Data) as the best guess estimate of the population distribution:</span>

 

![image413.gif](media://13b4683d-56a8-4538-9ec3-a1cdc583e92b)

   


<span style="color: #000000">A cumulative plot of the empirical distribution is as follows</span>:

 

![image414.gif](media://0aa3fe7d-7f12-4681-8605-c348d4d02365)

   


<span style="color: #000000">In step 3, the resultant distributions are our uncertainty about the population statistics:</span>

<u>Graph of mean estimate:</u>

 

![image415.gif](media://e87d1eda-b5b6-40f8-bb43-23124ac19aa3)

   


<u>Graph of standard deviation estimate:</u>

 

![image416.gif](media://99a17d94-e8a0-4432-ad59-3dfbdebdc33b)

   


<u>Graph of percentile range estimate:</u>



![image417.gif](media://68113bed-93f2-49d2-af09-79d82da198b8)
</details>

 

---