scipy 1.10.1 Pypi GitHub Homepage
Other Docs

NotesParametersReturnsBackRef
chi2_contingency(observed, correction=True, lambda_=None)

Notes

Parameters

observed : array_like
correction : bool, optional
lambda_ : float or str, optional

Returns

res : Chi2ContingencyResult

See Also

scipy.stats.barnard_exact
scipy.stats.boschloo_exact
scipy.stats.chisquare
scipy.stats.contingency.expected_freq
scipy.stats.fisher_exact
scipy.stats.power_divergence

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.stats.contingency:association scipy.stats._hypotests:boschloo_exact scipy.stats._hypotests:barnard_exact scipy.stats._morestats:median_test scipy.stats._stats_py:fisher_exact

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/stats/contingency.py#144
type: <class 'function'>
Commit: