PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Millennium

How would you model stock price prediction?

Last updated: Mar 29, 2026

Quick Overview

This question evaluates competency in applying machine learning to financial time-series, covering target definition, data selection, feature engineering, model choice, validation, evaluation metrics, and production considerations.

  • medium
  • Millennium
  • Machine Learning
  • Software Engineer

How would you model stock price prediction?

Company: Millennium

Role: Software Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

## Scenario You are asked to use machine learning to **predict stock prices** (or more realistically, **predict future returns / price direction**) for a trading use case. ## Questions 1. **Target definition:** What exactly would you predict (e.g., next-day close, next-hour return, direction, volatility)? Why? 2. **Data:** What data sources would you use (market data, fundamentals, news, alternative data)? What is the minimum viable dataset? 3. **Features:** What features would you engineer from the data? 4. **Modeling:** What model families would you consider and why (linear models, tree-based, deep learning, time-series models)? 5. **Training & validation:** How would you split data over time to avoid leakage? How would you tune hyperparameters? 6. **Evaluation:** What metrics would you use (ML metrics and trading metrics)? 7. **Pitfalls:** How would you address non-stationarity, regime changes, data snooping, survivorship bias, and transaction costs? 8. **Production considerations:** How would you deploy, monitor, and retrain the model?

Quick Answer: This question evaluates competency in applying machine learning to financial time-series, covering target definition, data selection, feature engineering, model choice, validation, evaluation metrics, and production considerations.

Millennium logo
Millennium
Feb 12, 2026, 12:00 AM
Software Engineer
Technical Screen
Machine Learning
3
0
Loading...

Scenario

You are asked to use machine learning to predict stock prices (or more realistically, predict future returns / price direction) for a trading use case.

Questions

  1. Target definition: What exactly would you predict (e.g., next-day close, next-hour return, direction, volatility)? Why?
  2. Data: What data sources would you use (market data, fundamentals, news, alternative data)? What is the minimum viable dataset?
  3. Features: What features would you engineer from the data?
  4. Modeling: What model families would you consider and why (linear models, tree-based, deep learning, time-series models)?
  5. Training & validation: How would you split data over time to avoid leakage? How would you tune hyperparameters?
  6. Evaluation: What metrics would you use (ML metrics and trading metrics)?
  7. Pitfalls: How would you address non-stationarity, regime changes, data snooping, survivorship bias, and transaction costs?
  8. Production considerations: How would you deploy, monitor, and retrain the model?

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Millennium•More Software Engineer•Millennium Software Engineer•Millennium Machine Learning•Software Engineer Machine Learning
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.