Filsan Musa
This project analyses the price of Tesla's stock, ticker TSLA, to determine whether the asset is fairly priced. This will be done through comparing the performance of TSLA to the overall performance of the stock market. To get the performance of the stock market the SPDR S&P 500 trust, ticker SPY, will be used. The SPY is a good indicator of the overall market performance as it mimics the S&P 500, and is the largest global ETF.
The Capital Asset Pricing Model, known as CAPM, is model that evaluates the value of a stock, and is used to determine where a stock is overvalued, undervalued, or fairly priced. The following formula will be used to determine this:
The following R libraries will be required:
-
Dplyr
-
Ggplot2
You can include R code in the document as follows:
df <- read.csv("/Users/filsanbeddel/Documents/PORTFOLIO PROJ/TSLA_CAPM/TSLA.csv", header = TRUE)
head(df, 10)
summary(df)