Calculations with distributions of variables only
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I would like to define the distribution of some variables for a design and then calculate the output distribution.
Let make a simple example:
Vout = Vref*(R1/R2 + 1). Now I know the distribution of R1, R2 and Vref, and I would like to know the distibution (mean and variance) of the result. Here I could make it rather quickly on myself, but most of the time I have much more complex designs, with more variables and calculation steps.
Is there a way to define distributions in variables and then work/calculate with them to get the output distribution ?
Thanks community !
댓글 수: 0
답변 (2개)
John D'Errico
2024년 7월 9일
Um, yes. And, no.
Firstly, very likely there will be no "named" distribution for even such a simple expression. And depending on the distributions of the components, there are good chances you cannot even compute simple things like the theoretical mean or the variance. If the expression were more complicated, then certainly there would be nothing you can do in any analytical form.
For example, if R1 and R2 were assumed to have normal distributions, then the ratio of R1/R2 has (as I recall) a Cauchy distribution, but a Cauchy lacks moments you can compute, so the mean and the variance are undefined. If you then multiply that by another variable Vref, then you won't even have any classical distribution.
Much of this lies in the realm of a branch of statistics sometimes called statistical tolerancing. That is, given a set of variables (X,Y,Z,...) compute the distribution of some function of those variables. And this is exactly your question.
There are many schemes you can use for this
- Monte Carlo simulation
- Truncated Taylor series approximations
- Taguchi syle methods
- Modified Taguchi methods (I wrote a couple of papers on them many years ago.)
All of these will surely fail to produce anything of value, IF the variable R2 has any appreciable probability of being near zero.
So at best, what you wil do is try to compute the population moments of the function F(X,Y,Z,...), so the mean, variance, skewness, kurtosis, etc. Then you can hope to find a distribution that fits those moments.
OR, if you are using a Monte carlo scheme, you will generate a large sample of values of F, and then use a tool to find a distribution that fits it. That would involve things like the distfit tool.
댓글 수: 1
Torsten
2024년 7월 9일
편집: Torsten
2024년 7월 9일
OR, if you are using a Monte carlo scheme, you will generate a large sample of values of F, and then use a tool to find a distribution that fits it. That would involve things like the distfit tool.
Usually, the empirical distribution (pdf or cdf) directly derived from the simulation is taken. For complex outputs, getting a suitable known distribution to fit the outcome to will be almost impossible.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!