Quantifying Uncertainty in Ecosystem Studies

Index » Propogating error using monte carlo » What to do when random sampling produces impossible values
##

### What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

Can you give more context for the random sampling that you are implementing? Is it just for calculating a standard error? Is it for error propagation?

##

### Re: What to do when random sampling produces impossible values

##

### Re: What to do when random sampling produces impossible values

Index » Propogating error using monte carlo »
What to do when random sampling produces impossible values

**Ruth Yanai****New member**Offline

- Registered: 2/19/2015
- Posts: 9

When sampling from a normal distribution, we can get negative concentrations, negative masses for trees, and the like. Do these come out in the wash? Some people delete the negative values, which introduces bias.

**john lombardi****Unregistered**

Can you give more context for the random sampling that you are implementing? Is it just for calculating a standard error? Is it for error propagation?

**Ruth Yanai****New member**Offline

- Registered: 2/19/2015
- Posts: 9

For example, we want to know the uncertainty in stream export of solutes that have analytical uncertainty. If that uncertainty is described with a standard deviation, then we get rare negative numbers. The same thing happens with a log-log regression describing tree biomass as a function of diameter. The uncertainty in the regression can give us trees with negative mass.

**jlombardi****New member**Offline

- Registered: 3/23/2015
- Posts: 1

You could choose a different distribution for what you are sampling from. It's possible to sample from a lognormal distribution instead of a normal distribution. The lognormal has the structure of having a non-negative support. I think if you use a normal distribution it may simplify the derivations of certain expressions (like error propagation). There are resources out there for you to use that can explain how to do so and what CI's or standard errors look like for a lognormal distribution. A lot of these might be in the health field as the lognormal distribution is really popular in pharmaceutical/clinical trials research for some reason.

**TimIvancic****New member**Offline

- Registered: 3/04/2015
- Posts: 4

No idealized distribution will be a perfect fit. So just because you get some negatives doesn't mean that it isn't a good fit (otherwise the normal distribution would never be useful). I think you should be safe including them as long as you aren't trying to calculate any statistics at the tail (ie. if 95th percentile confidence intervals fall below zero there might be a problem). If you truncate the distribution by dropping those values you risk biasing other statistics.

*Last edited by TimIvancic (4/29/2015 12:24 pm)*

**MVZJUANCARLOS****New member**Offline

- Registered: 1/10/2018
- Posts: 1

Hi, my name is Juan Carlos, I am working on the calculation of uncertainty of methane inventory in dairy and beef cattle in Mexico. I am using the Propagate package of R software to carry out the uncertainty propagation, but I want to know How I can take into account the correlation among the inputs of the equations?.

**AlbertC****New member**Offline

- Registered: 5/06/2018
- Posts: 3

I had almost the same question but I think the directions given here are quite indicative, thanks

**wicis****New member**Offline

- Registered: 11/01/2018
- Posts: 5

**anatoliaa****New member**Offline

- Registered: 12/06/2018
- Posts: 2

I also find out about this, hoping to find the best answer

**lysamari****New member**Offline

- Registered: 12/27/2018
- Posts: 7

Your article is interesting and meaningful, after reading your article, I noticed and understood many things from this article, thank you for sharing.