A fair coin is flipped 15 times. How to find the probability distribution for the number of heads, and how to draw a histogram of the probabilities.?
3 ビュー (過去 30 日間)
古いコメントを表示
How can you solve this problem and how do you find the area of a particular bin. Thanks

0 件のコメント
回答 (1 件)
Walter Roberson
2023 年 5 月 3 日
Your bins are width 1, at least in the diagram. The area of the bin will be the width (here, 1) times the height (which is the count associated with the bin.)
If you are wanting probabilities then divide by the total number of samples.
How to find the probability distribution for the number of heads
The Binomial Theorem with p = 1/2 can give you the theoretic probabilities directly. But you are probably expected to use random sampling.
See also histfit
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!