Reading preferences
Concept

Scientific Python: Visualisation and Mathematics

Compare Seaborn, SciPy, and SymPy through a small scientific workflow.

python, seaborn, scipy, sympy, statistics, visualisation

Different kinds of evidence

Seaborn creates statistical visualisations, SciPy provides numerical algorithms, and SymPy manipulates symbolic expressions. A plot, numerical estimate, and symbolic result answer different questions; none makes an assumption about the real world automatically true.

Python illustration

In a separate environment with SciPy and SymPy installed:

from scipy.integrate import quad
from sympy import symbols, diff

x = symbols("x")
print(diff(x**2, x))
area, error = quad(lambda value: value, 0, 1)
print(round(area, 3))
print(error < 1e-10)

Prepared output — not live execution:

2*x
0.5
True

The derivative is an exact symbolic expression. The integral is a numerical estimate of the area under y = x from zero to one; the reported error is an estimate, not a proof of all real-world assumptions.

See the reasoning

Compare symbolic and numerical results

Follow the two different questions in the prepared example. This is a prepared demonstration, not live code execution.

Choose the questions

Two analysis lanes
  1. SymPydifferentiate x²Current focus
  2. SciPyintegrate x from 0 to 1

Differentiate x squared symbolically and integrate x numerically from zero to one.

Plot the data

In an environment with Seaborn and Matplotlib, the following creates a scatter plot of three prepared observations:

import matplotlib.pyplot as plt
import seaborn as sns

sns.scatterplot(x=[1, 2, 3], y=[2, 3, 5])
plt.xlabel("Hours")
plt.ylabel("Pages")
plt.show()

Points show observed pairs, not proof that hours caused pages. Check units, missing values, sample size, and axis choices. External libraries are installed and run only in the learner's own trusted environment, never by Intuvo's static site.

Reflect on the concept

Four fixed questions to reinforce the reasoning. Answers are not saved or scored.

1. What is Seaborn commonly used for?
2. What does scipy.integrate.quad estimate?
3. What can SymPy do symbolically?
4. Why inspect assumptions and units in a plot or computation?

References and further reading