Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ” Problem Statement..

Predict the next-minute stock return (ratio of time T+1 price to time T price) using market microstructure features such as volume, trade imbalance, spreads, and order book statistics.


Features Engineered

Aggregated per minute per stock:

  • num_trades, o, h, l, c, total_volume,
  • total_buy_cap, total_sell_cap, weighted_price
  • trade_imbalance_ratio, volume_imbalance_ratio
  • avg_spread, max_spread, min_spread
  • weighted_avg_bid_price, weighted_avg_ask_price

Target variable:

  • Return = (Next minute's close price) / (Current minute's close price)

Work

  • Aggregated trade and quote data to 1-minute intervals
  • Engineered predictive features
  • Modeled using Linear Regression
  • Evaluated with:
  • Minute-wise correlation plot (actual vs predicted returns)
  • Correlation matrix heatmap across all companies

πŸ“Š Example Outputs

1. Correlation over time

Measures how well predictions match real returns over each minute.

2. Correlation Matrix

Stock-wise return correlations across companies on the selected date.


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages