setwd("~/PROBABILIDAD Y ESTADISTICA (R Studio)")
library(readxl)
datos <- read_excel("Comparacion.xlsx")
boxplot(datos$PlayStation ~ datos$Xbox, col="Red")
cor(datos)
## PlayStation Xbox
## PlayStation 1.0000000 0.9528232
## Xbox 0.9528232 1.0000000
pairs(datos)
WILK
shapiro.test(datos$PlayStation)
##
## Shapiro-Wilk normality test
##
## data: datos$PlayStation
## W = 0.97292, p-value = 0.002259
shapiro.test(datos$Xbox)
##
## Shapiro-Wilk normality test
##
## data: datos$Xbox
## W = 0.95947, p-value = 8.533e-05
hist(datos$PlayStation, col="Blue")
hist(datos$Xbox, col="Light Green")