1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
|
.. currentmodule:: statsmodels.stats
.. _stats:
Statistics :mod:`stats`
=======================
Introduction
------------
This section collects various statistical tests and tools.
Some can be used independently of any models, some are intended as extension to the
models and model results.
API Warning: The functions and objects in this category are spread out in various modules
and might still be moved around.
.. _stattools:
Residual Diagnostics and Specification Tests
--------------------------------------------
.. currentmodule:: statsmodels.stats.stattools
.. autosummary::
:toctree: generated/
durbin_watson
jarque_bera
omni_normtest
.. currentmodule:: statsmodels.stats.diagnostic
.. autosummary::
:toctree: generated/
acorr_ljungbox
acorr_breush_godfrey
HetGoldfeldQuandt
het_goldfeldquandt
het_breushpagan
het_white
het_arch
linear_harvey_collier
linear_rainbow
linear_lm
breaks_cusumolsresid
breaks_hansen
recursive_olsresiduals
CompareCox
compare_cox
CompareJ
compare_j
unitroot_adf
normal_ad
kstest_normal
lillifors
Outliers and influence measures
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. currentmodule:: statsmodels.stats.outliers_influence
.. autosummary::
:toctree: generated/
OLSInfluence
variance_inflation_factor
See also the notes on :ref:`notes on regression diagnostics <diagnostics>`
Sandwich Robust Covariances
---------------------------
The following functions calculate covariance matrices and standard errors for
the parameter estimates that are robust to heteroscedasticity and
autocorrelation in the errors. Similar to the methods that are available
for the LinearModelResults, these methods are designed for use with OLS.
.. currentmodule:: statsmodels.stats
.. autosummary::
:toctree: generated/
sandwich_covariance.cov_hac
sandwich_covariance.cov_nw_panel
sandwich_covariance.cov_nw_groupsum
sandwich_covariance.cov_cluster
sandwich_covariance.cov_cluster_2groups
sandwich_covariance.cov_white_simple
The following are standalone versions of the heteroscedasticity robust
standard errors attached to LinearModelResults
.. autosummary::
:toctree: generated/
sandwich_covariance.cov_hc0
sandwich_covariance.cov_hc1
sandwich_covariance.cov_hc2
sandwich_covariance.cov_hc3
sandwich_covariance.se_cov
Goodness of Fit Tests and Measures
----------------------------------
some tests for goodness of fit for univariate distributions
.. currentmodule:: statsmodels.stats.gof
.. autosummary::
:toctree: generated/
powerdiscrepancy
gof_chisquare_discrete
gof_binning_discrete
.. currentmodule:: statsmodels.stats.diagnostic
.. autosummary::
:toctree: generated/
normal_ad
kstest_normal
lillifors
Non-Parametric Tests
--------------------
.. currentmodule:: statsmodels.sandbox.stats.runs
.. autosummary::
:toctree: generated/
mcnemar
median_test_ksample
runstest_1samp
runstest_2samp
cochran_q
Runs
Multiple Tests and Multiple Comparison Procedures
-------------------------------------------------
`multipletests` is a function for p-value correction, which also includes p-value
correction based on fdr in `fdrcorrection`.
`tukeyhsd` performs simulatenous testing for the comparison of (independent) means.
These three functions are verified.
GroupsStats and MultiComparison are convenience classes to multiple comparisons similar
to one way ANOVA, but still in developement
.. currentmodule:: statsmodels.sandbox.stats.multicomp
.. autosummary::
:toctree: generated/
multipletests
fdrcorrection0
tukeyhsd
GroupsStats
MultiComparison
The following functions are not (yet) public (here for my own benefit, JP)
.. currentmodule:: statsmodels.sandbox.stats.multicomp
.. autosummary::
:toctree: generated/
varcorrection_pairs_unbalanced
varcorrection_pairs_unequal
varcorrection_unbalanced
varcorrection_unequal
StepDown
catstack
ccols
compare_ordered
distance_st_range
ecdf
get_tukeyQcrit
homogeneous_subsets
line
maxzero
maxzerodown
mcfdr
qcrit
randmvn
rankdata
rejectionline
set_partition
set_remove_subs
tiecorrect
Basic Statistics and t-Tests with frequency weights
---------------------------------------------------
.. currentmodule:: statsmodels.stats.weightstats
.. autosummary::
:toctree: generated/
CompareMeans
DescrStatsW
tstat_generic
Moment Helpers
--------------
These are utility functions to convert between central and non-central moments, skew,
kurtosis and cummulants.
.. currentmodule:: statsmodels.stats.moment_helpers
.. autosummary::
:toctree: generated/
cum2mc
mc2mnc
mc2mvsk
mnc2cum
mnc2mc
mnc2mvsk
mvsk2mc
mvsk2mnc
|