Skip to content

Assignment #3, due Dec 16, 9am: Calculate and visualize CAPM betas #14

@joachim-gassen

Description

@joachim-gassen

After the tough coding challenge of the second assignment it is now time again to do something visual with data. I want you to pull daily stock prices for the current Dow Jones 30 firms from public sources. Calculate daily returns based on adjusted prices and market returns as the equal weighted average of daily returns of all firms in your sample. Then calculate rolling 250-day window CAPM regressions for each firm for which you have continuous return data for the period 2000 to 2019. To complete the assignment, you should create a figure that looks roughly like this.

assigment_3

For fun and “extra credit”, you can make this visual interactive to allow users to assess the development of beta for a given firm. Plotly and Shiny come to mind. Here is a link to a very simple shiny app: https://jgassen.shinyapps.io/betas/ as an example.

Like always: Make sure that your data and code is reproducible (no data uploads please). Feel free to use the issue to clarify and discuss the assignment. Please document all resources that you use in code. The submission deadline for this assignment is December 16, 9 am.

Metadata

Metadata

Assignees

No one assigned

    Labels

    assignmentIndividual class assignment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions