Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-scipy

What is SciPy?

Last reviewed Jun 1, 2026 Content v20260601
Track mode
server_script
Means
Server runner
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is SciPy?: SciPy scientific routines on NumPy arrays—statistics, optimization, linear algebra, and numerical methods.

Teams apply What is SciPy? in every serious SciPy project—skipping it leaves blind spots in analysis and reviews.

You will apply What is SciPy? in contexts like: Research code, engineering simulations, and specialized analytics.

Read the narrative, run NumPy + SciPy snippets in the playground (install scipy and numpy with pip if needed), inspect outputs and convergence, and complete MCQs.

After /numpy/intro and /pandas/intro—when you need stats tests, optimizers, or sparse/linalg beyond wrangling.

SciPy is an open-source library of scientific algorithms for Python. It is organized into subpackages—each focused on a domain—while sharing NumPy's array model.

Core subpackages

  • scipy.stats — probability distributions and statistical tests
  • scipy.optimize — function minimization and root finding
  • scipy.linalg — dense linear algebra (extends NumPy)
  • scipy.sparse — sparse matrix formats and solvers
  • scipy.integrate — quadrature and ODE solvers
  • scipy.signal — filtering, convolution, spectral analysis
  • scipy.interpolate — splines and grid interpolation
  • scipy.special — special mathematical functions

Typical use cases

  • A/B test analysis with hypothesis tests
  • Fitting model parameters to experimental data
  • Solving linear systems in engineering simulations
  • Processing sensor time series with FFT and filters
  • Sparse graph and network computations

Import conventions

import numpy as np
from scipy import stats, optimize, linalg
import scipy.sparse as sp

x = np.linspace(0, 1, 5)
print('stats normal pdf at 0:', stats.norm.pdf(0.0))

Important interview questions and answers

  1. Q: SciPy vs NumPy?
    A: NumPy = ndarray foundation; SciPy = specialized algorithms on those arrays.
  2. Q: Why submodule imports?
    A: Keeps namespaces clear—import only what you need (from scipy import stats).

Self-check

  1. Name four SciPy subpackages and one use case each.
  2. What array type do SciPy functions expect?

Tip: Import submodules you need (stats, optimize)—avoid wildcard imports in production.

Interview prep

SciPy vs NumPy?

NumPy = arrays; SciPy = scientific algorithms on those arrays.

Key subpackages?

stats, optimize, linalg, sparse, integrate, signal, interpolate, special.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Submodule map?
  • When not SciPy?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump