{"id":26,"date":"2021-10-13T20:32:40","date_gmt":"2021-10-14T03:32:40","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/cstodddev\/?p=26"},"modified":"2021-10-13T20:35:20","modified_gmt":"2021-10-14T03:35:20","slug":"financial-signal-processing-and-multiresolution-analysis-or","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/cstodddev\/2021\/10\/13\/financial-signal-processing-and-multiresolution-analysis-or\/","title":{"rendered":"Financial Signal Processing and Multiresolution Analysis Or:"},"content":{"rendered":"\n<h1 class=\"has-text-align-center wp-block-heading\"><strong>Woof.&nbsp; A Primer.<\/strong><\/h1>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>\u201cYou may learn something, and whether what you see be fair or evil, that may be profitable, and yet it may not. Seeing is both good and perilous.<\/em>\u201d<\/strong><\/p><\/blockquote>\n\n\n\n<p>I was very excited to be chosen for my top choice capstone project this quarter.\u00a0 The project focuses on short term algorithmic trading strategies.\u00a0 Definitely an interest for me.\u00a0 I run a small personal portfolio and have been fairly active in trading options for the last few years.\u00a0 I am all self taught when it comes to the financial world, but I have done modestly well!\u00a0 So I am very excited to get to grow my knowledge and skills related to my personal interests!<\/p>\n\n\n\n<p>The first meeting with the sponsor was definitely eye-opening.\u00a0 There were a lot of terms used in the context of trading that I was not familiar with.\u00a0 So I made notes with the determination of looking up as much as I could up.\u00a0 Two of the big ones were <em>Signal Processing<\/em> and <em>Multiresolution Analysis<\/em>.<\/p>\n\n\n\n<p>Woof.<\/p>\n\n\n\n<p>So&#8230; I present to you a primer on that subject matter.&nbsp; A high level overview that even an ex-liberal-arts major like me can understand.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>I. Sending You Those Signals<\/strong><\/h3>\n\n\n\n<p>Our first task before we get into how all this applies to financial markets is to garner a basic understanding of what <em>Signal Processing<\/em> itself is.&nbsp; For that we need to hop fields from Finance and Computer Science to Electrical Engineering.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Electrical Engineers spend a lot of time working with, you guessed it, electricity.&nbsp; More than just the juice that powers our cell phones, it is a very complex field.&nbsp; There are lots of varying measurements to keep track of.&nbsp; Some of note include current, voltage, and my blood pressure.&nbsp; And much like my blood pressure, it is important to be able to work with these measurements.&nbsp; You need to be able to process, understand, and utilize the information they are giving you.<\/p>\n\n\n\n<p>But how would you process something that is constantly fluctuating?&nbsp; Enter our new friend, <em>signals<\/em>.&nbsp; A signal in its simplest form is a very easy concept to understand.&nbsp; It is quantifiable numeric data, like a measurement of voltage or current, that changes throughout another completely independent variable, think something like time.<\/p>\n\n\n\n<p>So a very basic signal would be the data points produced by measuring the electrical current of your cell phone every second.&nbsp; Boom, you have a signal!&nbsp; So what do you do with the signal?&nbsp; Well that is WAY out of the scope of this blog post.&nbsp; But know that there is an entire subsection to Electrical Engineering dedicated to figuring and processing these signals to get the most useful information possible out of them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>II. A Sea of Signals<\/strong><\/h3>\n\n\n\n<p>The really exciting thing that came out of all this Signal Processing they were doing in Electrical Engineering is how applicable it is to so many other fields!&nbsp; Everything from image processing to audio processing uses this technique.&nbsp; The camera on your cell phone uses Signal Processing to interpret moving pictures even!<\/p>\n\n\n\n<p>But we aren\u2019t interested in those fields for this post.&nbsp; No, we are interested in the world of Finance.&nbsp; This seems like an odd place to find Signal Processing as we have defined it so far, until you abstract what a signal is.&nbsp; A measurement over an independent variable.&nbsp; Say something like, the closing price of a stock recorded every day.&nbsp; You have a measurement, the closing price of the stock, defined over an independent variable, which is time.&nbsp;&nbsp;<\/p>\n\n\n\n<p>This was the birth of the field of Financial Signal Processing.&nbsp; As a field it is attempting to leverage all the work done with Signal Processing so far, but with respect to the financial markets.&nbsp; Super cool right, albeit a little nerdy.&nbsp; But hey, nerds rule the world.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Financial Signal Processing has led to all new approaches in market strategies.&nbsp; It has led to the creation of many new indicators in the market, and new ways to use them.&nbsp; Most of these strategies are guarded jealously by their Hedge Fund and Market Maker owners.&nbsp; But as amateur investors and traders, we can see how a basic understanding of the Signal Processing field can help us translate strategies to our own portfolio management.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>III. Multiresol-whoseit-what-now<\/strong><\/h3>\n\n\n\n<p><em>Multiresolution Analysis<\/em> is the last new term and idea we are going to look at in this post.&nbsp; The best way to get a grasp on this (at least personally) intimidating word is to break it down into its parts.&nbsp; <em>Multi<\/em> is pretty clear as a prefix, it means more than one.&nbsp; <em>Analysis<\/em> is clearly referring to the act of analyzing a specific set of data.&nbsp; Great!&nbsp; We have the majority of this word figured out already.<\/p>\n\n\n\n<p>But what is a <em>resolution<\/em>?&nbsp; The word is (hopefully) not referring to my New Year\u2019s promises I never keep.&nbsp; I would <em>hate <\/em>anyone to analyze that!&nbsp; No, a resolution in this context is more appropriately thought of as the change in the independent variable between a measurement of a signal.<\/p>\n\n\n\n<p>Woof.<\/p>\n\n\n\n<p>So <em>Multiresolution Analysis<\/em> is just analyzing a signal over multiple resolutions.&nbsp; I think maybe an example would be in order\u2026<\/p>\n\n\n\n<p>Let\u2019s say I am a person who really really really likes dogs.&nbsp; In fact, I usually pet multiple dogs a day.&nbsp; For science purposes I decide to start tracking my average dogs petted for certain periods of time.&nbsp; I keep a running average of the dogs I have petted over the last 3 days, the last 10 days, and the last 30 days.&nbsp; That is to ensure that I am not slacking on how many dogs I am petting.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"169\" height=\"300\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-169x300.jpg\" alt=\"My grumpy boy Rocko\" class=\"wp-image-27\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-169x300.jpg 169w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-576x1024.jpg 576w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-768x1365.jpg 768w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-864x1536.jpg 864w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-1152x2048.jpg 1152w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-8-scaled.jpg 1440w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/figure><\/div>\n\n\n\n<p>Now I recalculate these running averages at the end of every day.&nbsp; My signals will be the measurement of those averages. At the end of each day.&nbsp; So for the last 3 days, I have averaged petting 4 dogs a day, the last 10 days I have averaged petting 2 dogs a day, and for the last 30 days I have averaged petting 2.7 dogs a day (gross, .7 of a dog\u2026).<\/p>\n\n\n\n<p>So the running averages of petted dogs are our measurement part of the signal.&nbsp; But everytime we measure these signals, we are measuring them against our independent variable (time), for different lengths (2, 10, 30 days), or&#8230; resolutions!&nbsp; BOOM.&nbsp; Multiresolution Analysis of petted dogs in my life!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"169\" height=\"300\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-169x300.jpg\" alt=\"Me and my 16 year old Kimmy (she gets carried everywhere, she deserves it)\" class=\"wp-image-28\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-169x300.jpg 169w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-576x1024.jpg 576w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-768x1365.jpg 768w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-864x1536.jpg 864w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-1152x2048.jpg 1152w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/4699\/files\/2021\/10\/Portfolio-1-scaled.jpg 1440w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/figure><\/div>\n\n\n\n<p>Back on topic, we can see how if we were to utilize this technique with stock prices it could provide some valuable insight into trends and data to analyze!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>IV. Conclusion and Resources<\/strong><\/h3>\n\n\n\n<p>Let me start by saying that I am no Electrical Engineer, and until a week or so ago I thought <em>Signal Processing<\/em> was something my Engineer brother held over my head to make himself feel better for losing at Smash.&nbsp; But it is really interesting and I know I am looking forward to learning more about it.<\/p>\n\n\n\n<p>I hope this very very very high level overview helped you as much as it helped me writing it!&nbsp; I will link some of the resources I used for research at the bottom of the post so you can read from some real professionals if you are interested in learning more!<\/p>\n\n\n\n<p>Resources:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/core.ac.uk\/download\/pdf\/4408024.pdf\" target=\"_blank\">https:\/\/core.ac.uk\/download\/pdf\/4408024.pdf<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.sciencedirect.com\/topics\/physics-and-astronomy\/signal-processing\" target=\"_blank\">https:\/\/www.sciencedirect.com\/topics\/physics-and-astronomy\/signal-processing<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/watch?v=y7KLbd7n75g\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=y7KLbd7n75g<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mccdaq.com\/TechTips\/TechTip-1.aspx\" target=\"_blank\">https:\/\/www.mccdaq.com\/TechTips\/TechTip-1.aspx<\/a><\/li><li><a href=\"https:\/\/sites.tufts.edu\/eeseniordesignhandbook\/2015\/signal-processing-in-finance\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/sites.tufts.edu\/eeseniordesignhandbook\/2015\/signal-processing-in-finance\/<\/a><\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Woof.&nbsp; A Primer. \u201cYou may learn something, and whether what you see be fair or evil, that may be profitable, and yet it may not. Seeing is both good and perilous.\u201d I was very excited to be chosen for my top choice capstone project this quarter.\u00a0 The project focuses on short term algorithmic trading strategies.\u00a0 &hellip; <a href=\"https:\/\/blogs.oregonstate.edu\/cstodddev\/2021\/10\/13\/financial-signal-processing-and-multiresolution-analysis-or\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Financial Signal Processing and Multiresolution Analysis Or:<\/span><\/a><\/p>\n","protected":false},"author":11570,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/users\/11570"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":3,"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/posts\/26\/revisions\/46"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/cstodddev\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}