produnif: PDF or CDF for the product of n independent uniformly...

View source: R/plot_model.R

produnifR Documentation

PDF or CDF for the product of n independent uniformly continuous random variables. Evaluates the probability density function or cumulative distribution of Z=z for Z(z) = Xi*...*Xn, for i = 1...n, Xi ~ U(ai,bi), where 0 < ai < bi The PDF and CDF is calculated using Equations 3.4 and 3.9, respectively, from Ishihara, Tatsuo. 2002. The Distribution of the Sum and the Product of Independent Uniform Random Variables Distributed at Different Intervals. Transactions - Japan Society for Industrial and Applied Mathematics, 12(3), 197-208.

Description

PDF or CDF for the product of n independent uniformly continuous random variables.

Evaluates the probability density function or cumulative distribution of Z=z for Z(z) = Xi*...*Xn, for i = 1...n, Xi ~ U(ai,bi), where 0 < ai < bi The PDF and CDF is calculated using Equations 3.4 and 3.9, respectively, from Ishihara, Tatsuo. 2002. The Distribution of the Sum and the Product of Independent Uniform Random Variables Distributed at Different Intervals. Transactions - Japan Society for Industrial and Applied Mathematics, 12(3), 197-208.

Usage

produnif(z, a, b, cumulative = F)

Arguments

z

Number or numerical vector of quantiles

a

Vector holding the mins of each X

b

Vector holding the max of each X

cumulative

Whether or not return the cumulative probability instead of the probability. Default is FALSE. This parameter does not yet calculate CDF correctly.

Value

Number or numerical vector with either the probability density or the cumulative density for each input value z.


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.