Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Examen

MGT 6203 Self Assessment 3 | Georgia Institute of Technology

Note
-
Vendu
-
Pages
6
Grade
A
Publié le
01-07-2025
Écrit en
2024/2025

MGT 6203 Self Assessment 3 | Georgia Institute of Technology










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

Infos sur le Document

Publié le
1 juillet 2025
Nombre de pages
6
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

Self-Assessment #3

Question 1: The purpose of this self-assessment is to implement performance metrics and understand
how the given stocks perform with respect to the market, and which of the two stocks is a better
investment to make. Follow the steps below, and answer the questions outside the code-block, in the R
Markdown File in 1-2 sentences. Knit your code to HTML using R Studio for a more presentable format and
submit the HTML file.

Use echo = TRUE while knitting so that the code is seen.

a. Load the ‘Return_Dataset.csv’ file into your R Studio and print the first 10 rows. (1 point)

Note: The data contains monthly returns of- Risk Free Asset (RF); Market (Mkt); United Parcel Service (UPS); KO
(Coca Cola)

b. Plot and print the cumulative returns of the returns across time. Eventually, by seeing the graph, do
UPS or KO outperform the Market? Explain. (2 points)

Note: The graph should include the legend to evidently see a comparison.

Hint: Use POSIXct for converting date into a time-series object.

c. Calculate and print the Sharpe Ratio and Treynor Ratio of UPS and KO. Which of the two is a better
investment to make? Explain. (Use the StdDev Sharpe Ratio to compare) (3 points)

setwd("C:/Users/OPG2/Desktop/GaTech/MGT 6203")
library(PerformanceAnalytics)


## Loading required package: xts


## Loading required package: zoo


##
## Attaching package: 'zoo'


## The following objects are masked from 'package:base':
##
## as.Date, as.Date.numeric


##
## Attaching package: 'PerformanceAnalytics'

, ## The following object is masked from 'package:graphics':
##
## legend


library(PoSI)
library(xts)
library(lubridate)


##
## Attaching package: 'lubridate'


## The following object is masked from 'package:base':
##
## date


return_data <- read.csv("Return_Dataset.csv", header = TRUE)
return_data <- return_data[order(return_data$Date),]


a) First 10 rows of data

# a) First 10 rows of data
head(return_data, n=10)


## Date RF UPS KO Mkt
## 45 2015-12-01 1e-04 -0.059265990 0.015707901 -0.0216
## 44 2016-01-01 1e-04 -0.031487147 -0.000931283 -0.0576
## 43 2016-02-01 2e-04 0.035944259 0.004893142 -0.0005
## 42 2016-03-01 2e-04 0.101124671 0.075585176 0.0698
## 41 2016-04-01 1e-04 -0.003792522 -0.026743221 0.0093
## 40 2016-05-01 1e-04 -0.018844734 -0.004464390 0.0179
## 39 2016-06-01 2e-04 0.052928782 0.016367823 -0.0003
## 38 2016-07-01 2e-04 0.003527532 -0.030121712 0.0397
## 37 2016-08-01 2e-04 0.010360964 -0.004584034 0.0052
## 36 2016-09-01 2e-04 0.008373973 -0.025558364 0.0027


b) Plot and print the cumulative returns of the returns across time. Eventually, by seeing the graph, do
UPS or KO outperform the Market? Explain. Note: The graph should include the legend to evidently see a
comparison. Hint: Use POSIXct for converting date into a time-series object.

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Jumuja Liberty University
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
548
Membre depuis
4 année
Nombre de followers
415
Documents
2654
Dernière vente
1 semaine de cela

3.9

115 revues

5
60
4
15
3
20
2
4
1
16

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions