Skip to content

Instantly share code, notes, and snippets.

@victorkurauchi
Last active December 9, 2017 13:34
Show Gist options
  • Save victorkurauchi/6e3a7f071b7ef51951076172b7fe4fa6 to your computer and use it in GitHub Desktop.
Save victorkurauchi/6e3a7f071b7ef51951076172b7fe4fa6 to your computer and use it in GitHub Desktop.
Estatistica - Conceito Boxplot R language
summary(Valor)
#Min. 1st Qu. Median Mean 3rd Qu. Max.
#50000 95000 120000 144600 182500 362400
#Mínimo = 50000
#Maximo = 362400
#Q1 = 95000
#Q2 = 120000
#Q3 = 182500
#Interquartil = 87500
#Limite1 = q3 + 3 * IQ = 445k
#Limite 2 = q3+1,5* IQ = 313.750
#Limite3 = q1 -1,5* IQ = -36.250
#Limite4 = q1-3* IQ = -167.500
#Ponto extremo => 445k
#Outlier => mAIORES QUE 313750
arquivo$outlier_valor =arquivo$Valor
arquivo$outlier_valor =ifelse(arquivo$outlier_valor<313750,"0","1")
summary(arquivo$Valor)
summary(arquivo$Valor[arquivo$outlier_valor == 0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment