Calculating Variance of Eq. with random variables

Click For Summary
SUMMARY

This discussion focuses on calculating the variance of heat transfer across a medium with known material properties, specifically when one variable, h, is uncertain. The user employs MATLAB to simulate perturbations of h within a range of 2.7 to 3.3 and seeks to determine if the output can be used to calculate variance. Key insights include the formula for variance in terms of h and the suggestion to use a triangular distribution for h if its parameters are known. The discussion emphasizes the importance of understanding the distribution of h to accurately compute variance.

PREREQUISITES
  • Understanding of variance and its properties in statistics
  • Familiarity with MATLAB for numerical simulations
  • Knowledge of probability distributions, particularly triangular and uniform distributions
  • Basic principles of heat transfer and related equations
NEXT STEPS
  • Learn how to derive the probability density function (PDF) for a triangular distribution
  • Study the application of Monte Carlo simulations in variance estimation
  • Explore statistical methods for fitting distributions to empirical data
  • Investigate the implications of using different distributions for uncertain variables in engineering problems
USEFUL FOR

Engineers, statisticians, and researchers involved in heat transfer analysis, uncertainty quantification, and those looking to enhance their understanding of variance calculations in practical applications.

shakystew
Messages
16
Reaction score
0

Homework Statement



I am attempting to calculate a heat transfer across a medium with known material properties. I have the equation and all but one variable I have an exact answer for. I require the variance of my answer.

Homework Equations



2viq9gw.png


I know ALL variables (ie numerical value) except the the last h. So far, using some engineering parameters for the problem, I have estimated the value by taking 10% perturbations of the normal value of h (that is, the value is usually ~3.0 for this problem, and I have used logic to say that with the additional medium, the value will only affect AT GREATEST +/- 10%).

I am unsure on how to actually calculate the value now. I have ran the equation in MATLAB using random number generator from 2.7-3.3 (10% perturbations) with 1E9 histories. Can I use this value to get the variance? (The output is not normal/gaussian).

Thanks in advance!
 
Last edited:
Physics news on Phys.org
Assuming everything except ##h## is constant, the variance is simply
$$\text{var}\Delta T = \left(\frac{q'}{2\pi R_{00}}\right)^2 \text{var}\left(\frac{1}{h}\right)$$
This follows from the following basic property of variance: if ##x## is a random variable and ##a## and ##b## are constants, then ##\text{var}(a(x+b)) = a^2 \text{var}(x)##. In other words, the constant offset ##b## does not affect the variance, and the multiplicative scale factor ##a## multiplies the variance by ##a^2##.

There is no general property relating ##\text{var}(1/h)## to ##\text{var}(h)##. How they relate depends on how ##h## is distributed. You can start with the definition of variance:

$$\text{var}\left(\frac{1}{h}\right) = E\left[\left(\frac{1}{h}\right)^2\right] - \left(E\left[\frac{1}{h}\right]\right)^2$$

where the expected values are calculated in the usual way using the integral definition. It looks like you are assuming that ##h## is uniformly distributed in the interval ##[2.7, 3.3]##, so you should be able to get a closed form answer without resorting to numerical approximation.
 
  • Like
Likes   Reactions: 1 person
Creating a PDF for such variable

Thank you jbunniii for the quick response!

If I didn't know the value of h, how could I make a PDF for such variable? Wouldn't that require an equation of h to find such parameters? Or, if I do use those contraints from |2.7 , 3.3|, how would I go about making a PFD?

My advisor said I should first make a triangular distribution of the variable. To use a triangular distribution, I must know the aand b (where the value is zero) as well as the peak value, c.
 
shakystew said:
Thank you jbunniii for the quick response!

If I didn't know the value of h, how could I make a PDF for such variable? Wouldn't that require an equation of h to find such parameters? Or, if I do use those contraints from |2.7 , 3.3|, how would I go about making a PFD?
There's no general answer to this - it depends on your specific problem. Where are the values of ##h## coming from? Do you have some measurement data? If so, you can try fitting a distribution to the data. [Sorry, I'm not an expert regarding how to do that, but I know there are statistical methods for doing this.]

Or maybe you just know that the value cannot be smaller than ##2.7## or larger than ##3.3##, so the distribution must be constrained to that interval. If you know nothing else, a uniform distribution in that interval may be reasonable. If you think the average ##3.0##is more likely than ##2.7## or ##3.3##, then a triangle or some other "peaked" distribution may be reasonable.

If you only know a mean and a variance for ##h## then a normal/gaussian assumption may be reasonable. It all depends on what you know about ##h##.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K