Let k be the number of ONstate devices in a group of n devic
Let k be the number of ON-state devices in a group of n devices on a circuit board. Assume all n devices are independent (functionally). Write a program (in MatLab or in C/C++ to compute P(k) = (n k) (p^k) (l - p)^n - k, if P denotes the probability of a device being ON state.
Solution
defects=0:200; y = binopdf(defects,200,.02); [x,i]=max(y); defects(i)