PREDICTING THE WEATHER STABILITY OF AUSTRALIA

Intro to Statistics : ASSIGNMENT 3

RAFEED SULTAAN (s3763175), VISHAL BENIWAL (s3759790), JEWEL JAMES (s3763905)

Last updated: 02 June, 2019

Introduction

Problem Statement

Data

Data(contd.)

The following are the explanation of the variables:

Descriptive Statistics | WindSpeed

## [1] "WindSpeed at 9 AM"
Min Q1 Median Q3 IQR Max range Mean SD
2 9 13 19 10 31 29 14 6.99
## [1] "WindSpeed at 3 PM"
Min Q1 Median Q3 IQR Max range Mean SD
2 13 19 24 11 35 33 18.5 7.27

Descriptive Statistics | Humidity

## [1] "Humidity at 9 AM"
Min Q1 Median Q3 IQR Max range Mean SD
32 58 69 81 23 100 68 69.3 15.81
## [1] "Humidity at 3 PM"
Min Q1 Median Q3 IQR Max range Mean SD
11 38 52 64 26 92 81 51.4 18.06

Descriptive Statistics | Temperature

## [1] "Temperature at 9 AM"
Min Q1 Median Q3 IQR Max range Mean SD
4.3 12.8 16.8 21.2 8.4 29.7 25.4 17.1 5.66
## [1] "Temperature at 3 PM"
Min Q1 Median Q3 IQR Max range Mean SD
8.1 17.3 21.5 26.1 8.8 35.2 27.1 21.7 5.88

Descriptive Statistics | Pressure

## [1] "Pressure at 9 AM"
Min Q1 Median Q3 IQR Max range Mean SD
1003.8 1013.9 1018.1 1022.3 8.4 1031.5 27.7 1018.1 5.84
## [1] "Pressure at 3 PM"
Min Q1 Median Q3 IQR Max range Mean SD
1001.5 1011.5 1015.7 1019.9 8.4 1029 27.5 1015.7 5.78

Visualization | RainFall

We used piechart to describe the categorical variables RainToday and RainTomorrow. Both of piechart for the RainToday and RainTomorrow are identical with almost equal proportion

Visualization | Factors Affecting Weather

Visualization | Boxplots

Hypothesis Testing

\[H_0: \mu_1 - \mu_2 = 0\]

## 
##  Paired t-test
## 
## data:  weatherAUS$WindSpeed3pm and weatherAUS$WindSpeed9am
## t = 173.52, df = 89490, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  4.398652 4.499159
## sample estimates:
## mean of the differences 
##                4.448905

Hypothesis Testing Cont.

\[H_0: \mu_1 - \mu_2 =0\]

\[H_A: \mu_1 - \mu_2 \ne 0\]

## 
##  Paired t-test
## 
## data:  weatherAUS$Humidity3pm and weatherAUS$Humidity9am
## t = -352.78, df = 89490, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -18.01054 -17.81152
## sample estimates:
## mean of the differences 
##               -17.91103

Hypothesis Testing Cont.

\[H_0: \mu_1 - \mu_2 =0\]

\[H_A: \mu_1 - \mu_2 \ne 0\]

## 
##  Paired t-test
## 
## data:  weatherAUS$Pressure3pm and weatherAUS$Pressure9am
## t = -388.22, df = 89490, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -2.384078 -2.360126
## sample estimates:
## mean of the differences 
##               -2.372102

Hypothesis Testing Cont.

\[H_0: \mu_1 - \mu_2 =0\]

\[H_A: \mu_1 - \mu_2 \ne 0\]

## 
##  Paired t-test
## 
## data:  weatherAUS$Temp3pm and weatherAUS$Temp9am
## t = 424.46, df = 89490, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  4.662130 4.705386
## sample estimates:
## mean of the differences 
##                4.683758

Hypothesis Testing Cont.

\[H_0: There \ is \ no \ association \ of \ raining \ between \ two \ consecutive \ days \ (Independence)\]

\[H_A: There \ is \ an \ association \ of \ raining \ between \ two \ consecutive \ days \ (dependence)\]

## 
##  Paired t-test
## 
## data:  weatherAUS$Temp3pm and weatherAUS$Temp9am
## t = 424.46, df = 89490, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  4.662130 4.705386
## sample estimates:
## mean of the differences 
##                4.683758

Discussion

References