Code Monkey home page Code Monkey logo

prediction-of-car-price's Introduction

Prediction of car price

data analysis with python

Data was collected from coursera skills network lab. we downloaded and saved in a pandas data frame. Data wrangling done by checking missing or null values and replace them with mean. we selected suitable columns for prediction of price. we standardized and normalized data. we created dummy label to categorical values. Exploratory data analysis was done by finding variables which have most impact on price. we done visualization to know relation between price and variables. we found correlation between bore, stoke, compression-ratio, horse power. engine-size have +ve linear relation with price. Highway-mpg have -ve linear relation with price. peak-rpm, price didn't have any relation. we saw relation between categorical values with price by box plot. we did descriptive statistical analysis. grouping was done for drive-wheels into 3 categories. we created pivot table for drive wheels & body style. we plotted heat map for body style, drive wheels & price. calculated Pearson correlation for different variables with price. The Analysis of Variance (ANOVA) is a statistical method done to test whether there are significant differences between the means of two or more groups. ANOVA returns two parameters: F-test score & p-value. we evaluated linear & multiple linear regression and visualize residual, regression scatter plots to check the model is fit or not. Created pipelines for linear, MLR & PR. we did in-sample evaluation. we have to compare SLR,MLR,PF models r2_square and MSE. which model have high r2_score and MSE is good fit Between SLR and MLR values of MSE and r2 score of SLR is smaller compare to values of MSE and r2 score of MLR so MLR is good fit. Between SLR and PF values of MSE and r2 score of PF is smaller than SLR so SLR is good fit. Between MLR and PF values of MSE of MLR is smaller than MSE of PF and r2 score of MLR is greater than r2 score of PF so MLR is good fit.

On all these models MLR(Multiple linear regression) is good fit.

prediction-of-car-price's People

Contributors

harshaveenakondeti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.