Data Science Project Ideas: Explore 20 practical Data Science project ideas designed to help students develop analytical, programming and machine learning skills. Each project guide introduces a real-world problem, suitable datasets, implementation steps, evaluation methods and portfolio guidance. Choose projects according to your experience level and focus on building reproducible solutions supported by clear documentation and measurable results.
How to choose and complete a project
These Data Science Project Ideas help students select practical problems that demonstrate their ability to collect, process, analyse and interpret data.
Choose a project based on the skill you want to demonstrate, not the most impressive algorithm. A beginner project should produce a trustworthy analysis; an intermediate project should define a target, baseline and leakage-safe evaluation; an advanced project should add reproducibility, monitoring, uncertainty or operational constraints. Download data from the linked source, read its license and documentation, keep raw files out of Git when required, and record the exact version or retrieval date.
- Question: write one decision-oriented problem statement and define the unit of analysis.
- Data contract: record source, license, schema, target, time fields, missingness and known limitations.
- Baseline: use a mean/median, popularity, seasonal-naive, rule or majority baseline before complex models.
- Evaluation: choose a split that matches deployment, fit transforms only on training data, and report metrics with error analysis.
- Communication: publish assumptions, negative results, reproducible commands, limitations and an honest resume bullet.
Beginner projects
Beginner projects focus on measurement, cleaning, visualisation and a defensible narrative. Complete at least two before introducing complex models.
1. Exploratory Data Analysis of a Real-World Dataset (Beginner)
Problem and context: Understand which demographic and employment variables are associated with income bands. A public census-style dataset supports practice in data dictionaries, missing values, distributions and cautious subgroup comparisons.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Adult Census Income. Features include age, education, occupation, hours and relationship; target is the income band. Treat sensitive attributes as analysis variables, not automatic prediction inputs. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, Matplotlib, Seaborn, Jupyter.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: descriptive tables and charts; no predictive accuracy claim. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Compare income distributions by education and occupation without implying causation.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Check sampling, missing values, category definitions and fairness concerns; do not infer an individual’s worth or eligibility from the data. Ethics and bias: Add a reproducible report, uncertainty intervals, subgroup analysis and a data-quality dashboard.
Improvements, README and career evidence
Future scope: What is the unit of analysis? Which chart best reveals a skewed variable? How would you avoid interpreting correlation as causation? README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Document the source, license, cleaning choices, questions, findings and limitations. Resume: “Analysed a public census-income dataset, documenting distributions, missingness and subgroup comparisons without claiming causal effects.” Interview questions: Add a statistical model only after the descriptive report and compare calibration by subgroup. Advanced extension: What is the unit of analysis? Which chart best reveals a skewed variable? How would you avoid interpreting correlation as causation?
2. Student Academic Performance Analysis (Beginner)
Problem and context: Identify factors associated with student grades and communicate actionable but non-causal findings. Schools and educators can use analysis to understand attendance, study habits and support needs, while protecting student privacy.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Student Performance. Features include study time, absences, family and school context; target can be final grade G3 or a clearly defined pass band. Avoid using post-outcome variables. Confirm the source terms, version and licence before redistribution.
Tools: pandas, Seaborn, SciPy, statsmodels.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: mean/median grades, attendance distributions, group comparisons and confidence intervals. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Compare grade distributions by study time and absences; report group sizes and uncertainty.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Consent, anonymisation, socioeconomic proxy bias and the risk of labelling students are central. Do not deploy a high-stakes predictor from this exercise. Ethics and bias: Use longitudinal data, hierarchical models, missingness analysis and a privacy review.
Improvements, README and career evidence
Future scope: Why is a group difference not proof that changing study time causes grades? How would you handle ordinal survey fields? README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Include a data dictionary and a limitations section. Resume: “Built a reproducible student-performance analysis with distribution checks, group comparisons and privacy-aware interpretation.” Interview questions: Create a preregistered analysis plan and test robustness to alternative grade definitions. Advanced extension: Why is a group difference not proof that changing study time causes grades? How would you handle ordinal survey fields?
3. Retail Sales and Customer Behaviour Analysis (Beginner)
Problem and context: Describe revenue, repeat purchasing, product demand and customer behaviour from transaction data. Retail teams need reliable measures of sales and customer activity before building campaigns or forecasts.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Online Retail. InvoiceNo, StockCode, Quantity, InvoiceDate, UnitPrice, CustomerID and Country; derive revenue=Quantity*UnitPrice and customer-level recency/frequency/monetary features. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, Matplotlib, Seaborn.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: revenue totals, order counts, retention cohorts and RFM summaries. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot monthly revenue, cancellation rates, country mix, basket size and Pareto concentration.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Handle returns and cancellations explicitly; do not treat transaction rows as independent customers or leak future transactions into historical cohorts. Ethics and bias: Add cohort retention, seasonality decomposition, customer lifetime value with uncertainty and a dashboard.
Improvements, README and career evidence
Future scope: What is the transaction grain? How do returns change revenue? Why must cohort dates be fixed? README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Resume: “Analysed online retail transactions by cleaning returns, deriving revenue and building RFM/cohort summaries.” Interview questions: Build a reproducible cohort pipeline and compare segment stability across time windows. Advanced extension: What is the transaction grain? How do returns change revenue? Why must cohort dates be fixed?
4. Customer Segmentation Using Clustering (Beginner)
Problem and context: Create interpretable customer segments from behaviour rather than arbitrary labels. Segments can help prioritise communication, but they are descriptions for a decision and not intrinsic customer identities.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Online Retail. Aggregate transactions by customer into recency, frequency, monetary value and basket features; there is no target variable. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, StandardScaler, KMeans, DBSCAN, PCA.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: silhouette as one diagnostic, cluster size, stability and business actionability. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot scaled feature distributions, PCA scatterplots and segment profiles with counts.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Scale features, treat extreme spend carefully, remove cancelled invoices and prevent future transactions entering an earlier segment. Ethics and bias: Compare K-means, hierarchical clustering and DBSCAN; bootstrap cluster stability and test segment actions.
Improvements, README and career evidence
Future scope: Why does scaling change K-means? How would you choose k? Are clusters stable under a new month? README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Resume: “Built customer segments from leakage-controlled RFM features, comparing clustering stability and profile interpretability.” Interview questions: Use a calendar-based segment refresh and monitor drift in segment membership. Advanced extension: Why does scaling change K-means? How would you choose k? Are clusters stable under a new month?
5. Movie or Product Recommendation System (Beginner)
Problem and context: Recommend items a user may value while evaluating ranking quality without exposing future interactions. Recommendation affects discovery, revenue and user experience; popularity alone can reinforce narrow exposure.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: GroupLens MovieLens datasets. UserId, MovieId, rating and timestamp; use ratings as interactions and define a time-aware held-out interaction target. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, scikit-learn, implicit or Surprise as optional external libraries.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: RMSE for rating prediction; precision@k, recall@k and NDCG for ranking. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot rating distributions, item popularity, user activity and cold-start coverage.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Split by time per user, avoid recommending items already seen in evaluation, and handle sparse users/items. Ethics and bias: Start with popularity and item-item cosine similarity; compare matrix factorisation and a hybrid content model.
Improvements, README and career evidence
Future scope: Which baseline must be beaten? How do you evaluate a new user? Why can offline ranking differ from user satisfaction? README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Resume: “Built a time-aware recommender baseline with popularity and similarity comparisons, reporting ranking metrics and cold-start limitations.” Interview questions: Add content features, diversity/novelty constraints and an offline-to-online experiment plan. Advanced extension: Which baseline must be beaten? How do you evaluate a new user? Why can offline ranking differ from user satisfaction?
Intermediate projects
6. House Price Prediction (Intermediate)
Problem and context: Predict sale price from property attributes and explain errors in currency units. Valuation supports planning and pricing, but historical prices encode location and socioeconomic inequities.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: Ames Housing via OpenML. Features include area, quality, rooms, year and neighbourhood; target is sale price. Use a time or realistic holdout if dates permit. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, ColumnTransformer, Ridge, HistGradientBoosting.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: MAE, RMSE and log-error; compare with median/mean baseline. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot target skew, price by quality/neighbourhood, residuals and predicted-vs-actual values.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Impute and encode inside a pipeline, log-transform only after checking interpretation, and prevent target-derived fields. Ethics and bias: Baseline median, regularised linear model, Random Forest and gradient boosting; tune inside CV.
Improvements, README and career evidence
Future scope: Use MAE for typical currency error and RMSE to penalise expensive misses; inspect high-value residuals. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: No claimed accuracy until you run the specified split. Check spatial/time shift and fairness by neighbourhood. Interview questions: Resume: “Built a leakage-controlled house-price pipeline and compared regularised linear and tree-based models using MAE/RMSE.” Advanced extension: Use MAE for typical currency error and RMSE to penalise expensive misses; inspect high-value residuals.
7. Customer Churn Prediction (Intermediate)
Problem and context: Estimate which customers may churn within a defined future window so retention teams can prioritise outreach. A churn score is useful only if the intervention is affordable and improves outcomes; it should not become an automatic penalty.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: IBM Telco Customer Churn sample. Customer tenure, contract, charges, services and demographics; target is Churn. Define an observation date and remove post-churn fields. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, imputation, OneHotEncoder, LogisticRegression, HistGradientBoosting.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: PR-AUC, recall at capacity, precision, calibration and cost-weighted threshold. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot churn rate by contract, tenure, charges and missingness; inspect confusion matrix by segment.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Use stratified or temporal split, class weights or training-only resampling, and no target leakage through cancellation fields. Ethics and bias: Majority baseline, logistic regression for calibrated explanation, then tree boosting.
Improvements, README and career evidence
Future scope: Accuracy is inadequate if churn is rare; choose threshold from outreach capacity and false-negative cost. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Assess subgroup calibration and avoid using protected attributes as an unexamined proxy. Interview questions: Resume: “Built a churn classification workflow with leakage checks, threshold analysis and segment-level error review.” Advanced extension: Accuracy is inadequate if churn is rare; choose threshold from outreach capacity and false-negative cost.
8. Credit Risk Classification (Intermediate)
Problem and context: Classify credit risk while making uncertainty, fairness and decision costs explicit. Credit decisions affect access to finance; a high score is not a license for automated denial.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI South German Credit. Demographic, account and loan attributes; target is credit risk. Read the dataset documentation carefully before interpreting labels. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, LogisticRegression, RandomForest, calibration tools.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: recall for bad-risk cases, precision, ROC-AUC, PR-AUC, calibration and cost matrix. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot class balance, risk by loan purpose and calibration curves; audit missingness and subgroup rates.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Avoid target proxies unavailable at application time, stratify split, and use probability calibration before thresholding. Ethics and bias: Scorecard-style logistic regression baseline, balanced tree ensemble and calibrated comparison.
Improvements, README and career evidence
Future scope: Choose thresholds from asymmetric costs; report uncertainty and reject-inference limitations. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Fairness, historical discrimination, privacy and explainability require governance and human review. Interview questions: Resume: “Developed a risk-classification study with calibrated probabilities, cost-sensitive evaluation and fairness limitations.” Advanced extension: Choose thresholds from asymmetric costs; report uncertainty and reject-inference limitations.
9. Fraud Detection (Intermediate)
Problem and context: Flag suspicious transactions for investigation while controlling false alerts and adapting to changing fraud patterns. Fraud is rare, costly and adversarial; a model is an alert-ranking tool, not proof of wrongdoing.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: ULB Credit Card Fraud Detection. Transaction time, amount and anonymised PCA features; target is Class. Preserve temporal order and investigate class prevalence. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, imbalanced-learn as optional external library, precision-recall tools.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: PR-AUC, precision at alert capacity, recall, expected cost and calibration. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot amount/time distributions, fraud prevalence and precision-recall curves; inspect false positives.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Use chronological split, training-only weighting/resampling, avoid SMOTE on validation/test, and protect sensitive data. Ethics and bias: Rule or anomaly baseline, class-weighted logistic regression, tree boosting and Isolation Forest comparison.
Improvements, README and career evidence
Future scope: ROC-AUC can mislead under extreme imbalance; evaluate the number of alerts investigators can review. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Do not publish identifiable transaction details; monitor concept drift and feedback delays. Interview questions: Resume: “Built a time-aware fraud-alerting experiment focused on precision-recall trade-offs and operational alert capacity.” Advanced extension: ROC-AUC can mislead under extreme imbalance; evaluate the number of alerts investigators can review.
10. Employee Attrition Prediction (Intermediate)
Problem and context: Study whether available employment variables predict attrition risk, with careful treatment of employee privacy and fairness. A score may support workload and retention conversations, but should never be used to punish or surveil employees.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: IBM HR Analytics Attrition. Age, role, satisfaction, income, overtime and tenure; target is Attrition. Define the decision and prediction date. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, LogisticRegression, RandomForest, Fairlearn optional.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: recall/precision, PR-AUC, calibration, subgroup performance and cost of interventions. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot attrition by role, overtime, tenure and satisfaction; distinguish association from causal drivers.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Remove post-exit fields, handle class imbalance, keep employee identifiers out and use grouped/time splits where appropriate. Ethics and bias: Transparent logistic regression, balanced random forest and calibrated comparison.
Improvements, README and career evidence
Future scope: Report threshold and intervention capacity, not just accuracy; validate whether retention action helps. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Employment and demographic attributes raise discrimination and privacy risks; use governance and human review. Interview questions: Resume: “Analysed an HR attrition dataset with privacy-aware preprocessing, calibrated classification and subgroup error checks.” Advanced extension: Report threshold and intervention capacity, not just accuracy; validate whether retention action helps.
11. Sentiment Analysis of Product Reviews (Intermediate)
Problem and context: Classify review text sentiment and understand the language patterns behind errors. Support teams need triage, but sarcasm, domain vocabulary and language variation make sentiment uncertain.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Sentiment Labelled Sentences. Sentence text and binary sentiment label; preserve the original split and document preprocessing. Confirm the source terms, version and licence before redistribution.
Tools: Python, scikit-learn, TF-IDF, LogisticRegression, metrics; spaCy optional.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: macro F1, precision/recall by class, confusion matrix and calibration. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Inspect class balance, review length, common n-grams and errors by negation or sarcasm.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Avoid fitting vocabulary on the test set, remove duplicate texts across splits and check language/domain mismatch. Ethics and bias: Majority baseline, TF-IDF n-grams with logistic regression, then linear SVM.
Improvements, README and career evidence
Future scope: Macro F1 is useful for balanced class attention; inspect false positives and false negatives qualitatively. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Text may contain personal data and cultural bias; do not infer a person’s character from sentiment. Interview questions: Resume: “Built a reproducible TF-IDF sentiment classifier with macro-F1 evaluation and qualitative error analysis.” Advanced extension: Macro F1 is useful for balanced class attention; inspect false positives and false negatives qualitatively.
12. Demand Forecasting for Retail Products (Intermediate)
Problem and context: Forecast product demand at a defined store-item horizon to support replenishment. Forecasts affect stockouts, waste and cash; future promotions and calendar effects must be represented correctly.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: M5 Forecasting dataset. Daily item-store sales with calendar, price and event features; target is future demand. Use rolling time splits. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, scikit-learn, statsmodels; LightGBM optional external library.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: MAE, RMSE, weighted error and prediction interval coverage. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot trend, weekly seasonality, intermittent demand, promotions and item-store sparsity.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Sort by time, create lag/rolling features using past data only, and never randomly shuffle future observations into training. Ethics and bias: Naive last-value and seasonal-naive baselines, regularised lag model, gradient boosting.
Improvements, README and career evidence
Future scope: Choose weighted metrics aligned with inventory cost; evaluate by horizon and product group. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Promotion leakage, stockout-censored demand and hierarchy reconciliation are major limitations. Interview questions: Resume: “Built a time-aware retail-demand baseline with lag features, seasonal comparisons and horizon-level error analysis.” Advanced extension: Choose weighted metrics aligned with inventory cost; evaluate by horizon and product group.
13. Loan Approval Prediction (Intermediate)
Problem and context: Build an approval-risk analysis that makes the decision rule and fairness implications visible. Lending decisions require consistency, explainability, privacy and an appeal path.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Credit Approval. Mixed anonymised categorical/numeric attributes and class target; consult the UCI description because column meanings are intentionally obscured. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, ColumnTransformer, LogisticRegression, calibrated trees.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: balanced accuracy, precision/recall, ROC-AUC, calibration and subgroup checks where attributes exist. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Inspect missingness patterns, class balance and threshold trade-offs; avoid inventing feature meanings.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Encode unknown categories, impute within folds and preserve an audit trail of decisions. Ethics and bias: Regularised logistic baseline followed by calibrated tree models; do not optimise a single accuracy score.
Improvements, README and career evidence
Future scope: Select a threshold based on costs and review capacity; report confidence and abstention options. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Opaque attributes and historical decisions limit fairness conclusions; never deploy without domain validation. Interview questions: Resume: “Built an auditable credit-approval modelling study with mixed-type preprocessing, calibration and threshold analysis.” Advanced extension: Select a threshold based on costs and review capacity; report confidence and abstention options.
14. Marketing Campaign Response Prediction (Intermediate)
Problem and context: Predict campaign response to allocate contact effort without turning a propensity score into unwanted targeting. Marketing teams need incremental value, not just people who were already likely to respond.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Bank Marketing. Customer, contact and campaign attributes; target is subscription response. Exclude features that occur after the contact decision. Confirm the source terms, version and licence before redistribution.
Tools: pandas, scikit-learn, logistic regression, gradient boosting, calibration.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: PR-AUC, lift/gain, precision at budget, calibration and incremental experiment metrics. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot response by contact type, duration and campaign history; flag post-treatment variables such as call duration.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Remove leakage, use time-aware validation, encode categories and distinguish propensity from treatment effect. Ethics and bias: Response-rate baseline, logistic model and boosting; evaluate ranking at a fixed contact budget.
Improvements, README and career evidence
Future scope: A/B or uplift experiment is needed to show incremental impact; a high propensity list may not be the best treatment list. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Consent, contact fatigue, age bias and privacy require explicit constraints. Interview questions: Resume: “Built a campaign-response ranking model with leakage audit, budget-based precision and an experiment plan.” Advanced extension: A/B or uplift experiment is needed to show incremental impact; a high propensity list may not be the best treatment list.
15. Time-Series Sales Forecasting (Intermediate)
Problem and context: Forecast weekly sales with store, department, holiday and economic context while preserving time order. Forecasts support staffing and inventory, but promotions and closures create non-stationary behaviour.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: Walmart Store Sales via Kaggle. Store, Dept, Date, weekly sales, holiday flag and external indicators; target is future weekly sales. Confirm the source terms, version and licence before redistribution.
Tools: pandas, statsmodels, scikit-learn, plotting and calendar features.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: MAE/RMSE, weighted error, seasonal-naive comparison and backtest stability. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot each hierarchy, weekly seasonality, holidays, missing weeks and outliers.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Use rolling-origin evaluation, lag features from past only and separate known-future covariates. Ethics and bias: Seasonal naive, linear lag model, Random Forest/boosting and ARIMA for suitable series.
Improvements, README and career evidence
Future scope: Report by store/department and horizon; never use random train_test_split for forecasting. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Competition data may not represent a current retailer; forecast uncertainty and structural breaks matter. Interview questions: Resume: “Built a rolling-origin sales forecast with seasonal-naive baseline, lag features and hierarchy-aware error analysis.” Advanced extension: Report by store/department and horizon; never use random train_test_split for forecasting.
Advanced projects
16. Predictive Maintenance (Advanced)
Problem and context: Predict remaining useful life or failure risk from sensor histories to schedule maintenance before breakdown. Unexpected failure can be expensive and unsafe; false alarms also cause unnecessary maintenance.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: NASA C-MAPSS turbofan degradation. Engine/unit cycles, operating settings and sensor readings; target can be remaining useful life derived from failure trajectories. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, scikit-learn, XGBoost optional, survival/time-series tools.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: MAE for RUL, early-warning recall, lead time and cost-weighted event metrics. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot sensor trajectories, unit-level degradation and missing/constant sensors; split by engine unit.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Create lag/window features within each unit, avoid future cycles, handle censored units and scale sensors carefully. Ethics and bias: Naive age baseline, regularised regression, Random Forest/boosting and sequence model as an extension.
Improvements, README and career evidence
Future scope: Evaluate by held-out units and operational lead-time cost, not random rows. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Sensors and failures may differ from deployment; safety claims require domain validation and conservative thresholds. Interview questions: Resume: “Built a unit-level predictive-maintenance workflow with leakage-controlled rolling features and lead-time evaluation.” Advanced extension: Evaluate by held-out units and operational lead-time cost, not random rows.
17. Anomaly Detection in Transactions (Advanced)
Problem and context: Detect unusual transaction-like patterns when labelled anomalies are scarce and timing matters. Anomaly alerts require a definition of unusual behaviour, review capacity and a response policy.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: Numenta Anomaly Benchmark. Timestamped streams with anomaly annotations in benchmark files; target labels are evaluation references, not always available at training time. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, scikit-learn IsolationForest, seasonal baselines.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: precision/recall with event windows, detection delay, alert rate and false alerts per day. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot series, rolling baselines, seasonal residuals and alert timing.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Sort by time, fit on a clean reference period, avoid using future statistics and deduplicate alerts into incidents. Ethics and bias: Seasonal residual threshold, Isolation Forest and robust rolling quantiles.
Improvements, README and career evidence
Future scope: Pointwise accuracy can penalise useful early alerts; use event-based scoring and capacity constraints. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Anomaly is context-dependent; privacy and false accusations require human review. Interview questions: Resume: “Designed an event-based anomaly-detection benchmark with alert-rate, delay and false-alert analysis.” Advanced extension: Pointwise accuracy can penalise useful early alerts; use event-based scoring and capacity constraints.
18. End-to-End Data Science Pipeline (Advanced)
Problem and context: Build a reproducible pipeline from raw download and validation through features, model training, reporting and monitoring. A production-like project demonstrates engineering discipline rather than only a notebook score.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: NYC TLC Trip Record Data. Trip timestamps, locations, distance, fares and payment fields; define a target such as fare amount or duration using a documented subset. Confirm the source terms, version and licence before redistribution.
Tools: Python, pandas, scikit-learn, Great Expectations optional, pytest, MLflow optional, Docker optional.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: data-quality checks, model metric, pipeline reproducibility, runtime and drift signals. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Profile volume, nulls, outliers, geographic/time distributions and schema changes.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Validate schema, quarantine bad rows, split by time, version raw/processed data and keep secrets out of Git. Ethics and bias: Baseline plus a pipeline estimator; run tests for feature logic and prediction schema.
Improvements, README and career evidence
Future scope: Use a metric appropriate to the target and report results only after an actual run on the chosen extract. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Location privacy, sampling, surge pricing and concept drift need careful treatment. Interview questions: Resume: “Implemented a reproducible data-to-model pipeline with validation checks, tests, versioned features and monitoring hooks.” Advanced extension: Use a metric appropriate to the target and report results only after an actual run on the chosen extract.
19. News or Document Classification (Advanced)
Problem and context: Classify news documents into topical categories while auditing language, source and temporal generalisation. Document routing can reduce manual triage, but errors can amplify source or topic bias.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: AG News by Hugging Face. Text and four-category label; split by time/source if metadata permits and remove duplicates. Confirm the source terms, version and licence before redistribution.
Tools: Python, scikit-learn TF-IDF, LinearSVC, transformers optional external library.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: macro F1, per-class recall, confusion matrix, calibration and drift. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Inspect class balance, document length, vocabulary, duplicate headlines and misclassified examples.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Fit vocabulary on training only, remove leakage from source labels and test on later documents. Ethics and bias: TF-IDF linear baseline, character n-grams, then a transformer only if data and compute justify it.
Improvements, README and career evidence
Future scope: Macro metrics expose minority-topic failure; assess abstention for uncertain documents. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: News labels and language reflect annotation and source bias; do not infer truthfulness from topic classification. Interview questions: Resume: “Built a document-classification baseline with leakage-safe TF-IDF, macro-F1 and temporal error analysis.” Advanced extension: Macro metrics expose minority-topic failure; assess abstention for uncertain documents.
20. Multivariate Time-Series Forecasting (Advanced)
Problem and context: Forecast appliance energy use using multiple environmental and temporal signals. Energy forecasts support efficiency and demand planning, but sensor drift and occupancy patterns change.
Why it matters and objectives: Define the decision, identify who benefits, and write two measurable objectives without promising a result. For this project, the objectives are to build a reproducible analysis, establish a transparent baseline, quantify uncertainty or error, and document limitations.
Dataset and target: UCI Appliances Energy Prediction. Timestamp, appliance energy target, temperatures, humidity and weather variables; target is future appliance energy at a stated horizon. Confirm the source terms, version and licence before redistribution.
Tools: pandas, NumPy, statsmodels, scikit-learn, LightGBM optional.
Expected deliverables and folder structure
project-name/
├── README.md
├── data/README.md
├── notebooks/01_eda.ipynb
├── src/data.py
├── src/features.py
├── src/train.py
├── tests/test_features.py
├── reports/figures/
├── requirements.txt
└── .gitignore
Deliver a data dictionary, source citation, cleaned-data procedure, notebook or report, reusable source code, tests for important transformations, figures, evaluation table and a limitations/ethics note. Never commit credentials or restricted raw data.
Step-by-step methodology
- Download the documented source and record retrieval date, licence and checksum.
- Load data with explicit types; inspect shape, head, dtypes, unique keys, duplicate rows and missingness.
- Define row grain and target before removing columns. Treat missing values according to their meaning; do not fill all values with zero.
- Investigate duplicates, impossible values and outliers. Correct source errors, cap or transform only with a documented reason, and preserve an audit count.
- Create EDA tables and visualisations: distributions reveal skew, boxplots reveal outliers, time plots reveal trend/seasonality, scatterplots reveal relationships, and group plots reveal heterogeneity.
- Engineer only features available at prediction time. For time data, create lags and rolling features using past rows only; for text, fit vocabulary on training data.
- Split data to match deployment. Use chronological, grouped or stratified splits where appropriate. Put imputation, encoding and scaling inside a pipeline.
- Build a simple baseline. Then choose algorithms from the target, scale, sample size, interpretability, latency and error costs.
- Train with a reproducible seed and cross-validation appropriate to the data. Log parameters, versions and the exact dataset.
- Evaluate with metrics suited to the decision, inspect errors by subgroup/time/value range, and do not claim a score until the run is recorded.
Baseline, algorithms and evaluation
Baseline: MAE/RMSE by horizon, rolling backtest and interval coverage. Suitable approaches: choose the simplest model that answers the question, then compare one stronger alternative; document why each is suitable rather than collecting algorithms. Metrics: Plot seasonality, cross-correlations, lag relationships, missing readings and sensor drift.. Report the split, sample counts, uncertainty or variation across folds, and representative errors. For predictive projects, use this minimal leakage-safe pattern:
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2, random_state=42
)
model = Pipeline([
("impute", SimpleImputer(strategy="most_frequent")),
("estimator", LogisticRegression(max_iter=1000))
])
model.fit(X_train, y_train)
predictions = model.predict(X_test)
This example is a template, not a result: adapt the estimator and preprocessing to the project, and evaluate predictions with a metric that matches the target. For regression replace the split stratification and estimator; for time series use a chronological split; for clustering fit without a target and report stability.
Interpretation, limitations and ethics
Error analysis: inspect false positives/negatives, large residuals, rare groups, missingness patterns and temporal slices. Interpretation: distinguish association from causation and state whether the result describes the sample or is intended to generalise. Limitations: Create lagged features using past values only, preserve chronological order and avoid contemporaneous variables unavailable at forecast time. Ethics and bias: Seasonal naive and autoregression baseline, regularised lag regression, boosting or VAR where assumptions fit.
Improvements, README and career evidence
Future scope: Evaluate rolling-origin by horizon and compare against a no-change baseline. README sections should be: problem, context, data source/licence, setup, schema, methodology, baseline, evaluation, error analysis, limitations, ethics, reproducibility command, screenshots and citation. Resume bullet: Occupancy and appliance data may reveal private behaviour; minimise fields and secure outputs. Interview questions: Resume: “Built a multivariate energy-forecasting study with rolling backtests, lag features and horizon-specific error analysis.” Advanced extension: Evaluate rolling-origin by horizon and compare against a no-change baseline.
Build an original, balanced portfolio
The best Data Science Project Ideas are those you can explain clearly, reproduce independently and support with documented results.
How to avoid copied tutorial projects
Do not clone a notebook and change the chart colours. Change the question, define a new evaluation rule, use a time or group split, add a baseline, reproduce a result, investigate a failure, or compare the decision impact. Explain what you tried that did not work. Originality is visible in the reasoning, not in an exotic algorithm.
How to select datasets
Prefer a documented source with a clear licence, stable download, meaningful fields, enough observations for the question, and a known data-generating process. Check duplicates, target leakage, missingness, unit definitions, temporal coverage and whether the data can legally be redistributed. Government portals, UCI, GroupLens, NASA, NYC TLC and established benchmark maintainers are useful starting points.
How to build a balanced 3–5 project portfolio
- One exploratory analysis demonstrating statistics and communication.
- One supervised project demonstrating a leakage-safe pipeline and error analysis.
- One time-series or experiment project demonstrating design and validation.
- One unsupervised or recommendation project demonstrating product thinking.
- Optionally one production-style pipeline demonstrating testing, versioning and monitoring.
Use different data shapes and evaluation methods. Three careful projects with clear limitations are stronger than ten copied notebooks.
Common mistakes
- Starting with a model before defining the question and target.
- Using random splits for future forecasting or repeated users.
- Reporting accuracy without a baseline, class balance or error analysis.
- Fitting encoders, scalers or imputers before the split.
- Removing outliers or rows without recording how many and why.
- Claiming causation, business impact or accuracy that was not measured.
- Publishing private data, credentials, unverifiable sources or copied text.
- Writing a notebook with no setup instructions or reusable code.
Project completion checklist
- Question, stakeholder, unit and target are explicit.
- Dataset source, licence, version and retrieval date are recorded.
- Raw data is preserved or reproducibly downloaded.
- Schema, missingness, duplicates and outliers are documented.
- EDA answers questions with labelled plots.
- Features are available at prediction time and leakage is tested.
- Baseline and suitable metrics are reported.
- Split and cross-validation match deployment.
- Errors, subgroups, uncertainty and limitations are discussed.
- Code, environment, tests and README run from a clean checkout.
- Resume claims describe work performed without inventing results.
Related learning: use the Statistics course, Machine Learning Fundamentals course, Python for Data Science guide and Data Science roadmap.