Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Probability density function

From Wikipedia, the free encyclopedia
Description of continuous random distribution

This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Probability density function" – news ·newspapers ·books ·scholar ·JSTOR
(June 2022) (Learn how and when to remove this message)
Box plot and probability density function of anormal distributionN(0, σ2).
Geometric visualisation of themode,median andmean of an arbitrary unimodal probability density function.[1]

Inprobability theory, aprobability density function (PDF),density function, ordensity of anabsolutely continuous random variable, is afunction whose value at any given sample (or point) in thesample space (the set of possible values taken by the random variable) can be interpreted as providing arelative likelihood that the value of the random variable would be equal to that sample.[2][3] Probability density is the probability per unit length, in other words, while theabsolute likelihood for a continuous random variable to take on any particular value is 0 (since there is an infinite set of possible values to begin with), the value of the PDF at two different samples can be used to infer, in any particular draw of the random variable, how much more likely it is that the random variable would be close to one sample compared to the other sample.

More precisely, the PDF is used to specify the probability of therandom variable fallingwithin a particular range of values, as opposed to taking on any one value. This probability is given by theintegral of this variable's PDF over that range—that is, it is given by the area under the density function but above the horizontal axis and between the lowest and greatest values of the range. The probability density function is nonnegative everywhere, and the area under the entire curve is equal to 1.

The termsprobability distribution function andprobability function have also sometimes been used to denote the probability density function. However, this use is not standard among probabilists and statisticians. In other sources, "probability distribution function" may be used when theprobability distribution is defined as a function over general sets of values or it may refer to thecumulative distribution function, or it may be aprobability mass function (PMF) rather than the density. "Density function" itself is also used for the probability mass function, leading to further confusion.[4] In general though, the PMF is used in the context ofdiscrete random variables (random variables that take values on a countable set), while the PDF is used in the context of continuous random variables.

Example

[edit]
Examples of four continuous probability density functions.

Suppose bacteria of a certain species typically live 20 to 30 hours. The probability that a bacterium livesexactly 5 hours is equal to zero. A lot of bacteria live for approximately 5 hours, but there is no chance that any given bacterium dies at exactly 5.00... hours. However, the probability that the bacterium dies between 5 hours and 5.01 hours is quantifiable. Suppose the answer is 0.02 (i.e., 2%). Then, the probability that the bacterium dies between 5 hours and 5.001 hours should be about 0.002, since this time interval is one-tenth as long as the previous. The probability that the bacterium dies between 5 hours and 5.0001 hours should be about 0.0002, and so on.

In this example, the ratio (probability of living during an interval) / (duration of the interval) is approximately constant, and equal to 2 per hour (or 2 hour−1). For example, there is 0.02 probability of dying in the 0.01-hour interval between 5 and 5.01 hours, and (0.02 probability / 0.01 hours) = 2 hour−1. This quantity 2 hour−1 is called the probability density for dying at around 5 hours. Therefore, the probability that the bacterium dies at 5 hours can be written as (2 hour−1)dt. This is the probability that the bacterium dies within an infinitesimal window of time around 5 hours, wheredt is the duration of this window. For example, the probability that it lives longer than 5 hours, but shorter than (5 hours + 1 nanosecond), is (2 hour−1)×(1 nanosecond) ≈6×10−13 (using theunit conversion3.6×1012 nanoseconds = 1 hour).

There is a probability density functionf withf(5 hours) = 2 hour−1. Theintegral off over any window of time (not only infinitesimal windows but also large windows) is the probability that the bacterium dies in that window.

Absolutely continuous univariate distributions

[edit]

A probability density function is most commonly associated withabsolutely continuousunivariate distributions. Arandom variableX{\displaystyle X} has densityfX{\displaystyle f_{X}}, wherefX{\displaystyle f_{X}} is a non-negativeLebesgue-integrable function, if:Pr[aXb]=abfX(x)dx.{\displaystyle \Pr[a\leq X\leq b]=\int _{a}^{b}f_{X}(x)\,dx.}

