Publications by Luke Karelas

Term Project

08.05.2020

Q1 What is the title of the finance student competition you may consider competing? Hint: You may Google search something like “student competitions in finance”. The NIBC or National Investment Banking Competition is something that interests me because i could create all the graphs needed to know past information on stocks using rstudio cloud...

4458 sym

Quiz 6

28.04.2020

This note came from Matt Dancho’s webpage. Factor models are used in many financial appplications, suhc as: identifying the determinants of a security’s return cost of capital (rate of return required by an investor to hold the share) calculations Capital Asset Pricing Model (CAPM) is the most popular factor model. Although CAPM does not pe...

2598 sym R (5720 sym/10 pcs)

Quiz 4

14.04.2020

Q1 Import Tesla for the last ten months. Hint: Revise the given code below. ## # A tibble: 209 x 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 TSLA 2019-06-14 211. 217. 210. 215. 7433400 215. ## 2 TSLA 2019-06-17 215. 227 214. 225. 123...

2507 sym R (3802 sym/5 pcs) 2 img

Quiz 3

26.03.2020

# Load packages library(tidyquant) library(tidyverse) library(dplyr) Q1 economic data Import the U.S. Industrial Production Index since 2010. Hint: Find the symbol in FRED. Production <- tq_get("INDPRO", get = "economic.data", from = "2010-01-01") Production ## # A tibble: 122 x 2 ## date price ## <date> <dbl> ## 1 2010-01-01 ...

1597 sym R (4128 sym/14 pcs) 1 img

Importing Financial Data

05.03.2020

Q1. dividends Import dividends of Apple and Microsoft since 2010. ## # A tibble: 0 x 2 ## # … with 2 variables: symbol <chr>, dividends <???> Q2. economic data Import U.S. civilian unemployment rate (seasonally adjusted) since 2017. Hint: Find the symbol in FRED. ## # A tibble: 37 x 2 ## date price ## <date> <dbl> ## 1 2017-01...

1216 sym R (817 sym/3 pcs) 2 img

Quiz 2

27.02.2020

options(scipen = 999) In this exercise you will learn to plot data using the ggplot2 package. To answer the questions below, use Chapter 4.3 Categorical vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("WMT", "TGT", "AMZN"), get = "stock.prices", fr...

2173 sym R (5966 sym/15 pcs) 3 img

Clean Data

13.02.2020

In this exercise you will learn to clean data using the dplyr package. To this end, you will follow through the codes in one of our e-texts, Data Visualization with R. The given example code below is from Chapter 1.2 Cleaning data. ## # A tibble: 87 x 13 ## name height mass hair_color skin_color eye_color birth_year gender ## <chr> <int>...

986 sym R (4508 sym/8 pcs)

Quiz 1

11.02.2020

Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # for financial analysis ## Import data stocks <- tq_get("AAPL", get = "stock.prices", from = "2016-01-01") stocks ## Visualize stocks %>% ggplot(aes(x = date, y = adjusted)) + geom_line() Q1 Import Netflix ...

2255 sym R (1413 sym/6 pcs) 3 img

My First Publication 2

23.01.2020

Q1 What is R? R is the programming language we use for statistics and data. Q2 What is RStudio? RStudio is the location in which we are coding, and using in order to create graphs and charts with the data we have provided. Q3 What is R packages? Hint: Type your answer in bold. R Packages are the tools we use while coding. They provide us with d...

512 sym R (14 sym/1 pcs)

Term Project: Draft

06.12.2019

library(tidyverse) library(scales) options(scipen=999) library(tidyverse) library(lubridate) ufo_sightings <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-06-25/ufo_sightings.csv") %>% # Extract year from date_time, and calculate decade from year mutate(year = year(parse_date_time(date_t...

3186 sym R (6153 sym/11 pcs) 5 img