Probability distribution of a multiple variable sum

Hi everyone,
I’m coming here for really advance statistic/probability advice, which I'm a beginner in this field.
I would like to know the probability of a variable TAU_total such as TAU_total=TAU1+TAU2+….+TAU129.
The variables TAUi are independent of each other.
For each one of them, I have a sample of 20,000 values which you can see some examples of their distribution on the histograms in the attachment.
My question is the following: I would like to be able to determine the probability of TAU_total to be superior to a certain value Xmax.
Thank you for your help,
Regards,
Rémy
stat.png

댓글 수: 4

The samples you show are not obviously and consistently multi-modal: they show a preference for the center. These are conditions suitable for the use of the Central Limit Thereom: you will likely end up with a Normal distribution for statistical purposes.
John D'Errico
John D'Errico 2019년 5월 10일
편집: John D'Errico 2019년 5월 10일
Remember that one of the underlying assumptions of the CLT is the variables are i.i.d. Thus independent, and identically distributed. CLT will apply to some extent. Almost everything is asymptotically normal. But that does not mean the CLT will be of value here.
On the other hand, a simulation will give you a very simple way to predict the desired result, and it will be reasonably accurate, far more so than trying to assume the CLT does indeed apply. The only virtue of the CLT is that there are 129 subdistributions. That makes the CLT possibly viable. It depends on how far into the tails the goal is to get.
The Wikipedia article about CLT talks about extensions beyond iid.
I did a quick simulation of size equal to the original question, using randn with a range of standard deviations. std() of the totals was roughly 10% larger than sum() of the individual std, divided by sqrt(129) . The calculations for iid where thus not exactly applicable, but they were pretty close. hist() of the total looks like model illustrations of a drawing a pure normal distribution until I got up to 56 bins in the histogram, at which point you could finally start to see statistical differences compared to a perfect curve.
Admittedly, when I first saw this question, I read it as the sum of 12 terms, not 129. 129 terms will cause pretty much anything to look as if it is normally distributed. :)
N = 129;
alph = rand(1,N)*2 + .5;
bet = rand(1,N)*2 + .5;
betamean = alph./(alph + bet);
betavar = alph.*bet./((alph + bet).^2.*(alph+ bet+1));
CLTmean = sum(betamean);
CLTvar = sum(betavar);
CLTstd = sqrt(CLTvar);
nsim = 100000;
X = zeros(nsim,N);
for i = 1:N
X(:,i) = betarnd(alph(i),bet(i),[1,nsim]);
end
MCsum = sum(X,2);
MCmean = mean(MCsum);
MCvar = var(MCsum);
MCstd = std(MCsum);
[CLTmean, MCmean;CLTvar,MCvar;CLTstd,MCstd]
ans =
61.6267682855143 61.6366984653151
7.56366115010423 7.53757246937701
2.75021111009759 2.74546398071018
Comparing the histograms, we see:
histogram(MCsum,100,'norm','pdf')
hold on
fplot(@(x) normpdf(x,CLTmean,CLTstd),[min(MCsum),max(MCsum)],'r')
untitled.jpg
So I don't see any problem using either approach. With only 12 terms in the sum, I'd probably go with the Monte Carlo.

댓글을 달려면 로그인하십시오.

 채택된 답변

Torsten
Torsten 2019년 5월 10일
편집: Walter Roberson 2019년 5월 10일

1 개 추천

Take samples from your empirical data and use Monte-Carlo-simulation to determine the above probability.
This code should help to take the samples:

추가 답변 (1개)

Rémy Bretin
Rémy Bretin 2019년 5월 14일

0 개 추천

Thank you everyone for your support.
I decided to go for the MonteCarlo method which gave me a gaussien at the endas you expected.

질문:

2019년 5월 10일

답변:

2019년 5월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by