Professional Documents
Culture Documents
Golf Code
Golf Code
Golf Code
R
Sravanthiammu
2019-05-24
## Seeting up working directory and getting working directory
getwd()
install.packages("readr")
library(readr)
install.packages("readxl")
library(readxl)
##import data
str(Golf)
head(Golf,10)
tail(Golf,10)
summary(Golf)
## Apply t test
install.packages("ggplot2")
library(ggplot2)
## 95% confidence interval for the population mean of each model Current and
New
#Current
x1bar = mean(Golf$Current)
s1 = sd(Golf$Current)
n = 40
z = 1.960
ULC = xbar+z*s/sqrt(n)
LLC = xbar-z*s/sqrt(n)
#New
x2bar = mean(Golf$New)
S2 = sd(Golf$New)
ULN = Nxbar+z*NS/sqrt(n)
LLN = Nxbar-z*NS/sqrt(n)