100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

MGT 6203 Self Assessment 3 | Georgia Institute of Technology

Rating
-
Sold
-
Pages
6
Grade
A
Uploaded on
01-07-2025
Written in
2024/2025

MGT 6203 Self Assessment 3 | Georgia Institute of Technology










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
July 1, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

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.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Jumuja Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
548
Member since
4 year
Number of followers
415
Documents
2654
Last sold
1 week ago

3.9

115 reviews

5
60
4
15
3
20
2
4
1
16

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions