Which is the right imputation method for stock data?

Which is the right imputation method for stock data?

Manage alerts

Loading saved threads...

Jay Nguyen · External communityPost link
External question — Data Science Stack Exchange Author: Jay Nguyen Original post: https://datascience.stackexchange.com/questions/114027 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I am currently working on a project involving stock close prices of some companies. I encounter the problem of missing data in the dataset. For example in the image below, because, I have some null cells. The stock exchange is open from Monday to Friday weekly, so close prices are recorded for 5 consecutive days (yellow and violet). However, for some weeks (the light blue and dark blue parts), the data is not recorded. My question is how we can deal with such missing data; I found some methods like Last Observation Carried Forward, or interpolation, or even some advanced machine learning algorithms like Random Forest, kNN. I am still confused about which is the right method to use. My dataset also contains stock close prices from other companies in the same industry, so I wonder if there is a method to predict missing values based on prices from these companies. Please help me with this. Thanks a lot.
Quote
Report
Iyar Lin · External communityPost link
External answer — Data Science Stack Exchange Author: Iyar Lin Original post: https://datascience.stackexchange.com/a/114038 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. Just like there's no one "best" model, there's no one "correct" way of imputing data. The only way to know for sure is benchmark different candidates as part of a pipelines that includes a prediction model and compare their accuracy/error on a test set. I'd recommend you start off with some simple imputation methods like interpolation or LOCF to get some baseline, then try some more sophisticated methods and see if it generates any meaningful lift. You may find out it doesn't matter much in the end.
Quote
Report

Post Reply

Checking account access…