Many data scientists started as analysts, and the move is more natural than it looks from outside. You already know how to find data, clean it and explain it to people who make decisions. This guide covers what changes, the order to learn the new skills in and a project for each stage. It is the outline of AcademAI’s Data Analyst to Data Scientist path.

What actually changes

An analyst mostly answers “what happened?”: revenue by region, churn last quarter, the funnel this month. A data scientist is asked two harder questions:

  • “Why did it happen, and how sure are we?” This takes statistical inference and, wherever possible, experiments.
  • “What will happen next?” This takes predictive models, and an honest way to measure how good they are.

The tools overlap a lot. The real difference is the standard of evidence. A dashboard can show that two numbers moved together; a data scientist has to say whether one caused the other, and with what uncertainty.

Before you start

You’re ready if you can build a pivot table without thinking about it and explain a chart to a non-technical colleague. You don’t need a maths degree. You do need comfort with algebra and a willingness to learn some probability. The path teaches the rest.

Module 1: SQL for analysis

Most data still lives in databases, and SQL remains the fastest way to get it into shape. Go beyond SELECT and GROUP BY to:

  • Joins you can reason about, including what happens to row counts when a key isn’t unique.
  • Common table expressions (CTEs), to break a long query into named steps.
  • Window functions, for running totals, rankings and period-over-period comparisons without self-joins. The PostgreSQL tutorial on window functions is a clear starting point.

Project: a monthly cohort-retention table built in a single SQL query with CTEs and window functions.

Start the lesson: Module 1: SQL for Analysis, with a sample database and every query’s output.

Module 2: Python and pandas

Spreadsheets stop scaling when data gets large or a process has to be repeated. Learn enough Python to load data, reshape it with pandas (filtering, grouping, merging and pivoting) and save the result. Wes McKinney’s Python for Data Analysis, written by the creator of pandas, is free to read online.

Project: reproduce one of your regular spreadsheet reports as a Python script that runs end to end from raw data.

Start the lesson: Module 2: Python and pandas, using the same data as Module 1.

Module 3: Visualisation that answers a question

Start every chart from the question it answers, then pick the simplest form that answers it. In practice that usually means a line for change over time, bars for comparing categories and a scatter plot for a relationship. Label it so it can be read without you in the room.

Project: a one-page brief with three charts, each with a title that states its finding.

Start the lesson: Module 3: Visualisation That Answers a Question, with charts built from the same data.

Module 4: Probability and statistical inference

This is the core of the change. Learn sampling variation, confidence intervals and hypothesis tests well enough to explain them in plain words. The most useful single habit: report an estimate with its uncertainty, not just a point value.

The free textbook An Introduction to Statistical Learning treats confidence intervals and hypothesis tests in the context of regression, and is the main text for Module 6. It has editions with labs in R and in Python.

Project: take a metric your team reports and add a confidence interval to it. Write one paragraph on what changes in how it should be read.

Module 5: Experiments and A/B testing

Experiments are the most reliable way to answer “did this change cause that?”. Learn how to choose one primary metric in advance, size a test, randomise properly and read the result.

Here is how to read a result correctly. The numbers are illustrative: 5,000 visitors saw each version, 200 converted on A (4.0%) and 245 on B (4.9%). Save this as ab_test.py; it uses only Python’s standard library.

from math import sqrt
from statistics import NormalDist

def two_proportion_test(conv_a: int, n_a: int, conv_b: int, n_b: int):
    """Difference in conversion rate (B - A), its 95% confidence interval and a two-sided p-value."""
    p_a, p_b = conv_a / n_a, conv_b / n_b
    diff = p_b - p_a
    # Standard error for the interval (unpooled) and for the test (pooled under "no difference").
    se = sqrt(p_a * (1 - p_a) / n_a + p_b * (1 - p_b) / n_b)
    p_pool = (conv_a + conv_b) / (n_a + n_b)
    se_pool = sqrt(p_pool * (1 - p_pool) * (1 / n_a + 1 / n_b))
    z = diff / se_pool
    p_value = 2 * (1 - NormalDist().cdf(abs(z)))
    return diff, (diff - 1.96 * se, diff + 1.96 * se), p_value

diff, (lo, hi), p = two_proportion_test(conv_a=200, n_a=5000, conv_b=245, n_b=5000)
print(f"difference: {diff * 100:+.2f} points, 95% CI {lo * 100:+.2f} to {hi * 100:+.2f}, p = {p:.3f}")

Running it prints:

difference: +0.90 points, 95% CI +0.09 to +1.71, p = 0.029

The p-value says the difference is unlikely to be chance alone. The interval tells you something more useful: the true lift is plausibly anywhere from under a tenth of a point to about 1.7 points. If a 0.1-point lift wouldn’t pay for the change, the test hasn’t settled the decision, even though it is “significant”. Reporting both is the habit that separates a data scientist’s readout from a dashboard’s.

Project: design an experiment for a real change your team is considering: the primary metric, the minimum effect worth detecting, the sample size you’d need, and how you’ll decide.

Module 6: Predictive modelling and evaluation

Learn regression and classification with scikit-learn, and above all how to evaluate a model honestly: a held-out test set, a metric that matches the business cost of errors, and a comparison with a baseline. scikit-learn’s guide to common pitfalls, especially data leakage, is worth reading before your first project.

This example trains a model on a dataset that ships with scikit-learn and compares it with a baseline that always predicts the most common class:

from sklearn.datasets import load_breast_cancer
from sklearn.dummy import DummyClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import balanced_accuracy_score
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler

X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, stratify=y, random_state=0)

for name, model in [
    ("baseline (most frequent class)", DummyClassifier(strategy="most_frequent")),
    ("logistic regression", make_pipeline(StandardScaler(), LogisticRegression(max_iter=1000))),
]:
    model.fit(X_train, y_train)
    pred = model.predict(X_test)
    print(f"{name:32} accuracy {(pred == y_test).mean():.3f}   balanced accuracy {balanced_accuracy_score(y_test, pred):.3f}")

When we ran it (scikit-learn 1.9.1):

baseline (most frequent class)   accuracy 0.629   balanced accuracy 0.500
logistic regression              accuracy 0.958   balanced accuracy 0.955

The baseline learns nothing and still scores 63% accuracy, because 63% of the test cases belong to one class. That is why accuracy on its own can mislead. Balanced accuracy, which averages performance across both classes, drops the baseline to 0.5, a coin flip, and makes the model’s real gain visible. The scaler sits inside the pipeline so that it is fitted on training data only, one of the leakage traps the scikit-learn guide describes.

Project: a model for a question from your own work, evaluated against a baseline on a held-out set, with a one-page note on which errors matter most and why.

How long it takes

Our estimate: at five to eight hours a week alongside a job, expect several months for all six modules. The projects take longer than the reading, and they are what you’ll show in interviews. If you already use SQL daily, start at Module 2.

What to do next

Start with Module 1 even if you know SQL: window functions and CTEs are where many analysts’ SQL stops. Then work through the modules in order, and keep every project in a public repository with a short README explaining the question, the method and the result.

Want each module’s lessons as they are published? Join the newsletter below. You’ll also hear first when guided cohorts open.

Prepared with AI assistance and reviewed by an editor before publication. Editorial & AI policy.