Problem 237. Half?
If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?
Solution Stats
Problem Comments
-
2 Comments
Peter Wittenberg
on 19 Dec 2012
binopdf(x/2,x,0.5) should yield the smallest solution. However, binopdf gets hung up on the input type. Does anyone know why?
J.R.! Menzinger
on 18 Mar 2013
the function you try to use belongs to the Statistics Toolbox, on cody it is only allowed to use Matlab alone, without toolboxes.
Read the notes on the right side in this link:
http://www.mathworks.de/matlabcentral/about/cody/#contribute_problems
Solution Comments
Show commentsProblem Recent Solvers240
Suggested Problems
-
110170 Solvers
-
18517 Solvers
-
Number of 1s in a binary string
10364 Solvers
-
Matrix with different incremental runs
549 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
12943 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!