Calculating Variance of Eq. with random variables

Click For Summary

Homework Help Overview

The discussion revolves around calculating the variance of a heat transfer equation involving a random variable, specifically the variable h. The original poster has determined all other variables but is seeking to understand how to calculate the variance given their estimation of h's value and its perturbations.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the relationship between the variance of h and the variance of the function involving h. There are inquiries about how to create a probability density function (PDF) for h, particularly when its exact value is unknown. Some suggest using a triangular distribution based on known constraints.

Discussion Status

Participants are exploring various methods to calculate variance and create a PDF for the variable h. There is a recognition of the need to understand the distribution of h, with suggestions for uniform and triangular distributions based on the context provided. No consensus has been reached on a specific approach yet.

Contextual Notes

The original poster has estimated h based on a 10% perturbation of a typical value and is considering the implications of this estimation on the variance calculation. There is an acknowledgment of the constraints on h's value, which range from 2.7 to 3.3.

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
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K