SciPy

SciPy – Scientific Python

The library of scientific algorithms built on NumPy: optimization, integration, statistics, signal processing and sparse matrices.

ActiveMediumv1.18.1BSD-3-ClauseScientific Computing & Data Processing Libraries

Official documentationTry the examples

Basic information

NameSciPy
Full nameSciPy – Scientific Python
CategoryScientific Computing & Data Processing Libraries
DeveloperThe SciPy community (sponsored by NumFOCUS)
Release year2001
Official websitescipy.org
GitHub repositoryscipy/scipy
Official documentationdocs.scipy.org/doc/scipy
Package on PyPIscipy
LicenseBSD-3-Clause (PyPI classifier (BSD License) + LICENSE.txt)
Project statusActive Had a release in the last 12 months
Latest version21 August 2026 (version 1.18.1)
Programming languagePython, C, C++, Fortran
Operating systemsLinux, MacOS, POSIX, Unix, Windows (as declared by the package on PyPI)
Required Python version>=3.12
Difficulty levelMedium

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

Numerical computing and arrays

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 supportSupported
GPU supportNot supported
CUDA compatibilityNot supported
Distributed training or computingNot supported
Automatic differentiation (Autodiff)Not supported
Model deploymentNot applicable
Pre-trained modelsNot applicable
Supported data typesNumPy arrays, sparse matrices
Integration with other librariesNumPy, 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

Shell
pip install scipy

Compatibility: 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.

Python — example.py
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.

Requirements

Shell
pip install scipy

How to run

Save the code in a file example.py then run it:

Shell
python example.py

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

Example page

All SciPy examples in the Code Explorer

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

VersionRelease dateChecked on
1.18.121 August 202621 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.

Report information that needs updating