Variables#
The following section will discuss what is required for each variable when using the UQPCE input yaml file. Refer to the variables section for more information on the different distributions.
Supported Distributions#
Class |
Distribution |
Required Parameters |
Optional Parameters |
|---|---|---|---|
ContinuousVariable |
|
pdf, interval_low, interval_high |
|
EpistemicVariable |
|
interval_low, interval_high |
|
NormalVariable |
|
mean, stdev |
|
UniformVariable |
|
interval_low, interval_high |
|
BetaVariable |
|
alpha, beta |
interval_low (default = 0), |
ExponentialVariable |
|
lambda |
interval_low (default = 0) |
GammaVariable |
|
alpha, theta |
interval_low (default = 0) |
LognormalVariable |
|
mean, stdev |
interval_low (default = 0) |
DiscreteVariable |
|
pdf, interval_low, interval_high |
|
DiscreteEpistemicVariable |
|
interval_low, interval_high |
|
NegativeBinomialVariable |
|
r, p |
interval_low (default = 0) |
DiscreteUniformVariable |
|
interval_low, interval_high |
|
PoissonVariable |
|
lambda |
interval_low (default = 0) |
HypergeometricVariable |
|
M, n, N |
interval_low (default = 0) |
Variable Parameters#
Name |
Type |
Description |
|---|---|---|
name |
|
The name for the physical meaning of the variable (default = x{number}) |
distribution |
|
a string value for the chosen distribution; can be any of the types in the above |
|
The PDF for a user-input variable; must follow SymPy notation |
|
mean |
|
This option is the mean of a NormalVariable and the mean of the natural logarithm for the LognormalVariable |
stdev |
|
This option is the standard deviation of a NormalVariable and the mean of the natural logarithm for the LognormalVariable |
interval_low |
|
This option is the lower interval on which the data lies |
interval_high |
|
This option is the upper interval on which the data lies |
alpha |
|
The \(\alpha\) parameter of the BetaVariable and the GammaVariable |
beta |
|
The \(\beta\) parameter of the BetaVariable |
theta |
|
The \(\theta\) parameter of the GammaVariable |
lambda |
|
The \(\lambda\) parameter of the ExponentialVariable and PoissonVariable |
r |
|
The \(r\) parameter of the NegativeBinomialVariable |
p |
|
The \(p\) parameter of the NeativeBinomialVariable |
M |
|
The \(M\) parameter of the HypergeometricVariable |
n |
|
The \(n\) parameter of the HypergeometricVariable |
N |
|
The \(N\) parameter of the HypergeometricVariable |
Note
The pdf parameter must be in the SymPy notation with x as the variable in the PDF.
sqrt(2 * pi) = \(\sqrt{2\pi}\)
exp(-x) = \(e^{-x}\)
Note
YAML files are sensitive to spacing and tabs. Ensure that there are no trailing spaces in the lines. See the PyYAML documentation for more information.