Services
About me
Frequently asked questions
What is time series forecasting in machine learning?
Time series forecasting in machine learning is the task of training models on data collected over time — daily sales, monthly revenue, energy demand, website traffic — to predict future values. Unlike standard prediction problems, the order of observations matters: the data usually contains trends, seasonality, and autocorrelation, so future values depend on past ones. Approaches range from classical statistical methods like ARIMA and exponential smoothing to gradient boosting and deep learning, and the right choice depends on data volume, seasonal strength, and how far ahead you need to forecast.
How to do time series analysis step by step?
Here is how to do time series analysis in a structured way: plot the series first and look for trend, seasonality, and outliers; decompose it into trend, seasonal, and residual components; test for stationarity (ADF or KPSS) and apply differencing or transformations if needed; study autocorrelation with ACF and PACF plots; then fit simple baselines like a naive or seasonal-naive forecast before anything complex. Always validate on a time-ordered hold-out set — never random splits — using metrics such as MAE, MAPE, or MASE. Skipping this diagnostic stage is the most common reason forecasts fail in production.
What are the most widely used time series forecasting methods?
The main families are statistical methods such as ARIMA/SARIMA, exponential smoothing (ETS), and decomposition-based approaches; machine learning methods where XGBoost or LightGBM are trained on lag features, rolling statistics, and calendar variables; and deep learning architectures like LSTM, N-BEATS, and Temporal Fusion Transformers. Classical methods remain very strong for clean, univariate, seasonal data, while modern time series forecasting models tend to win when you have many related series, external covariates, or large datasets. Whatever you choose, benchmark against a seasonal-naive baseline first — many advanced models fail to beat it.
How to learn time series forecasting from scratch?
If you are working out how to learn time series forecasting, build the skill in layers. Start with statistics fundamentals — correlation, regression, distributions — then master the core concepts: stationarity, autocorrelation, seasonality, and time-based validation. Practise on classic datasets such as retail sales, air passenger traffic, or electricity demand, and study the standard textbook "Forecasting: Principles and Practice." Implement simple baselines before touching deep learning, enter a forecasting competition like M5 for honest feedback, and focus on how forecasting decisions create business value — that is what separates practitioners from tutorial-followers.
How do I get started with time series forecasting in Python?
To start time series forecasting in Python, use pandas for date handling and resampling, statsmodels for classical models (ARIMA, ETS, decomposition), and scikit-learn for regression baselines built on lag features. Once comfortable, explore Prophet for quick seasonal forecasts and libraries like Darts or sktime for a unified interface across many models. The most important habit is proper validation: use rolling-origin (time-based) cross-validation instead of random splits, inspect residuals, and compare every model against a simple baseline before trusting it.
How to do time series forecasting in Excel?
Here is how to do time series forecasting in Excel: use the built-in Forecast Sheet, which applies exponential smoothing (ETS) to project your series with confidence intervals, or the FORECAST.ETS function family for more control over seasonality and confidence levels. This works well for simple, stable, seasonal series like monthly sales. The limitations appear quickly with multiple seasonalities, external drivers like promotions, or hundreds of related series — if your Excel forecasts keep missing demand shifts, the issue is usually the method, and that is the point where teams move to Python or R.
What are some good time series forecasting projects for a portfolio?
The best time series forecasting projects use real, messy data: retail demand forecasting with promotion calendars (the M5/Walmart dataset is ideal), energy load forecasting with weather covariates, taxi or flight demand by hour and zone, or hierarchical store-level sales. A strong project shows the full cycle — cleaning, feature engineering with lags and calendar variables, baseline models, an advanced model, and honest backtesting with MAPE, WAPE, or MASE. Quantify the outcome, for example "reduced forecast error by 18% versus seasonal naive" — that is what hiring managers actually look for.
What time series forecasting interview questions should I expect in a data science interview?
The most common time series forecasting interview questions are: What is stationarity and why does it matter? How do you detect and handle seasonality? When would you choose ARIMA over a machine learning approach? How do you cross-validate time series data correctly? Why can MAPE be misleading, and what would you use instead? How would you forecast thousands of related store-level series at once? And how do you handle missing timestamps or sudden regime changes? Interviewers are really testing whether you understand temporal data leakage and honest evaluation — the areas where most real-world forecasting goes wrong.
What is conformal prediction in machine learning?
Conformal prediction is a framework for uncertainty quantification that converts any model's output into prediction sets or intervals with a guaranteed coverage rate — for example, "the true value falls inside this interval 90% of the time." Instead of a single point prediction, you get a statistically valid measure of confidence, built by comparing new predictions against errors observed on a calibration set. Because it can wrap around any underlying model — gradient boosting, neural networks, even LLMs — it has become the leading practical answer to the question "when can my model's predictions actually be trusted?"
How does conformal prediction work?
The standard recipe has five steps: split your data into a training set and a separate calibration set; train your model on the training set; score every calibration point with a "nonconformity" score that measures how surprising its prediction error is; take the quantile of those scores matching your desired coverage, say 90%; then use that threshold to build the interval or prediction set for new predictions. Under the assumption that calibration and future data are exchangeable, the promised coverage is provably achieved — and because calibration happens after training, it works with any model.
What is split conformal prediction?
Split conformal prediction is the simplest and most widely used variant of the conformal framework. The "split" refers to holding out a dedicated calibration set: the model is trained on one portion of the data, and an independent held-out portion is used to calibrate interval widths or set sizes. Because calibration is decoupled from training, it works with any pre-trained model and adds almost no computational cost. The trade-off is that you need enough held-out data for reliable calibration, and more elaborate variants such as cross-conformal or full conformal prediction exist when data is scarce.
How do I apply conformal prediction for time series forecasting?
Applying conformal prediction for time series is trickier than for standard data because consecutive observations are dependent, which violates the exchangeability assumption standard methods rely on. In practice: use methods designed for temporal data (ensemble approaches such as EnbPI), calibrate on a rolling window so intervals adapt to distribution shift, and always measure the empirical coverage you actually achieve on a hold-out period containing real seasonality and regime changes. Naively applying split conformal to time-ordered data is a known failure mode — intervals tend to undercover exactly when the series changes.
How to prepare for machine learning interviews?
Cover the four pillars interviewers test: ML fundamentals (bias-variance trade-off, regularization, overfitting, evaluation metrics), coding (data structures, algorithms, clean implementation), ML system design (framing a business problem, data and feature pipeline choices, serving and monitoring trade-offs), and your own projects explained with measurable impact. Practise explaining your reasoning out loud, run timed mock interviews to expose weak spots, and prepare three or four deep project stories with quantified results. Structured practice with feedback beats passive reading — most candidates fail on communication and problem framing, not raw knowledge.
How to crack machine learning interviews at FAANG?
FAANG machine learning loops typically include an ML breadth/depth round, one or two coding rounds (medium-to-hard algorithm problems, sometimes ML-flavoured like implementing k-means), an ML system design round such as designing a recommendation or ranking system, and behavioural rounds. To compete: know core ML theory cold, solve around 150–200 targeted coding problems rather than hundreds of random ones, practise system design out loud with a repeatable framework (requirements → data → features → modelling → serving → metrics), and rehearse STAR-format stories about impact. Mock interviews with experienced practitioners are the fastest way to fix weak signals before the real loop.
Is machine learning in demand in India?
Yes, and the gap between demand and supply keeps widening. Global capability centres, IT services, fintech, e-commerce, and manufacturing companies in India are all scaling ML teams, and roles like machine learning engineer, data scientist, and MLOps engineer consistently command above-market salaries. What has changed is the bar: employers now want people who can take models to production, handle real-world data quality, and quantify uncertainty — not just train models in notebooks. Specialising in a high-value area such as time series forecasting, combined with strong engineering and communication skills, makes candidates significantly more competitive.