{"id":18390173,"url":"https://github.com/orlovt/ffr_a","last_synced_at":"2025-04-12T06:57:28.422Z","repository":{"id":142977614,"uuid":"576707753","full_name":"orlovt/ffr_a","owner":"orlovt","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-31T15:38:37.000Z","size":206,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:57:25.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orlovt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-10T18:08:52.000Z","updated_at":"2022-12-25T02:31:08.000Z","dependencies_parsed_at":"2023-05-26T16:45:18.901Z","dependency_job_id":null,"html_url":"https://github.com/orlovt/ffr_a","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Fffr_a","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Fffr_a/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Fffr_a/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlovt%2Fffr_a/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orlovt","download_url":"https://codeload.github.com/orlovt/ffr_a/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530583,"owners_count":21119595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T01:46:36.463Z","updated_at":"2025-04-12T06:57:28.386Z","avatar_url":"https://github.com/orlovt.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro\n\n\n## Idea \n\nIn my Money and Banking class at the University of Minnesota, Terry Fitzgerald has shown us the [FedWatch tool by CME](https://www.cmegroup.com/markets/interest-rates/cme-fedwatch-tool.html). This tool shows the probability distribution of the implied FedFundsRate hikes before FOMC meetings. I wanted to replicate this, because it seemed interesting, looked at the [methodology](https://www.cmegroup.com/education/demos-and-tutorials/fed-funds-futures-probability-tree-calculator.html) and found out that CME is not upfront about how exactly they are getting the data. \n\n## Implementation \n\nLater on, I decided that it would be pretty convenient and cool to see how the implied trajectory of the fed funds rate changes over time. To do this I downloaded the futures historical prices from [yahoo finiance](https://finance.yahoo.com/quote/ZQ%3DF/futures?p=ZQ%3DF) using [yfinance](https://pypi.org/project/yfinance/), conducted some algebraic operations on the data and plotted the trajectories using [ploty](https://plotly.com). \n\n# Some Examples\n\n\u003egraphs.impl_exp(\"2022-06-05\", \"2022-06-30\", 7)\n\n\u003eThe command plots the implied trajectories of the fed funds from the June 5th to June 30th with a period of 7 days \n![EX1](plts/plot1.png)\u003c\n\n\u003egraphs.impl_exp(\"2022-10-18\", \"2022-12-15\", 10)\n\n\u003eThe command plots the implied trajectories of the fed funds from the Oct 18 5th to Dec 15th with a period of 10 days \n![ex2](plts/plot2.png)\u003c\n\nBoth of the graphs are centered around the FOMC meeting, EX1 is centered around the June 15th meeting, where the FedFundsRate was hiked by 75 basis points, we can see how the markets changed the future expected rate. It's also important to mention that from the plots it is evident that the June 15th announcement changed the consensus maximum expected rate and moved the MAX(ffr) along the timeline. \n\n# Summary \n\nI'd be happy if someone used this tool! Seems pretty simple but useful, especially for estimating the effect of FED announcements. \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlovt%2Fffr_a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forlovt%2Fffr_a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlovt%2Fffr_a/lists"}