Hence, ifFX{\displaystyle F_{X}} is thecumulative distribution function ofX{\displaystyle X}, then:FX(x)=xfX(u)du,{\displaystyle F_{X}(x)=\int _{-\infty }^{x}f_{X}(u)\,du,}and (iffX{\displaystyle f_{X}} is continuous atx{\displaystyle x})fX(x)=ddxFX(x).{\displaystyle f_{X}(x)={\frac {d}{dx}}F_{X}(x).}

Intuitively, one can think offX(x)dx{\displaystyle f_{X}(x)\,dx} as being the probability ofX{\displaystyle X} falling within the infinitesimalinterval[x,x+dx]{\displaystyle [x,x+dx]}.

Formal definition

[edit]

(This definition may be extended to any probability distribution using themeasure-theoreticdefinition of probability.)

Arandom variableX{\displaystyle X} with values in ameasurable space(X,A){\displaystyle ({\mathcal {X}},{\mathcal {A}})} (usuallyRn{\displaystyle \mathbb {R} ^{n}} with theBorel sets as measurable subsets) has asprobability distribution thepushforward measureXP on(X,A){\displaystyle ({\mathcal {X}},{\mathcal {A}})}: thedensity ofX{\displaystyle X} with respect to a reference measureμ{\displaystyle \mu } on(X,A){\displaystyle ({\mathcal {X}},{\mathcal {A}})} is theRadon–Nikodym derivative:f=dXPdμ.{\displaystyle f={\frac {dX_{*}P}{d\mu }}.}

That is,f is any measurable function with the property that:Pr[XA]=X1AdP=Afdμ{\displaystyle \Pr[X\in A]=\int _{X^{-1}A}\,dP=\int _{A}f\,d\mu }for any measurable setAA.{\displaystyle A\in {\mathcal {A}}.}

Discussion

[edit]

In thecontinuous univariate case above, the reference measure is theLebesgue measure. Theprobability mass function of adiscrete random variable is the density with respect to thecounting measure over the sample space (usually the set ofintegers, or some subset thereof).

It is not possible to define a density with reference to an arbitrary measure (e.g. one can not choose the counting measure as a reference for a continuous random variable). Furthermore, when it does exist, the density is almost unique, meaning that any two such densities coincidealmost everywhere.

Further details

[edit]

Unlike a probability, a probability density function can take on values greater than one; for example, thecontinuous uniform distribution on the interval[0, 1/2] has probability densityf(x) = 2 for0 ≤x ≤ 1/2 andf(x) = 0 elsewhere.

Thestandard normal distribution has probability densityf(x)=12πex2/2.{\displaystyle f(x)={\frac {1}{\sqrt {2\pi }}}\,e^{-x^{2}/2}.}

If a random variableX is given and its distribution admits a probability density functionf, then theexpected value ofX (if the expected value exists) can be calculated asE[X]=xf(x)dx.{\displaystyle \operatorname {E} [X]=\int _{-\infty }^{\infty }x\,f(x)\,dx.}

Not every probability distribution has a density function: the distributions ofdiscrete random variables do not; nor does theCantor distribution, even though it has no discrete component, i.e., does not assign positive probability to any individual point.

A distribution has a density function if itscumulative distribution functionF(x) isabsolutely continuous. In this case:F isalmost everywheredifferentiable, and its derivative can be used as probability density:ddxF(x)=f(x).{\displaystyle {\frac {d}{dx}}F(x)=f(x).}

If a probability distribution admits a density, then the probability of every one-point set{a} is zero; the same holds for finite and countable sets.

Two probability densitiesf andg represent the sameprobability distribution precisely if they differ only on a set ofLebesguemeasure zero.

In the field ofstatistical physics, a non-formal reformulation of the relation above between the derivative of the cumulative distribution function and the probability density function is generally used as the definition of the probability density function. This alternate definition is the following:

Ifdt is an infinitely small number, the probability thatX is included within the interval(t,t +dt) is equal tof(t)dt, or:Pr(t<X<t+dt)=f(t)dt.{\displaystyle \Pr(t<X<t+dt)=f(t)\,dt.}

Link between discrete and continuous distributions

[edit]

