A guide to the data science life cycle
Quick answer
The data science life cycle is the end-to-end process of solving a problem with data, in six stages: define the problem, collect and clean the data, explore and analyse it, build and train a model, evaluate it, and deploy and monitor the result. It is iterative rather than linear — evaluation usually sends you back to earlier stages, and monitoring in production often reopens the whole loop as data drifts. In practice, data collection and cleaning consume the majority of the effort, not modelling.
Short answer: The data science life cycle runs a problem end-to-end in six stages — define, collect & clean, explore, model, evaluate, deploy & monitor. It's iterative, not linear: evaluation loops you back to earlier stages, and monitoring in production reopens the whole cycle as data drifts. In real projects, collecting and cleaning data — not modelling — eats most of the time.
The data science life cycle is the framework for taking a problem from a vague business question to a monitored solution in production. Each stage has a concrete deliverable, and the arrows between them point both ways.
1. Define the problem
Translate a business goal into a question data can answer, and — critically — decide the success metric up front. "Reduce churn" becomes "predict which customers will cancel next month, measured by precision@k on the retention team's call capacity."
Deliverable: a problem statement, a target variable, and an evaluation metric everyone agrees on.
2. Collect and clean the data
Gather from databases, APIs, logs, or files, then make it usable: handle missing values, fix types, deduplicate, and reconcile sources. This stage is famously 60–80% of the work — plan for it.
Deliverable: a clean, documented dataset.
import pandas as pd
df = pd.read_csv("customers.csv")
df = df.drop_duplicates()
df["signup_date"] = pd.to_datetime(df["signup_date"], errors="coerce")
df = df.dropna(subset=["target"]) # can't train on rows with no label3. Explore and analyse (EDA)
Understand the data before modelling: distributions, outliers, correlations, and class balance. This is where you catch leakage and decide which features are worth engineering.
Deliverable: insights, visualisations, and a feature shortlist.
4. Build and train a model
Split the data, pick a baseline first (a simple model or even a heuristic), then iterate. Feature engineering usually moves the needle more than swapping algorithms.
Deliverable: a trained model plus a documented baseline to beat.
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42, stratify=y
)
model = RandomForestClassifier().fit(X_train, y_train)5. Evaluate and interpret
Measure against the metric you chose in stage 1, on held-out data, and compare to the baseline. Weak results send you back to stage 2, 3, or 4 — that loop is the point of the cycle, not a failure.
Deliverable: an honest performance report and error analysis.
6. Deploy and monitor
Ship the model behind an API or batch job, then watch it: input drift, prediction drift, and metric decay all mean the world has moved and the model needs retraining. Monitoring is part of the cycle, not the end of it.
Deliverable: a served model with monitoring and a retraining trigger.
Why it's iterative
Real projects rarely go 1→6 once. Evaluation reveals a data problem; monitoring reveals drift; a new stakeholder question reframes the whole thing. Treat the life cycle as a loop, and design each stage so returning to it is cheap.
Related guides
Sources
Key takeaways
- •The data science life cycle has six stages: define the problem, collect and clean data, explore and analyse, build and train a model, evaluate, and deploy and monitor.
- •It is iterative, not linear - evaluation often sends you back to earlier stages.
- •A clearly defined problem keeps the project aligned with business goals.
- •Deployment and monitoring are part of the cycle, not the end of it.
Frequently asked questions
What are the stages of the data science life cycle?
Define the problem, collect and clean the data, explore and analyse it, build and train a model, evaluate it, and deploy and monitor the result.
Is the data science life cycle linear?
No. It is iterative - evaluation and monitoring commonly loop you back to earlier stages.
Software Engineering Leader & Technical Author · Updated September 9, 2026