Giter Site home page Giter Site logo

advance-linear-regression-housing-price-prediction's Introduction

Prediction of House Prices using Ridge and Lasso Regression (Advanced Regression)

A US-based housing company named Surprise Housing has decided to enter the Australian market. The company uses data analytics to purchase houses at a price below their actual values and flip them on at a higher price. For the same purpose, the company has collected a data set from the sale of houses in Australia. The data is provided in the CSV file below.

The company is looking at prospective properties to buy to enter the market. You are required to build a regression model using regularisation in order to predict the actual value of the prospective properties and decide whether to invest in them or not.

The company wants to know:

  • Which variables are significant in predicting the price of a house, and
  • How well those variables describe the price of a house.

Also, determine the optimal value of lambda for ridge and lasso regression.

Table of Contents

  • Importing the libraries
  • Loading the dataset
  • Checking for Null values
  • Outlier Treatment
  • Dropping varibale
  • Derived metric
  • Exploratory Data Analysis
  • Dealing with Categorical Variables using binary encoder
  • Model Building
    • Splitting the data into training and test set
    • Rescaling the features(MinMaxScaler)
    • Linear Regression model
    • Ridge Regression model
    • Lasso Regression model
  • Model Evaluation
  • Conclusions

Business Objective

You are required to model the price of houses with the available independent variables. This model will then be used by the management to understand how exactly the prices vary with the variables. They can accordingly manipulate the strategy of the firm and concentrate on areas that will yield high returns. Further, the model will be a good way for management to understand the pricing dynamics of a new market.

Libraries Used

  • Numpy
  • Pandas
  • Matplotlib
  • Seaborn
  • FilterWarnings
  • Sklearn

advance-linear-regression-housing-price-prediction's People

Contributors

ankit1063 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.