Stats API¶
Statistics required for RCMIP analysis
-
pyrcmip.stats.
get_skewed_normal
(median, lower, upper, conf, input_data)¶ Get skewed normal distribution matching the inputs
- Parameters
median (float) – Median of the output distribution
lower (float) – Lower bound of the confidence interval
upper (float) – Upper bound of the confidence interval
conf (float) – Confidence associated with the interval [lower, upper] e.g. 0.66 would mean that [lower, upper] defines the 66% confidence range
input_data (
np.ndarray
) – Points from the derived distribution to return. For each point, Y, ininput_data
, we determine the value at which a cumulative probability of Y is achieved. As a result, all values ininput_data
must be in the range [0, 1]. Hence if you want a random sample from the derived skewed normal, simply makeinput_data
equal to a random sample of the uniform distribution [0, 1]
- Returns
Points sampled from the derived skewed normal distribution based on
input_data
- Return type
np.ndarray