itmlogic.misc package

Submodules

itmlogic.misc.qerf module

itmlogic.misc.qerf.qerf(z)[source]

The standard normal complementary probability - see function in C. Hastings, Jr. (1955). The maximum error should be 7.5x10^-8.

Parameters:z (float) – Defined value to assess the probability of exceedance of a standardized normal random variable.
Returns:qerf1 – The standard normal complementary probability
Return type:float

itmlogic.misc.qerfi module

itmlogic.misc.qerfi.qerfi(q)[source]

The inverse of qerf - the solution for x to q = Q(x). The approximation is due to Hastings, Jr. (1995) and the maximum error should be 4.5x10^-4.

Parameters:q (list of float) – Confidence levels for predictions (e.g. [0.01, 0.1, 0.5, 0.9, 0.99])
Returns:qerfi1 – Inverse of the standard normal complementary probability
Return type:list of float

itmlogic.misc.qtile module

itmlogic.misc.qtile.qtile(a, ir)[source]

This routine returns the ith entry of vector after sorting in descending order.

Parameters:
  • a (list) – Input data distribution.
  • ir (int) – Desired percentile.
Returns:

qtile – Percentile value.

Return type:

float