Professional Documents
Culture Documents
csv"
usedcarsales=read.csv(file.choose())
# + DATA VIZUALIZATION
# getting distorted.
sd(usedcarsales$Price)
install.packages("psych")
library(psych) # Activate for Function use
# Skewness
# Kurtosis
describe(usedcarsales$KM)
# Q3, InterQuartileRange=Q3-Q1
# Q1 - 1.5 X IQR(Q3-Q1)
# Q3 + 1.5 X IQR(Q3-Q1)
boxplot(usedcarsales$Price,horizontal = T)
plot(density(usedcarsales$Price))
# Correction Strategies - Skewness
# Root Transformation
# Transformation
boxplot(log(usedcarsales$Price),horizontal = T)
plot(density(log(usedcarsales$Price)))
hist(usedcarsales$KM)
boxplot(usedcarsales$KM,horizontal = T)
plot(density(usedcarsales$KM))
table(usedcarsales$FuelType)
table(usedcarsales$Doors)
table(usedcarsales$FuelType,usedcarsales$Doors)