MATH1324 Intro to Statistics Assignment 3

Forest Area Reduction

Syeda Hafsa Mujeeb (s3796697) Vaishnaavee Rajaraman (s3813544) Vidavaluru Sai Haneesha (s3799365)

Last updated: 27 October, 2019

Introduction

Problem Statement

Data

Data Cont.

ForestArea<- eastAsia_Pacific
head(ForestArea)

Descriptive Statistics

For year ‘2010’

ForestArea %>% summarise(Min = min(`2010`,na.rm = TRUE),
Q1 = quantile(`2010`,probs = .25,na.rm = TRUE),
Median = median(`2010`, na.rm = TRUE),
Q3 = quantile(`2010`,probs = .75,na.rm = TRUE),
Max = max(`2010`,na.rm = TRUE),
Mean = mean(`2010`, na.rm = TRUE),
SD = sd(`2010`, na.rm = TRUE),
n = n(),
Missing = sum(is.na(`2010`))) -> table1
knitr::kable(table1)
Min Q1 Median Q3 Max Mean SD n Missing
0 353.1 9929 151885 2006103 182015.9 410444.5 42 7

Decsriptive Statistics Cont.

For year ‘2015’

ForestArea %>% summarise(Min = min(`2015`,na.rm = TRUE),
Q1 = quantile(`2015`,probs = .25,na.rm = TRUE),
Median = median(`2015`, na.rm = TRUE),
Q3 = quantile(`2015`,probs = .75,na.rm = TRUE),
Max = max(`2015`,na.rm = TRUE),
Mean = mean(`2015`, na.rm = TRUE),
SD = sd(`2015`, na.rm = TRUE),
n = n(),
Missing = sum(is.na(`2015`))) -> table2
knitr::kable(table2)
Min Q1 Median Q3 Max Mean SD n Missing
0 349 10172 155860 2083213 183224.7 419745.6 42 7

Decsriptive Statistics Cont.

ForestArea<- na.omit(ForestArea)
ForestArea %>% select(`2010`:`2015`) %>% boxplot(horizontal = TRUE)

Visualisation

Visualisation Cont

For 2015:

Assumptions:

Hypthesis Testing

\[H_0: \mu_\Delta= 0 \]

\[H_A: \mu_\Delta \ne 0\] - For paired sample t-test we use C.I.= 95% and α=0.05

Hypothesis Testing Cont.

#paired t-test:
t.test(
ForestArea$`2010`, ForestArea$`2015`,
paired = TRUE,
alternative = "two.sided"
)
## 
##  Paired t-test
## 
## data:  ForestArea$`2010` and ForestArea$`2015`
## t = -0.45411, df = 34, p-value = 0.6526
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -6618.576  4200.919
## sample estimates:
## mean of the differences 
##               -1208.828

Discussion

Further Scope

References