It is possible to represent certain discrete random variables as well as random variables involving both a continuous and a discrete part with ageneralized probability density function using theDirac delta function. (This is not possible with a probability density function in the sense defined above, it may be done with adistribution.) For example, consider a binary discreterandom variable having theRademacher distribution—that is, taking −1 or 1 for values, with probability12 each. The density of probability associated with this variable is:f(t)=12(δ(t+1)+δ(t1)).{\displaystyle f(t)={\frac {1}{2}}(\delta (t+1)+\delta (t-1)).}

More generally, if a discrete variable can taken different values among real numbers, then the associated probability density function is:f(t)=i=1npiδ(txi),{\displaystyle f(t)=\sum _{i=1}^{n}p_{i}\,\delta (t-x_{i}),}wherex1,,xn{\displaystyle x_{1},\ldots ,x_{n}} are the discrete values accessible to the variable andp1,,pn{\displaystyle p_{1},\ldots ,p_{n}} are the probabilities associated with these values.

This substantially unifies the treatment of discrete and continuous probability distributions. The above expression allows for determining statistical characteristics of such a discrete variable (such as themean,variance, andkurtosis), starting from the formulas given for a continuous distribution of the probability.

Families of densities

[edit]

It is common for probability density functions (andprobability mass functions) to be parametrized—that is, to be characterized by unspecifiedparameters. For example, thenormal distribution is parametrized in terms of themean and thevariance, denoted byμ{\displaystyle \mu } andσ2{\displaystyle \sigma ^{2}} respectively, giving the family of densitiesf(x;μ,σ2)=1σ2πe12(xμσ)2.{\displaystyle f(x;\mu ,\sigma ^{2})={\frac {1}{\sigma {\sqrt {2\pi }}}}e^{-{\frac {1}{2}}\left({\frac {x-\mu }{\sigma }}\right)^{2}}.}Different values of the parameters describe different distributions of differentrandom variables on the samesample space (the same set of all possible values of the variable); this sample space is the domain of the family of random variables that this family of distributions describes. A given set of parameters describes a single distribution within the family sharing the functional form of the density. From the perspective of a given distribution, the parameters are constants, and terms in a density function that contain only parameters, but not variables, are part of thenormalization factor of a distribution (the multiplicative factor that ensures that the area under the density—the probability ofsomething in the domain occurring— equals 1). This normalization factor is outside thekernel of the distribution.

Since the parameters are constants, reparametrizing a density in terms of different parameters to give a characterization of a different random variable in the family, means simply substituting the new parameter values into the formula in place of the old ones.

Densities associated with multiple variables

[edit]

For continuousrandom variablesX1, ...,Xn, it is also possible to define a probability density function associated to the set as a whole, often calledjoint probability density function. This density function is defined as a function of then variables, such that, for any domainD in then-dimensional space of the values of the variablesX1, ...,Xn, the probability that a realisation of the set variables falls inside the domainD isPr(X1,,XnD)=DfX1,,Xn(x1,,xn)dx1dxn.{\displaystyle \Pr \left(X_{1},\ldots ,X_{n}\in D\right)=\int _{D}f_{X_{1},\ldots ,X_{n}}(x_{1},\ldots ,x_{n})\,dx_{1}\cdots dx_{n}.}

IfF(x1, ...,xn) = Pr(X1x1, ...,Xnxn) is thecumulative distribution function of the vector(X1, ...,Xn), then the joint probability density function can be computed as a partial derivativef(x)=nFx1xn|x{\displaystyle f(x)=\left.{\frac {\partial ^{n}F}{\partial x_{1}\cdots \partial x_{n}}}\right|_{x}}

Marginal densities

[edit]

Fori = 1, 2, ...,n, letfXi(xi) be the probability density function associated with variableXi alone. This is called the marginal density function, and can be deduced from the probability density associated with the random variablesX1, ...,Xn by integrating over all values of the othern − 1 variables:fXi(xi)=f(x1,,xn)dx1dxi1dxi+1dxn.{\displaystyle f_{X_{i}}(x_{i})=\int f(x_{1},\ldots ,x_{n})\,dx_{1}\cdots dx_{i-1}\,dx_{i+1}\cdots dx_{n}.}

Independence

[edit]

