BookmarkSubscribeRSS Feed
Lenon
Calcite | Level 5

Hi folks

does anybody have the codes for calculating 1 year or 6 month daily stock price run-up ?

1 REPLY 1
M_Maldonado
Barite | Level 11

Lenon,

Below a data mining approach that you might want to try. If you want to go into time series analysis, you probably more about it than I do! It's been a while...

Data mining approach

Back in the day in grad school at the Institute for Advanced Analytics one of our teachers described a really neat idea:

Use a linear regression procedure to output the parameter estimates (betas) of a trend for a 1-day, 2-day, 3-day, and nth-day prediction (or hour for that matter). Then use those betas as inputs for a predictive model that predicts the nth+1 beta. If the nth+1 beta is positive then you have a positive run-up that is quantifiable in terms of both the magnitude and also the accuracy coming out of your best predictive model.

         [If someone knows the formal name of this technique, please comment about it! really interested!!!]

Lenon, give it a try with this approach. If you run into trouble, happy to dig up that code or try to reproduce it.

Good luck!

Miguel

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1501 views
  • 0 likes
  • 2 in conversation