(12C) Binomial Distribution - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (12C) Binomial Distribution (/thread-11264.html) |
(12C) Binomial Distribution - Gamo - 08-25-2018 10:29 AM This program calculate Binomial Distribution using three known variables. Binomial Distribution formula: f(x) = (nCx)(p^x)(1-p)^n-x where n and x are integers, nCx = n! / x!(n-x)! // n choose x Combination 0 ≤ x ≤ n ≤ 69 and 0 < p < 1 n = number of times experiment run x = number we want p = probability of one specific run Procedure: n [ENTER] x [ENTER] p [R/S] Example: FIX 9 Sam says "70% choose chicken, so 7 of the next 10 customers should choose chicken" What are the chances Sam is right? n = 10 // Total of 10 customers x = 7 // 7 out of 10 P = 0.7 // 70% choose chicken 10 [ENTER] 7 [ENTER] .7 [R/S] display 0.266827932 Answer: about 27% chance Program: Binomial Distribution Code:
Gamo |