Professional Documents
Culture Documents
Student Name
Arshika : 22111006
Batch 2022
Submitted to
library(tidyverse)
library(lubridate)
cor(use = "complete.obs")
# Print results
print(std_devs)
print(cor_matrix)
print(sharpe_ratios)
```
```{r}
theme_minimal()
# 2. Time Series Plot for Returns
labs(title = "Asset Returns Over Time", y = "Daily Return (%)", color = "Asset") +
theme_minimal()
# 3. Correlation Heatmap
cor(use = "complete.obs")
geom_tile() +
theme_minimal()
```
We have constructed the portfolio using the above code. At first, we have installed the
necessary libraries “tidyverse” and “lubridate”. Then we have imported our data set and
calculated the returns on each of the shares and gold.
ASSET ALLOCATION DECISION:
Our choice of specific assets, such as shares of Tata Steel, Wipro, and Titan, along with the value
of gold, in constructing an investment portfolio should be driven by careful consideration of
various factors. These factors are as follows:
1. Diversity : Tata Steel, Wipro, and Titan operate in different sectors: Tata Steel in the
metals industry, Wipro in information technology, and Titan in consumer goods
(especially jewelry and watches). Including assets from diverse sectors helps to achieve a
well-rounded and diversified portfolio, reducing the impact of poor performance in any
single sector.
2. Risk Mitigation: Different types of assets have different risk profiles. Stocks of
companies like Tata Steel, Wipro, and Titan may offer potential for capital appreciation
but come with equity market volatility. On the other hand, gold is often considered a
"safe-haven" asset, tending to retain value during economic downturns. Combining
equities with a commodity like gold can help mitigate overall portfolio risk.
3. Inflation: Gold is often considered a hedge against inflation. In times of rising inflation,
the value of gold may increase, providing a level of protection for the portfolio. This can
be particularly relevant for investors looking to preserve the purchasing power of their
investments over the long term.
4. Liquidity: Liquidity is an important factor, especially for individual investors. Tata Steel,
Wipro, Titan, and gold are generally liquid assets, making it easier to buy and sell them in
the market.
5. Industry Exposure: Tata Steel, Wipro, and Titan represent companies from different
industries, providing exposure to various economic sectors. This exposure allows
investors to benefit from growth opportunities in different segments of the economy.
PERFORMANCE EVALUATION:
The graph titled "Asset Returns Over Time," depicts the daily return percentages for four
assets: TATASTEEL, WIPRO, TITAN, and Gold. The X-axis represents the date,
ranging from around 2010 to beyond 2020, and the Y-axis represents the daily return
percentage.
Volatility: The graph displays significant volatility in returns for all assets. This is evident
from the sharp peaks and troughs throughout the graph.
Comparison: At certain points, such as shortly before 2015 and towards the end of the
visible time period, all assets except for Gold show a sharp increase in returns. This could
suggest a market event that favorably impacted these stocks, or it could be indicative of
an outlier in the data due to a split, dividend, or data error.
Gold: The return of Gold (in orange) remains relatively stable with fewer fluctuations
compared to the stocks, until a steep increase towards the end of the timeline. Gold is
often considered a safer investment and this relative stability up until the sharp rise is
typical for this asset class.
Data Anomalies: The sudden vertical lines, particularly noticeable for Gold and TITAN
towards the end of the graph, could indicate either extreme actual changes in returns or
data anomalies. Such patterns are sometimes due to corporate actions like stock splits,
data errors, or missing data points where the line connects non-consecutive dates.
Missing Data: The warnings at the top of the RStudio indicate that there were rows with
missing values (NA) that were removed from the plot. This could suggest that the dataset
may have missing values on certain dates for one or more assets.
Divergence: Around 2015, WIPRO (in purple) shows a notable dip in returns while the
other assets don't, which could indicate an event specific to WIPRO or the sector it
belongs to.
Therefore, we can see that Tata Steel is offering the maximum returns over time among
all the assets.
We have also included other graphs such as Correlational Heatmap and asset prices over
time using time series (line graph).