Skill Zuno · skillzunos.com · Python Data Science
SciPy interview questions
Prepare for SciPy interviews on Skill Zuno. This practice book covers SciPy interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open SciPy on Skill ZunoAlso see the SciPy tutorial.
SciPy is a core library for scientific and technical computing in Python, built on NumPy. It provides algorithms for optimisation, integration, interpolation, linear algebra, signal and image processing, sparse matrices and statistics. Interviews cover choosing the right SciPy module, curve fitting and minimisation, statistical tests in scipy.stats, sparse matrices and numerical accuracy.
Sample SciPy interview questions
How do you fit a curve to data with SciPy?
Define the model function and call scipy.optimize.curve_fit(f, x, y, p0=guess). It returns the best parameters and their covariance matrix, which gives uncertainties.
How do you run a t-test in SciPy?
Use stats.ttest_ind(a, b) for two independent samples, adding equal_var=False for Welch's test, or stats.ttest_rel for paired samples. It returns the statistic and p-value.
Why use sparse matrices?
When most values are zero, as in text features or graphs, sparse formats store only the non-zero entries, which saves huge amounts of memory and speeds up operations.
What is the difference between CSR and CSC formats?
CSR, compressed sparse row, is efficient for row slicing and matrix-vector products. CSC is efficient for column slicing. Build with COO or LIL, then convert.
What does scipy.optimize.minimize do?
It finds the minimum of a scalar function using a chosen method, such as BFGS, L-BFGS-B with bounds, or SLSQP with constraints.
What you can practice
- SciPy interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Python Data Science topics alongside SciPy on skillzunos.com