nustattools.stats package¶
Module contents¶
Copyright (c) 2024 Lukas Koch. All rights reserved.
Statistical distributions that are useful, but not available in
scipy.stats.
- class nustattools.stats.Bee(momtype=1, a=None, b=None, xtol=1e-14, badvalue=None, name=None, longname=None, shapes=None, seed=None)[source]¶
Bases:
rv_continuousA random variable representing the maximum of df chi distributions.
Each
chidisitribution hasdf = 1.Note
You probably do not need to use this class directly. Instead work with the instance
bee.- Parameters:
df (int) – The number of chi-distirbuted variables to take the maximum of.
- class nustattools.stats.Bee2(momtype=1, a=None, b=None, xtol=1e-14, badvalue=None, name=None, longname=None, shapes=None, seed=None)[source]¶
Bases:
rv_continuousA random variable representing the maximum of df chi2 distributions.
Each
chii2disitribution hasdf = 1.Note
You probably do not need to use this class directly. Instead work with the instance
bee2.- Parameters:
df (int) – The number of chi-distirbuted variables to take the maximum of.
Notes
This distribution is discussed in [1] in the context of robust test statistics.
References
- class nustattools.stats.Cee(momtype=1, a=None, b=None, xtol=1e-14, badvalue=None, name=None, longname=None, shapes=None, seed=None)[source]¶
Bases:
rv_continuousA random variable representing the maximum of multiple chi distributions.
Each
chidisitribution can have a differentdf. If alldfare equal to 1, this is identical to theBeedistribution withdf = len(k).Note
You probably do not need to use this class directly. Instead work with the instance
cee.- Parameters:
k (DF or Iterable of DF) – Special class to pass variable length list of degrees of freedom of the chi-distirbuted variables to take the maximum of.
Examples
>>> cee(k=DF(1,2,3)).pdf(1) 0.2501359390297275
- class nustattools.stats.Cee2(momtype=1, a=None, b=None, xtol=1e-14, badvalue=None, name=None, longname=None, shapes=None, seed=None)[source]¶
Bases:
rv_continuousA random variable representing the maximum of multiple chi2 distributions.
Each
chi2disitribution can have a differentdf. If alldfare equal to 1, this is identical to aBee2disritbution withdf = len(k).Note
You probably do not need to use this class directly. Instead work with the instance
cee2.- Parameters:
k (DF or Iterable of DF) – Special class to pass variable length list of degrees of freedom of the chi-distirbuted variables to take the maximum of.
Examples
>>> cee2(k=DF(1,2,3)).pdf(1) 0.12506796951321578
Notes
TODO: Add reference to paper.