knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Welcome to ANLY - 500

What is Analytics? - Possible Definition 1

What is Analytics? - Possible Definition 2

Scope of Analytics?

What is Descriptive Analytics? (1)

knitr::include_graphics("pictures/introDA1/descriptive.png")

An Example of what to Expect in Descriptive Analytics: Ex.1.1

library(datasets) 
data("sunspot.month") # special way to load embedded data
head(sunspot.month)

An Example of what to Expect in Descriptive Analytics: Ex.1.1

str(sunspot.month)

An Example of what to Expect in Descriptive Analytics: Ex.1.1

summary(sunspot.month)

An Example of what to Expect in Descriptive Analytics: Ex.1.1

library(ggplot2)
sunspot.month <- as.data.frame(sunspot.month)
sunspot.month$Time <- 1:nrow(sunspot.month)
ggplot(sunspot.month, aes(x = Time, y = x)) + 
  geom_point(alpha = 0.5) + 
  ylab("Number of Sunspots") + 
  xlab("Time") +
  theme_classic()

What is Predictive Analytics?

knitr::include_graphics("pictures/introDA1/predictive.png")

What is Predictive Analytics?

An Example of what to Expect in Predictive Analytics: Ex.2.1

library(quantmod)
start <- as.Date(Sys.Date()-(365*5))
end <- as.Date(Sys.Date()-2)
getSymbols("AMZN", src = "yahoo", from = start, to = end)
str(AMZN)

An Example of what to Expect in Predictive Analytics: Ex.2.1

predictive_model <- lm(formula = AMZN.Close ~ AMZN.High + AMZN.Low + AMZN.Volume, 
                       data = AMZN[1:1199,])
summary(predictive_model)

An Example of what to Expect in Predictive Analytics: Ex.2.1

par(mfrow=c(2,3))
plot(predictive_model,1)
plot(predictive_model,2)
plot(predictive_model,3)
plot(predictive_model,4)
plot(predictive_model,5)

An Example of what to Expect Analytics: Ex.2.1

n <- length(AMZN[,1])
prediction <- stats::predict(predictive_model, AMZN[1200:n,])
tail(data.frame(prediction))

An Example of what to Expect Analytics: Ex.2.1

plot(prediction, type = "l")

What is Prescriptive Analytics?

knitr::include_graphics("pictures/introDA1/prescriptive.png")

What does this translate into?

What is Data Analytics?

A Subcomponent of Data Analytics is Data Analysis!

A Subcomponent of Data Analytics is Data Analysis!

Other Types of Analysis

How to Correctly Apply Data Analytics?

knitr::include_graphics("pictures/introDA1/research_process.png")

Breaking Down the Research Process - The Initial Observation

knitr::include_graphics("pictures/introDA1/initial_obs.png")

Breaking Down the Research Process - The Initial Observation

Breaking Down the Research Process - The Initial Observation

Breaking Down the Research Process - Generating Theories

knitr::include_graphics("pictures/introDA1/cartoon_theory.png")

Breaking Down the Research Process - Creating a Hypothesis

Breaking Down the Research Process - Testing Theories & Hypotheses

knitr::include_graphics("pictures/introDA1/kp_false.png")

Breaking Down the Research Process - Identifying the Variables

What's After the Question & Identifying Variables?

What is Data?

Types of Measurements

Categorical Variables

Categorical Levels of Measurement - Binary

Categorical Levels of Measurement - Nominal

Categorical Levels of Measurement - Ordinal

Continuous Variables

Continuous Levels of Measurement - Interval

Continuous Levels of Measurement - Ratio

Consider Measurement Error:

How Valid Are My Measures?

Are My Measures Reliable?

Breaking Down the Research Process - Collecting the Data

Cross-Sectional Research

knitr::include_graphics("pictures/introDA1/cross_sectional_research_study.png")

Longitudinal Research

Correlational Research

Experimental Research

Experimental Research - Methods

Experimental Research - Methods

Experimental Research - Methods

Breaking Down the Research Process - Methods to Collect the Data

Types of Variation in the Data to Consider:

Breaking Down the Research Process - Analyzing the Data

Population vs Sample

Fitting Models

Fitting Models

tapply(iris$Sepal.Length, iris$Species, mean)

Statistical Modeling Parameters

Statistical Modeling Parameters

sample <- iris[sample(nrow(iris), 15), ]
tapply(sample$Sepal.Length, sample$Species, mean) #sample
tapply(iris$Sepal.Length, iris$Species, mean) #population

Applicable Statistical Models

Summary



doomlab/learnSTATS documentation built on June 9, 2022, 12:54 a.m.