SciPy
SciPy – Scientific Python
The library of scientific algorithms built on NumPy: optimization, integration, statistics, signal processing and sparse matrices.
Basic information
| Name | SciPy |
|---|---|
| Full name | SciPy – Scientific Python |
| Category | Scientific Computing & Data Processing Libraries |
| Developer | The SciPy community (sponsored by NumFOCUS) |
| Release year | 2001 |
| Official website | scipy.org |
| GitHub repository | scipy/scipy |
| Official documentation | docs.scipy.org/doc/scipy |
| Package on PyPI | scipy |
| License | BSD-3-Clause (PyPI classifier (BSD License) + LICENSE.txt) |
| Project status | Active Had a release in the last 12 months |
| Latest version | 21 August 2026 (version 1.18.1) |
| Programming language | Python, C, C++, Fortran |
| Operating systems | Linux, MacOS, POSIX, Unix, Windows (as declared by the package on PyPI) |
| Required Python version | >=3.12 |
| Difficulty level | Medium |
Data last checked: 21 November 2026 — source: PyPI JSON API (2026-11-21)
Overview
SciPy brings together proven scientific algorithms in modules such as optimize, stats, signal, sparse, interpolate, spatial and ndimage, saving researchers from rewriting complex numerical methods.
In AI projects it is used for statistical tests between model results, processing biosignals, large sparse matrices, and numerical optimization outside deep learning frameworks.
When to choose it? Choose it for statistics, optimization and signal processing on top of NumPy.
Uses
Main uses
- Statistical tests and confidence intervals
- Numerical optimization and solving equations
- Signal processing and filters
- Sparse matrices
Scientific fields
- Scientific computing
- Statistics
- Engineering and signal processing
Suitable project types
- Statistical comparison between two models
- Filtering ECG or EEG signals
- Optimization problems
Research applications
- Significance tests for experiment results
- Mathematical modelling and simulation
Technical features
A feature is shown as "Supported" only if it is documented in the library's official documentation; anything we have not verified is shown as "Not specified".
| CPU support | Supported |
|---|---|
| GPU support | Not supported |
| CUDA compatibility | Not supported |
| Distributed training or computing | Not supported |
| Automatic differentiation (Autodiff) | Not supported |
| Model deployment | Not applicable |
| Pre-trained models | Not applicable |
| Supported data types | NumPy arrays, sparse matrices |
| Integration with other libraries | NumPy, Scikit-learn, Matplotlib |
| Flexibility (editorial estimate) | High |
| Performance (editorial estimate) | Good on the CPU |
| Community (editorial estimate) | Large |
| Documentation quality (editorial estimate) | Comprehensive reference documentation |
Installation and running
pip install scipyCompatibility: Python >=3.12 — according to the package data on PyPI, checked on 21 November 2026
Installing inside a virtual environment (venv or conda) is recommended. If you need compatibility with a specific CUDA version or operating system, refer to the official documentation, because this information changes with every release.
Code examples
Examples marked "Run and tested" were actually run, with their output, test date and library versions recorded; the others need a GPU or model downloads, so they were not run in the test environment.
ResearchA statistical significance test between two modelsRun and tested
Goal: Finding out whether the difference between two models' accuracies across cross-validation folds is statistically significant.
from scipy import stats
model_a = [0.912, 0.905, 0.921, 0.899, 0.915, 0.908, 0.917, 0.903, 0.911, 0.919]
model_b = [0.901, 0.899, 0.910, 0.893, 0.902, 0.900, 0.906, 0.897, 0.905, 0.908]
t, p = stats.ttest_rel(model_a, model_b)
w, pw = stats.wilcoxon(model_a, model_b)
print(f"paired t-test: t={t:.3f}, p={p:.5f}")
print(f"Wilcoxon: W={w:.1f}, p={pw:.5f}")
print("The difference is significant at 0.05" if p < 0.05 else "The difference is not significant")
Code explanation
When two models are compared on the same folds the samples are paired, so we use the paired t-test (ttest_rel) and the non-parametric Wilcoxon test. The values here are illustrative numbers; in your research use the actual fold results, and note that cross-validation folds are not fully independent.
Output recorded during testing
paired t-test: t=10.172, p=0.00000 Wilcoxon: W=0.0, p=0.00195 The difference is significant at 0.05
This example was actually run and tested on 21 November 2026 on a CPU — scipy 1.18.1, python 3.13.18
Pros
- Reliable scientific algorithms tested for years
- Broad coverage of scientific computing fields
Limitations
- No GPU support
- Some modules need a good mathematical background
References and verification
- Package page on PyPI (source of the version, licence and release date) Checked directly
https://pypi.org/project/scipy/
Checked on: 21 November 2026 — version checked: 1.18.1 — reviewed by: the DLArabic team
- Official website A link the package officially declares on PyPI
https://scipy.org/
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official documentation A link the package officially declares on PyPI
https://docs.scipy.org/doc/scipy/
Checked on: 21 November 2026 — reviewed by: the DLArabic team
- Official repository A link the package officially declares on PyPI
https://github.com/scipy/scipy
Checked on: 21 November 2026 — reviewed by: the DLArabic team
History of verified versions
| Version | Release date | Checked on |
|---|---|---|
| 1.18.1 | 21 August 2026 | 21 November 2026 |
Page information last reviewed: 21 November 2026. The description was written originally for the encyclopedia and is not copied from the official websites.
