geocdf - probability of success in any given trial is p ....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
geocdf Geometric cumulative distribution function Syntax Y = geocdf(X,P) Description Y = geocdf(X,P) computes the geometric cdf at each of the values in X using the corresponding probabilities in P . X and P can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array with the same dimensions as the other input. The parameters in P must lie on the interval [0 1]. The geometric cdf is where . The result, y , is the probability of observing up to x trials before a success, when the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: probability of success in any given trial is p . Examples Suppose you toss a fair coin repeatedly. If the coin lands face up (heads), that is a success. What is the probability of observing three or fewer tails before getting a heads? p = geocdf(3,0.5) p = 0.9375 See Also cdf , geopdf , geoinv , geostat , geornd , mle Geometric Distribution Provide feedback about this page ge (qrandstream) geoinv 1984-2009 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments...
View Full Document

Page1 / 2

geocdf - probability of success in any given trial is p ....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online