Comments (1)
import numpy as np
import scipy
from scipy.stats import chi2_contingency
table = np.array([[176, 230], [21035, 21018]])
res = chi2_contingency(table)
print(scipy.__version__) # 1.13.0
print(type(res)) # <class 'scipy.stats.contingency.Chi2ContingencyResult'>
print(res.statistic, res.pvalue) # 6.892569132546561 0.008655478161175739
scipy/scipy/stats/contingency.py
Line 365 in 7dcd8c5
from scipy.
Related Issues (20)
- MAINT, DOC: JupyterLite build fails via "make dist" on release branch HOT 11
- MAINT: special version hex cleanup HOT 2
- BUG: scipy.stats.kstest returns NaN starting in scipy 1.12 HOT 8
- BUG: Problems with new scipy 1.13 RegularGridInterpolator spline interpolation beyond documented behaviour HOT 4
- DOC: Version switcher is not vertically centred on mobile HOT 2
- BUG: `sparse.hstack` does not respect `dtype` of `{indptr,indices}` but `sparse.vstack` does for `csr` (and vice-versa for `csc`)
- DOC: optimize.root(method='lm') option HOT 1
- BUG: unnecessary computations in iirpeak/iirnotch/iircomb filter gain could simplify to 1 HOT 1
- BUG: Segmentation Fault with scipy.linalg.expm When Importing torch on macOS HOT 2
- Licensing: proposed addition with an Apache 2.0 with LLVM runtime exception HOT 21
- BUG: scipy.special.logsumexp raises ValueError for a zero-size array
- BUG: fft.fftfreq appears to be giving wrong answers HOT 3
- BUG: <Unable to import 'triu' module> HOT 5
- BUG: scipy.optimize.linprog can not find the correct minimum value HOT 3
- ENH: signal: integrate new implementation of `remez` HOT 6
- Possible typo in computation of hypergeometric function 2F1 HOT 8
- scipy 1.12.0 building from source issue with cython 0.29.36 HOT 1
- BUG: csr_array can no longer be initialized with 1D array HOT 4
- BUG: nightly: .special.jv now promotes float32 inputs to float64 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scipy.