![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251642/image.png)
Calculate n and p values for binomial distribution in Matlab
조회 수: 5 (최근 30일)
이전 댓글 표시
Question is that "Random variable for μ = 10, σ2 = 10.Calculate n and p values for a binomial distribution to be approximated as normal distribution for the above normal distribution mean and variance."
When I do research on the internet, they tell me to use the binofit function to calculate the n and p values. But in each sample made with binofit, n and p values were made knowing. Since the question asked me to calculate the n and p values, I could not find a solution. Can you help me?
댓글 수: 0
답변 (1개)
Vladimir Sovkov
2019년 11월 30일
The question has nothing to do with Matlab.
Just recall, that in the binomial distribution μ=n*p and
=n*p*(1-p).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251642/image.png)
댓글 수: 1
Vladimir Sovkov
2019년 11월 30일
If μ = 10, σ2 = 10, than the solution of the equations {n*p==10, n*p*(1-p)==10} is
and
. In fact, this limit is the Poisson distribution with μ = 10. No binomial distribution with finite n and p can possess such properties.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251644/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251645/image.png)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!