Continuous random variablesX1, ...,Xn admitting a joint density are allindependent from each other iffX1,,Xn(x1,,xn)=fX1(x1)fXn(xn).{\displaystyle f_{X_{1},\ldots ,X_{n}}(x_{1},\ldots ,x_{n})=f_{X_{1}}(x_{1})\cdots f_{X_{n}}(x_{n}).}

Corollary

[edit]

If the joint probability density function of a vector ofn random variables can be factored into a product ofn functions of one variablefX1,,Xn(x1,,xn)=f1(x1)fn(xn),{\displaystyle f_{X_{1},\ldots ,X_{n}}(x_{1},\ldots ,x_{n})=f_{1}(x_{1})\cdots f_{n}(x_{n}),}(where eachfi is not necessarily a density) then then variables in the set are allindependent from each other, and the marginal probability density function of each of them is given byfXi(xi)=fi(xi)fi(x)dx.{\displaystyle f_{X_{i}}(x_{i})={\frac {f_{i}(x_{i})}{\int f_{i}(x)\,dx}}.}

Example

[edit]

This elementary example illustrates the above definition of multidimensional probability density functions in the simple case of a function of a set of two variables. Let us callR{\displaystyle {\vec {R}}} a 2-dimensional random vector of coordinates(X,Y): the probability to obtainR{\displaystyle {\vec {R}}} in the quarter plane of positivex andy isPr(X>0,Y>0)=00fX,Y(x,y)dxdy.{\displaystyle \Pr \left(X>0,Y>0\right)=\int _{0}^{\infty }\int _{0}^{\infty }f_{X,Y}(x,y)\,dx\,dy.}

Function of random variables and change of variables in the probability density function

[edit]

If the probability density function of a random variable (or vector)X is given asfX(x), it is possible (but often not necessary; see below) to calculate the probability density function of some variableY =g(X). This is also called a "change of variable" and is in practice used to generate a random variable of arbitrary shapefg(X) =fY using a known (for instance, uniform) random number generator.

It is tempting to think that in order to find the expected valueE(g(X)), one must first find the probability densityfg(X) of the new random variableY =g(X). However, rather than computingE(g(X))=yfg(X)(y)dy,{\displaystyle \operatorname {E} {\big (}g(X){\big )}=\int _{-\infty }^{\infty }yf_{g(X)}(y)\,dy,}one may find insteadE(g(X))=g(x)fX(x)dx.{\displaystyle \operatorname {E} {\big (}g(X){\big )}=\int _{-\infty }^{\infty }g(x)f_{X}(x)\,dx.}

The values of the two integrals are the same in all cases in which bothX andg(X) actually have probability density functions. It is not necessary thatg be aone-to-one function. In some cases the latter integral is computed much more easily than the former. SeeLaw of the unconscious statistician.

Scalar to scalar

[edit]

Letg:RR{\displaystyle g:\mathbb {R} \to \mathbb {R} } be amonotonic function, then the resulting density function is[5]fY(y)=fX(g1(y))|ddy(g1(y))|.{\displaystyle f_{Y}(y)=f_{X}{\big (}g^{-1}(y){\big )}\left|{\frac {d}{dy}}{\big (}g^{-1}(y){\big )}\right|.}

Hereg−1 denotes theinverse function.

