Question: Write a function that calculates the probability of oblaining k heads in n flips of a biased coin. where the probabify of a head on
Write a function that calculates the probability of oblaining k heads in n flips of a biased coin. where the probabify of a head on any g ven nip is p. The equation is. P(headsinnf(ps)=!(n)!np(1p)k1 Where I is the facional operation, for which you can use the MATLAB function factorial The function specification is name: heads probabdify inputs k1,n, p output. 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
