How to automatically identify divergences or closures

Assignment Help Macroeconomics
Reference no: EM132245223

Project - TNX SPX Divergence

Project - Divergence between the 10-year Treasury Bond and the S&P 500

It is a truism in macro-finance that when there is a divergence between S&P 500 stock prices and the 10-year Treasury Bond yield, the bond market is always right. The presumption is that the stock market catches down (or up) to the bond market. That's the "always right" portion of the statement.

In this project you are to test this hypothesis. Calculate divergences between the two securities, then see how long these divergences take to close. You need to make assumptions about what constitutes divergence and re-convergence (i.e., closure).

Give a summary - or better, distribution - of these closure times. You may want to do this for different time periods, and different divergence thresholds.

Finally, assess whether it's bonds or stocks that are moving the most to converge each divergence.

In your write-up, before describing your methodology and results, please provide an explanation for why the hypothesized "bond market always right." You don't have to refer to any equity valuation theories, but you may.

What follows is some R code to do a decent chunk of the background work for you. It's decently written, but not totally awesome. I've left out a bunch of plot labels and titles. Use this code, or not, as you wish. I'm posting the knitted version of this as a PDF, plus also the code as a .RMD (R-markdown) file.

If you DON'T know R, I'd suggest partnering with one or more people who do. If you have a particular request for a plot, etc. let me know and I'll try to accommodate you. You can do a lot of this in Excel, actually, but then you'd be replicating work I've already done.

If you DO know R but need help with your code, let me know. Or ask Ken Z. or Cassie K. or Seth U. to help you - it'd be good for them.

Next Steps -

1. Figure out how to automatically identify divergences/closures. This isn't that hard.

2. Figure out how long each divergence/closure episode lasts. This also isn't hard, if you do the first part right.

3. Calculate the probability of divergences closing within various time frames. Hint: plot distribution of divergence closure times.

4. Change around the thresholds you're using, or the date ranges, or both.

5. (Part of the actual assignment, but a bit harder) Identify the manner in which divergences are closed - does SPY move to match back up with the ˆTNX cumulative return, or vice versa? It'd usually be a combination of both.

6. (Completely optional, but fun) Ignoring trading commissions and slippage, calculate your average annual return from putting on this divergence trade. At the start of the divergence go long ˆTNX (or short the corresponding T-bond ETF, or long the corresponding inverse T-bond ETF) and short the SPY. Or do the reverse if it's the bond cumulative return that's below the SPY cumulative return.

Be clear about whether you are reinvesting your proceeds or not. Note: this is a little bit of a trick question. Think about it before you do any fancy calculations.

Attachment:- Assignment Files.rar

Reference no: EM132245223

Questions Cloud

Offered by the federal fair credit reporting act : Which of the following credit reporting protections is offered by the federal Fair Credit Reporting Act?
Create activities to be used to enhance emergent literacy : Create two activities to be used to enhance emergent literacy,for toddlers.
Compute the? bond yield to maturity : The market price of the bond is ?$1,115?, and the?market's required yield to maturity on a? comparable-risk bond is 9 percent.
Discuss the risks and liabilities of tort law : TLG has scheduled another meeting with the GC owners to further discuss the risks and liabilities of tort law. This meeting will focus specifically on product.
How to automatically identify divergences or closures : ECON 426 Project - TNX SPX Divergence. Project - Divergence between the 10-year Treasury Bond and the S&P 500. How to automatically identify divergences
Analyze how tesla co-opted numerous stakeholders : Analyze how Tesla co-opted numerous stakeholders, including customers, regulators, and competitors to succeed.
What is the yield to maturity on this? bond : The Saleemi? Corporation's ?$1,000 bonds pay 7 percent interest annually and have 9 years until maturity. You can purchase the bond for ?$935.
How tesla understood the profit logic of its business model : Explain how Tesla understood the profit logic of its business model and built the capability needed to execute it
Determine the yield to maturity : a. Determine the yield to maturity. b. What is the value of the bonds to you given the yield to maturity on a? comparable-risk bond?

Reviews

Write a Review

Macroeconomics Questions & Answers

  Inflation targeting be a good policy

Why might it be difficult for the Fed to formally adopt inflation targeting?  Would inflation targeting be a good policy for the Fed in the present economic environment

  In using the taylor rule

In using the Taylor Rule as a guideline for monetary policy, what are the pros and cons of using forecasted values of inflation and output rather than observed values of these variables?

  Describe the present economic crisis situation in europe

Describe the present economic crisis situation in Europe.  Why has it been so difficult for the Europeans to find a solution to this problem?   Comment on what implications the crisis may have for the rest of the world if Europeans are not able to ag..

  Long-term federal government budget problems

Question:. Explain why there are long-term Federal government budget problems. Explain why the base-line forecast of the CBO is misleading.

  Derive and compare demand curve

Question based on Derive and compare demand curve,  Derive Ambrose's demand function for peanuts. How does it compare with Johnny's demand curve for peanuts?

  Problem based on utility function

Problem based on  Utility Function - Problem,  Answer and explain the following using a diagram which is completely labeled.

  Laffer curve : tax rate and tax revenue

Question based on Laffer Curve : Tax Rate and Tax Revenue,  Do raising tax rates necessarily raise tax revenue? What factors affect how tax revenue changes when tax rates change?

  Problem - income elasticity of demand

Problem - Income Elasticity of Demand,  Interpret the following Income Elasticities of Demand (YED) values for the following and state if the good is normal or inferior; YED= +0.5 and YED= -2.5

  Positive balance of payment

Question Positive Balance of Payment: "Things will look good for the US if we could just get to where we are consistently running a positive Balance of Payments."

  Effect of recession on the investment curve

Comment on the effect of a recession on the investment curve (only) and on the level of savings, investment, and the equilibrium real interest rate in the financial crisis that hits United States first starting in fall 2007.

  Affect of falling domestic investment on trade surplus and

How will a fall in domestic investment affect the trade surplus and net capital outflows in the domestic economy, the trade deficit and capital inflows in the rest of the world.

  Crises in the banking sector and bank run

Banking crises crisis decreases depositors' confidence in the banking system. What would be the effect of a rumor about a banking crisis on checkable deposits in such a country?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd