You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Probabilities Class > Probabilities Methods > GeometricPDF Method > Probabilities.GeometricPDF Method (int, double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Probabilities.GeometricPDF Method (int, double)

Geometric probability density function (PDF).

Syntax
C#
Visual Basic
public static double GeometricPDF(int x, double p);
Parameters 
Description 
int x 
Function domain, positive integer. 
double p 
Defines success probability. p must lie on the [0,1] closed interval. 

the geometric probability density function (PDF) for value x by using parameter p (probability).

Calculates the geometric distribution probability density function, defined by the following equation: 

 

where I is the discrete interval on which the geometric PDF is not zero. To recognize a situation that involves a geometrical random variable, following assumptions must be met: 

 

  • The experiment consist of series of trials. The outcome of each trial can be classed either as success or a failure. A trial with this property is called a Bernoulli trial.
  • The trials are identical and independent in the sense that the outcome of one trial has no effect on the outcome of any other. The probability of success, p, remains the same from trial to trial.
  • The random variable x denotes the number of trials needed to obtain the first success.
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!