neighbayes.diagnostics.lmtests.BayesianLMTestResult¶
-
class neighbayes.diagnostics.lmtests.BayesianLMTestResult(lm_samples, mean, median, credible_interval, bayes_pvalue, test_type, df=
1, details=None, statistic=None)[source]¶ Container for Bayesian LM test results.
- bayes_pvalue[source]¶
1 - chi2.cdf(statistic, df); \(\chi^2_{df}\) under H₀ ([Doğan et al., 2021], Proposition 1).
- statistic[source]¶
The test statistic: the LM form of the posterior-mean score. The posterior mean of the per-draw statistic exceeds it by the score’s posterior variance in the metric of the information, which is not part of the test;
meankeeps it, for the samples’ summary.
- df[source]¶
Degrees of freedom for the reference \(\chi^2\) distribution. Default is 1 for single-parameter tests.
-
__init__(lm_samples, mean, median, credible_interval, bayes_pvalue, test_type, df=
1, details=None, statistic=None)[source]¶
Methods
__init__(lm_samples, mean, median, ...[, ...])to_dict()Convert the test result to a dictionary.
Convert the test result to a pandas Series.
Attributes