Bernoulli Trial - PDF and CDF
Loading the math board and drawing, please wait…
This example demonstrates a Bernoulli trial with success and failure. It shows the probability distribution using the Probability Distribution Function (PDF) and the Cumulative Distribution Function (CDF). GeoGebra commands If and objects p, q, A, B, O, C, D, a, b, pdftxt, cdftxt, pdfftxt, cdfFtxt, F are used to construct the graph. Suitable for high school or university probability and statistics courses.
GeoGebra Commands & Parameters
If(x < 0, 0, If[x < 1, q, 1]) → F
AI Drawing Prompt Reference
Draw a Bernoulli trial probability distribution showing success probability q and failure probability 1-q, including the Probability Density Function (PDF) and Cumulative Distribution Function (CDF). The PDF is 0 for x < 0, q for 0 ≤ x < 1, and 1 for x ≥ 1. The CDF is the integral of the PDF from negative infinity to x.
The prompt above was compiled from the original drawing commands and is for reference only.