Dr. Richard M. Crowley
Learning and getting familiar with R and forecasting
Using R for higher level financial forecasting and detection
Datacamp’s tutorials teach R from the ground up, and are mandatory unless you can already code in R.
To be announced later
In class:
Out of class
*Almost every class will touch on each of these three aspects
Oxford: The systematic computational analysis of data or statistics
Webster: The method of logical analysis
Gartner: catch-all term for a variety of different business intelligence […] and application-related initiatives
Simply put: Answering questions using data
How will Analytics/AI/ML change society and the accounting profession?
This is where the “educated” comes in
These are not mutually exclusive. Forensic analytics can be used for forecasting!
53% of companies where using big data in a 2017 survey!
Programming in R provides a way of talking with the computer to make it do what you want it to do
#
are comments
# Addition uses '+'
1 + 1
## [1] 2
# Subtraction uses '-'
2 - 1
## [1] 1
# Multiplication uses '*'
3 * 3
## [1] 9
# Division uses '/'
4 / 2
## [1] 2
x ^ y
# Exponentiation uses '^'
5 ^ 5
## [1] 3125
# Modulus (aka the remainder) uses '%%'
46 %% 6
## [1] 4
# Integer division uses '%/%'
46 %/% 6
## [1] 7
<-
command# Store 2 in 'x'
x <- 2
# Check the value of x
x
## [1] 2
# Store arithmetic in y
y <- x * 2
# Check the value of y
y
## [1] 4
y <- 2 * x
x
and y
remain unchanged!# Previous value of x and y
x
## [1] 2
y
## [1] 4
# Change x, then recheck the value
# of x and y
x <- 200
x
## [1] 200
y
## [1] 4
Set a variable
growth
to the amount of Singtel’s earnings growth percent in 2018
# Data from Singtel's earnings reports, in Millions of SGD
singtel_2017 <- 3831.0
singtel_2018 <- 5430.3
# Compute growth
growth <- singtel_2018 / singtel_2017 - 1
# Check the value of growth
growth
## [1] 0.4174628
Scaling this up will give use a lot more value