This follows from the fact that the probability contained in a differential area must be invariant under change of variables. That is,|fY(y)dy|=|fX(x)dx|,{\displaystyle \left|f_{Y}(y)\,dy\right|=\left|f_{X}(x)\,dx\right|,}orfY(y)=|dxdy|fX(x)=|ddy(x)|fX(x)=|ddy(g1(y))|fX(g1(y))=|(g1)(y)|fX(g1(y)).{\displaystyle f_{Y}(y)=\left|{\frac {dx}{dy}}\right|f_{X}(x)=\left|{\frac {d}{dy}}(x)\right|f_{X}(x)=\left|{\frac {d}{dy}}{\big (}g^{-1}(y){\big )}\right|f_{X}{\big (}g^{-1}(y){\big )}={\left|\left(g^{-1}\right)'(y)\right|}\cdot f_{X}{\big (}g^{-1}(y){\big )}.}

For functions that are not monotonic, the probability density function fory isk=1n(y)|ddygk1(y)|fX(gk1(y)),{\displaystyle \sum _{k=1}^{n(y)}\left|{\frac {d}{dy}}g_{k}^{-1}(y)\right|\cdot f_{X}{\big (}g_{k}^{-1}(y){\big )},}wheren(y) is the number of solutions inx for the equationg(x)=y{\displaystyle g(x)=y}, andgk1(y){\displaystyle g_{k}^{-1}(y)} are these solutions.

Vector to vector

[edit]

Supposex is ann-dimensional random variable with joint densityf. Ify =G(x), whereG is abijective,differentiable function, theny has densitypY:pY(y)=f(G1(y))|det[dG1(z)dz|z=y]|{\displaystyle p_{Y}(\mathbf {y} )=f{\Bigl (}G^{-1}(\mathbf {y} ){\Bigr )}\left|\det \left[\left.{\frac {dG^{-1}(\mathbf {z} )}{d\mathbf {z} }}\right|_{\mathbf {z} =\mathbf {y} }\right]\right|}with the differential regarded as theJacobian of the inverse ofG(⋅), evaluated aty.[6]

For example, in the 2-dimensional casex = (x1,x2), suppose the transformG is given asy1 =G1(x1,x2),y2 =G2(x1,x2) with inversesx1 =G1−1(y1,y2),x2 =G2−1(y1,y2). The joint distribution fory = (y1, y2) has density[7]pY1,Y2(y1,y2)=fX1,X2(G11(y1,y2),G21(y1,y2))|G11y1G21y2G11y2G21y1|.{\displaystyle p_{Y_{1},Y_{2}}(y_{1},y_{2})=f_{X_{1},X_{2}}{\big (}G_{1}^{-1}(y_{1},y_{2}),G_{2}^{-1}(y_{1},y_{2}){\big )}\left\vert {\frac {\partial G_{1}^{-1}}{\partial y_{1}}}{\frac {\partial G_{2}^{-1}}{\partial y_{2}}}-{\frac {\partial G_{1}^{-1}}{\partial y_{2}}}{\frac {\partial G_{2}^{-1}}{\partial y_{1}}}\right\vert .}

Vector to scalar

[edit]

LetV:RnR{\displaystyle V:\mathbb {R} ^{n}\to \mathbb {R} } be a differentiable function andX{\displaystyle X} be a random vector taking values inRn{\displaystyle \mathbb {R} ^{n}},fX{\displaystyle f_{X}} be the probability density function ofX{\displaystyle X} andδ(){\displaystyle \delta (\cdot )} be theDirac delta function. It is possible to use the formulas above to determinefY{\displaystyle f_{Y}}, the probability density function ofY=V(X){\displaystyle Y=V(X)}, which will be given byfY(y)=RnfX(x)δ(yV(x))dx.{\displaystyle f_{Y}(y)=\int _{\mathbb {R} ^{n}}f_{X}(\mathbf {x} )\delta {\big (}y-V(\mathbf {x} ){\big )}\,d\mathbf {x} .}

This result leads to thelaw of the unconscious statistician:EY[Y]=RyfY(y)dy=RyRnfX(x)δ(yV(x))dxdy=RnRyfX(x)δ(yV(x))dydx=RnV(x)fX(x)dx=EX[V(X)].{\displaystyle {\begin{aligned}\operatorname {E} _{Y}[Y]&=\int _{\mathbb {R} }yf_{Y}(y)\,dy\\&=\int _{\mathbb {R} }y\int _{\mathbb {R} ^{n}}f_{X}(\mathbf {x} )\delta {\big (}y-V(\mathbf {x} ){\big )}\,d\mathbf {x} \,dy\\&=\int _{{\mathbb {R} }^{n}}\int _{\mathbb {R} }yf_{X}(\mathbf {x} )\delta {\big (}y-V(\mathbf {x} ){\big )}\,dy\,d\mathbf {x} \\&=\int _{\mathbb {R} ^{n}}V(\mathbf {x} )f_{X}(\mathbf {x} )\,d\mathbf {x} =\operatorname {E} _{X}[V(X)].\end{aligned}}}

Proof:

LetZ{\displaystyle Z} be a collapsed random variable with probability density functionpZ(z)=δ(z){\displaystyle p_{Z}(z)=\delta (z)} (i.e., a constant equal to zero). Let the random vectorX~{\displaystyle {\tilde {X}}} and the transformH{\displaystyle H} be defined asH(Z,X)=[Z+V(X)X]=[YX~].{\displaystyle H(Z,X)={\begin{bmatrix}Z+V(X)\\X\end{bmatrix}}={\begin{bmatrix}Y\\{\tilde {X}}\end{bmatrix}}.}

It is clear thatH{\displaystyle H} is a bijective mapping, and the Jacobian ofH1{\displaystyle H^{-1}} is given by:dH1(y,x~)dydx~=[1dV(x~)dx~0n×1In×n],{\displaystyle {\frac {dH^{-1}(y,{\tilde {\mathbf {x} }})}{dy\,d{\tilde {\mathbf {x} }}}}={\begin{bmatrix}1&-{\frac {dV({\tilde {\mathbf {x} }})}{d{\tilde {\mathbf {x} }}}}\\\mathbf {0} _{n\times 1}&\mathbf {I} _{n\times n}\end{bmatrix}},}which is an upper triangular matrix with ones on the main diagonal, therefore its determinant is 1. Applying the change of variable theorem from the previous section we obtain thatfY,X(y,x)=fX(x)δ(yV(x)),{\displaystyle f_{Y,X}(y,x)=f_{X}(\mathbf {x} )\delta {\big (}y-V(\mathbf {x} ){\big )},}which if marginalized overx{\displaystyle x} leads to the desired probability density function.

Sums of independent random variables

[edit]
See also:List of convolutions of probability distributions

The probability density function of the sum of twoindependent random variablesU andV, each of which has a probability density function, is theconvolution of their separate density functions:fU+V(x)=fU(y)fV(xy)dy=(fUfV)(x){\displaystyle f_{U+V}(x)=\int _{-\infty }^{\infty }f_{U}(y)f_{V}(x-y)\,dy=\left(f_{U}*f_{V}\right)(x)}

It is possible to generalize the previous relation to a sum of N independent random variables, with densitiesU1, ...,UN:fU1++U(x)=(fU1fUN)(x){\displaystyle f_{U_{1}+\cdots +U}(x)=\left(f_{U_{1}}*\cdots *f_{U_{N}}\right)(x)}

This can be derived from a two-way change of variables involvingY =U +V andZ =V, similarly to the example below for the quotient of independent random variables.

Products and quotients of independent random variables

[edit]
See also:Product distribution andRatio distribution

Given two independent random variablesU andV, each of which has a probability density function, the density of the productY =UV and quotientY =U/V can be computed by a change of variables.

Example: Quotient distribution

[edit]

To compute the quotientY =U/V of two independent random variablesU andV, define the following transformation:Y=U/VZ=V{\displaystyle {\begin{aligned}Y&=U/V\\[1ex]Z&=V\end{aligned}}}

Then, the joint densityp(y,z) can be computed by a change of variables fromU,V toY,Z, andY can be derived bymarginalizing outZ from the joint density.

The inverse transformation isU=YZV=Z{\displaystyle {\begin{aligned}U&=YZ\\V&=Z\end{aligned}}}

The absolute value of theJacobian matrix determinantJ(U,VY,Z){\displaystyle J(U,V\mid Y,Z)} of this transformation is:|det[uyuzvyvz]|=|det[zy01]|=|z|.{\displaystyle \left|\det {\begin{bmatrix}{\frac {\partial u}{\partial y}}&{\frac {\partial u}{\partial z}}\\{\frac {\partial v}{\partial y}}&{\frac {\partial v}{\partial z}}\end{bmatrix}}\right|=\left|\det {\begin{bmatrix}z&y\\0&1\end{bmatrix}}\right|=|z|.}

Thus:p(y,z)=p(u,v)J(u,vy,z)=p(u)p(v)J(u,vy,z)=pU(yz)pV(z)|z|.{\displaystyle p(y,z)=p(u,v)\,J(u,v\mid y,z)=p(u)\,p(v)\,J(u,v\mid y,z)=p_{U}(yz)\,p_{V}(z)\,|z|.}

And the distribution ofY can be computed bymarginalizing outZ:p(y)=pU(yz)pV(z)|z|dz{\displaystyle p(y)=\int _{-\infty }^{\infty }p_{U}(yz)\,p_{V}(z)\,|z|\,dz}

This method crucially requires that the transformation fromU,V toY,Z bebijective. The above transformation meets this becauseZ can be mapped directly back toV, and for a givenV the quotientU/V ismonotonic. This is similarly the case for the sumU +V, differenceUV and productUV.

Exactly the same method can be used to compute the distribution of other functions of multiple independent random variables.

Example: Quotient of two standard normals

[edit]

Given twostandard normal variablesU andV, the quotient can be computed as follows. First, the variables have the following density functions:p(u)=12πeu2/2p(v)=12πev2/2{\displaystyle {\begin{aligned}p(u)&={\frac {1}{\sqrt {2\pi }}}e^{-{u^{2}}/{2}}\\[1ex]p(v)&={\frac {1}{\sqrt {2\pi }}}e^{-{v^{2}}/{2}}\end{aligned}}}

We transform as described above:Y=U/VZ=V{\displaystyle {\begin{aligned}Y&=U/V\\[1ex]Z&=V\end{aligned}}}

This leads to:p(y)=pU(yz)pV(z)|z|dz=12πe12y2z212πe12z2|z|dz=12πe12(y2+1)z2|z|dz=2012πe12(y2+1)z2zdz=01πe(y2+1)uduu=12z2=1π(y2+1)e(y2+1)u|u=0=1π(y2+1){\displaystyle {\begin{aligned}p(y)&=\int _{-\infty }^{\infty }p_{U}(yz)\,p_{V}(z)\,|z|\,dz\\[5pt]&=\int _{-\infty }^{\infty }{\frac {1}{\sqrt {2\pi }}}e^{-{\frac {1}{2}}y^{2}z^{2}}{\frac {1}{\sqrt {2\pi }}}e^{-{\frac {1}{2}}z^{2}}|z|\,dz\\[5pt]&=\int _{-\infty }^{\infty }{\frac {1}{2\pi }}e^{-{\frac {1}{2}}\left(y^{2}+1\right)z^{2}}|z|\,dz\\[5pt]&=2\int _{0}^{\infty }{\frac {1}{2\pi }}e^{-{\frac {1}{2}}\left(y^{2}+1\right)z^{2}}z\,dz\\[5pt]&=\int _{0}^{\infty }{\frac {1}{\pi }}e^{-\left(y^{2}+1\right)u}\,du&&u={\tfrac {1}{2}}z^{2}\\[5pt]&=\left.-{\frac {1}{\pi \left(y^{2}+1\right)}}e^{-\left(y^{2}+1\right)u}\right|_{u=0}^{\infty }\\[5pt]&={\frac {1}{\pi \left(y^{2}+1\right)}}\end{aligned}}}

This is the density of a standardCauchy distribution.

See also

[edit]

References

[edit]
  1. ^"AP Statistics Review - Density Curves and the Normal Distributions". Archived fromthe original on 2 April 2015. Retrieved16 March 2015.
  2. ^Grinstead, Charles M.; Snell, J. Laurie (2009)."Conditional Probability - Discrete Conditional"(PDF).Grinstead & Snell's Introduction to Probability. Orange Grove Texts.ISBN 978-1616100469.Archived(PDF) from the original on 2003-04-25. Retrieved2019-07-25.
  3. ^"probability - Is a uniformly random number over the real line a valid distribution?".Cross Validated. Retrieved2021-10-06.
  4. ^Ord, J.K. (1972)Families of Frequency Distributions, Griffin.ISBN 0-85264-137-0 (for example, Table 5.1 and Example 5.4)
  5. ^Siegrist, Kyle (5 May 2020)."Transformations of Random Variables". LibreTexts Statistics. Retrieved22 December 2023.
  6. ^Devore, Jay L.; Berk, Kenneth N. (2007).Modern Mathematical Statistics with Applications. Cengage. p. 263.ISBN 978-0-534-40473-4.
  7. ^David, Stirzaker (2007-01-01).Elementary Probability. Cambridge University Press.ISBN 978-0521534284.OCLC 851313783.

Further reading

[edit]

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Probability_density_function&oldid=1299658930"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp