I think the 5D / shorter time periods are really confusing for users and NOT intuitive at all.
as you post said… SEMIS have been on a ripper… and getting crushed today…
this is measuring TODAY v the time period series… so for example
T-4: +3%
T-3: +2%
T-2: +3%
T-1: +7%
TODAY: -3%
Its going to showing a really negative Z
Now you might want the rolling 5D vs some time period… that would be a feature we could add. How do we make this more intutive for people? just remove the 5D? add something else?
The way that the z-score would be more informative would be to make it answer the question that I am trying to answer: is the asset moving significantly in the context of the past xx days?
In order to construct such a metric, e.g. for 20 days, you create the histogram based on all historic 20-day returns. Based on that histogram, you fit a normal distribution with meu being the last observation and sigma being the sigma that is calculated over of all historical 20-day returns from the dawn of time for this asset (or, for the last 5 years e.g.). Then, you pick the last observed 20 day return (aka last observation minus 20 days ago) and calculate its quantile. This is the z-score that I am expecting to see. This way, we can know if the last observed 20 day return is common based on all historical 20-day returns or if it is abnormal.
Once you have that, you can make “20” a parameter and make the same calculation for any interval.
Does that make sense?
Jared
Team•
Sep 30
Thanks for writing this up so clearly. "Is this move significant given the asset's own history?" is a good question, and it is a different question from the one our Z answers today
What you're describing if I had to sum it up:
You want the latest 20-day return judged against every 20-day return in the asset's history. We think that's useful. There are two things we would do differently from the method you outlined:
We would read the percentile straight from the histogram rather than fitting a normal curve to it. A percentile taken from a fitted normal curve is the z-score in different units: a z of 2 always comes out at the 97.7th percentile, whatever the asset. Market returns have fatter tails than a normal curve, so a normal fit would call ordinary large moves rare more often than they really are. Reading the rank directly from the historical returns avoids that.
We would limit the horizon to what the history can support. Neighbouring 20-day windows share 19 of their 20 days, so five years of data holds only about 60 separate 20-day periods and about 20 separate 3-month periods. That is enough for 1W, 1M and 3M. For much longer horizons the percentile would rest on too few independent periods to mean much.
What I’d suggest instead
A move percentile for 1W, 1M and 3M: where the latest N-day return ranks among all of this factor's N-day returns over the past five years, or its full history if shorter. For example: "1M move: 94th percentile. A bigger one-month gain than 94% of one-month periods since 2021."
A clearer label on the current Z, so it is obvious that it judges today's move against recent days.
The two would work side by side. The current Z tells you whether today is unusual for recent conditions, which a five-year view smooths over. The percentile tells you whether the whole move is unusual for this asset.
Thanks again for the detailed suggestion. It's the kind of feedback that makes the product better
me
•
Sep 30
Thank you Jared, indeed point 1 makes a lot of sense and my inner statistician seems to have taken over and complicate things. I think the way that I described it is what Bloomberg typically shows on the right side as a vertical chart (e.g. the two images below - there is the historical histogram, but there is also a badly fitted distribution).
Regarding point 2, I would argue that in the context of macro observations, we definitely need at least 6M and 1Y horizons. E.g. when evaluating spread moves (e.g. 10y-2y), or currency pairs, such moves really stand out in longer historical contexts. If data is a limiting factor, you can still calculate sigma based on the data you have; it will be a bad estimation but still, viewing an estimation is more important than not.
Log in to comment and vote
Comments5
Jared Kubin
Sep 23
I think the 5D / shorter time periods are really confusing for users and NOT intuitive at all.
as you post said… SEMIS have been on a ripper… and getting crushed today…
this is measuring TODAY v the time period series… so for example
T-4: +3%
T-3: +2%
T-2: +3%
T-1: +7%
TODAY: -3%
Its going to showing a really negative Z
Now you might want the rolling 5D vs some time period… that would be a feature we could add. How do we make this more intutive for people? just remove the 5D? add something else?
Here is a Z SCORE video I did… hope it helps
appreciate the feedback
https://x.com/JaredKubin/status/2092996669507809711?s=20
me
Sep 30
Thank you Jared.
The way that the z-score would be more informative would be to make it answer the question that I am trying to answer: is the asset moving significantly in the context of the past xx days?
In order to construct such a metric, e.g. for 20 days, you create the histogram based on all historic 20-day returns. Based on that histogram, you fit a normal distribution with meu being the last observation and sigma being the sigma that is calculated over of all historical 20-day returns from the dawn of time for this asset (or, for the last 5 years e.g.). Then, you pick the last observed 20 day return (aka last observation minus 20 days ago) and calculate its quantile. This is the z-score that I am expecting to see. This way, we can know if the last observed 20 day return is common based on all historical 20-day returns or if it is abnormal.
Once you have that, you can make “20” a parameter and make the same calculation for any interval.
Does that make sense?
Jared
Sep 30
Thanks for writing this up so clearly. "Is this move significant given the asset's own history?" is a good question, and it is a different question from the one our Z answers today
What you're describing if I had to sum it up:
You want the latest 20-day return judged against every 20-day return in the asset's history. We think that's useful. There are two things we would do differently from the method you outlined:
We would read the percentile straight from the histogram rather than fitting a normal curve to it. A percentile taken from a fitted normal curve is the z-score in different units: a z of 2 always comes out at the 97.7th percentile, whatever the asset. Market returns have fatter tails than a normal curve, so a normal fit would call ordinary large moves rare more often than they really are. Reading the rank directly from the historical returns avoids that.
We would limit the horizon to what the history can support. Neighbouring 20-day windows share 19 of their 20 days, so five years of data holds only about 60 separate 20-day periods and about 20 separate 3-month periods. That is enough for 1W, 1M and 3M. For much longer horizons the percentile would rest on too few independent periods to mean much.
What I’d suggest instead
A move percentile for 1W, 1M and 3M: where the latest N-day return ranks among all of this factor's N-day returns over the past five years, or its full history if shorter. For example: "1M move: 94th percentile. A bigger one-month gain than 94% of one-month periods since 2021."
A clearer label on the current Z, so it is obvious that it judges today's move against recent days.
The two would work side by side. The current Z tells you whether today is unusual for recent conditions, which a five-year view smooths over. The percentile tells you whether the whole move is unusual for this asset.
Thanks again for the detailed suggestion. It's the kind of feedback that makes the product better
me
Sep 30
Thank you Jared, indeed point 1 makes a lot of sense and my inner statistician seems to have taken over and complicate things. I think the way that I described it is what Bloomberg typically shows on the right side as a vertical chart (e.g. the two images below - there is the historical histogram, but there is also a badly fitted distribution).
Regarding point 2, I would argue that in the context of macro observations, we definitely need at least 6M and 1Y horizons. E.g. when evaluating spread moves (e.g. 10y-2y), or currency pairs, such moves really stand out in longer historical contexts. If data is a limiting factor, you can still calculate sigma based on the data you have; it will be a bad estimation but still, viewing an estimation is more important than not.
Jared
Sep 30
great ideas. I will put in the R&D que … thanks
Linked to are the z-scores calculated accurately?