Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    big data analytics in transporation
    Turning Data Into Decisions: How Analytics Improves Transportation Strategy
    3 Min Read
    sales and data analytics
    How Data Analytics Improves Lead Management and Sales Results
    9 Min Read
    data analytics and truck accident claims
    How Data Analytics Reduces Truck Accidents and Speeds Up Claims
    7 Min Read
    predictive analytics for interior designers
    Interior Designers Boost Profits with Predictive Analytics
    8 Min Read
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Preprocessing – Feature Generation
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Analytics > Predictive Analytics > Preprocessing – Feature Generation
Predictive Analytics

Preprocessing – Feature Generation

Editor SDC
Editor SDC
5 Min Read
SHARE

Price and volume data is the easiest to acquire and holds quite a bit of information. Preprocessing is the technique of making it easier to find patterns. The following are examples of different ways of processing price and volume series (with spreadsheet formulas in parentheses). Using raw data together with a few transformed series derived from the raw data as input features usually works best. Simply having a “universal” learner is not good enough in application.

Price – Dollars per share is of course the typical raw form
Alternatively price could be expressed as…

  • Percent above 52-week low, if you believe it is a support (p’ = p / min(p({365,0})) – 1)
  • Percent change from previous, if you believe it is autocorrelated (continuous: p’ = ln(p0/p1); arithmetic: p’ = (p0-p1)/p1)
  • Log price, if you believe it is a compounding process (p’ = ln(p))
  • Some other currency, if you want to remove some macroeconomic variable (p’ = p*CUR/USD)
  • Price points i.e. integer dollar value crosses like .99 -> 1.00 vs 1.23 -> 1.24, if you believe investors irrationaly weight large digit changes (p’ = floor(p0) ~= floor(p1))
  • Residuals vs an index, if you want to remove movement not unique to the security (p’ = …


Price and volume data is the easiest to acquire and holds quite a bit of information. Preprocessing is the technique of making it easier to find patterns. The following are examples of different ways of processing price and volume series (with spreadsheet formulas in parentheses). Using raw data together with a few transformed series derived from the raw data as input features usually works best. Simply having a “universal” learner is not good enough in application.

More Read

Netflix
5 Valuable Insights Your Data Isn’t Telling You
“I propose a new definition of business intelligence … Wikipedia provides a simple layperson…”
Workforce Analytics
Do Predictive Modelers Need to Know Math?
How Are Predictive Analytics Shaping the Future of Fintech?

Price – Dollars per share is of course the typical raw form
Alternatively price could be expressed as…

  • Percent above 52-week low, if you believe it is a support (p’ = p / min(p({365,0})) – 1)
  • Percent change from previous, if you believe it is autocorrelated (continuous: p’ = ln(p0/p1); arithmetic: p’ = (p0-p1)/p1)
  • Log price, if you believe it is a compounding process (p’ = ln(p))
  • Some other currency, if you want to remove some macroeconomic variable (p’ = p*CUR/USD)
  • Price points i.e. integer dollar value crosses like .99 -> 1.00 vs 1.23 -> 1.24, if you believe investors irrationaly weight large digit changes (p’ = floor(p0) ~= floor(p1))
  • Residuals vs an index, if you want to remove movement not unique to the security (p’ = p – DJIA)

Volume – shares per day/period is the typical raw format
Alternatively volume could be expressed as…

  • Volume minus the regressed volume of an index, if you want to compensate for the overall rise in volume though history (v’ = v – DJIA)
  • Percentage change just like price, above
  • Discretized as high, medium, low instead of a number, if you want to use classification rather than regression (v’ = bins(v, 3))
  • Volume minus average volume on current period, if you want to compare the morning with the afternoon or compare monday to tuesday without inserting another variable (v’ = v – periodavg(v))

Combinations of two series might also distil important information. Ex. price*volume, if you believe a price move is “confirmed” by high volume.

Preprocessing is a time consuming step because it requires domain-specific knowledge so a computer can’t do it efficiently and automatically. For ex. to find out that log price might be meaningful since companies grow organically a computer would have to test a huge library of basic functions: exp(p), p^k, sqrt(p), p*k, p+k, exp(-p), log(p) etc…

Technical indicators are just another way of preprocessing a time series. Often they take multiple points of data (such as a 30 day MA) and compress it to just one. This is useful for a human but less so for a computer which can computationally handle the full details. However it may be useful to add in common indicators to out-game human traders who are being influenced by these crude signals.

Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

ai for building crypto banks
Building Your Own Crypto Bank with AI
Blockchain Exclusive
julia taubitz vn5s g5spky unsplash
Benefits of AI in Nursing Education Amid Medicaid Cuts
Artificial Intelligence Exclusive News
AI role in medical industry
The Role Of AI In Transforming Medical Manufacturing
Artificial Intelligence Exclusive
b2b sales
Unseen Barriers: Identifying Bottlenecks In B2B Sales
Business Rules Exclusive Infographic

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

predictive analytics and cryptocurrency trading
Blockchain

Can Predictive Analytics Identify Future Crypto Profitability?

10 Min Read

Intermixing Big Data and IoT to Create Smart Cities that Improve Life

9 Min Read

Eli Lilly’s Dave Powers talks compellingly about how the…

1 Min Read

The Anderson Analytics Facebook Application in Advertising Age

3 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data
ai is improving the safety of cars
From Bolts to Bots: How AI Is Fortifying the Automotive Industry
Artificial Intelligence

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?