Thursday, January 12, 2012

HOW CAN I USE LINEAR REGRESSION IN MY REAL LIFE?



Sometime in our life, we have huge investment to do and it is useful to take few hours to investigate instead of waiting commercial advisor that the aim is to earn money on you because either you are ignorance or you hurry to invest on what you need to do. Suppose you are selling your house and you want to know what a good market price would be. This article’s aim is to open your mind about what you can do to save money (buyer) or earn money (seller) if you decide to buy or sell your house.

First step: collect information on recent houses sold in your region.
size of the house
(square feet)
number of bedrooms
Price (US$)
2104
3
399900
1600
3
329900
2400
3
369000
1416
2
232000
3000
4
539900
1985
4
299900
1534
3
314900
1427
3
198999
1380
3
212000
1494
3
242500
1940
4
239999
Source: housing prices in Portland, Oregon
The first column is the size of the house (in square feet), the second column is the number of bedrooms, and the third column is the price of the house.

Dataset visualization.

Second step: download octave software and install it on your laptop or desktop.

Third step: download the program, modify parameters and execute it in your octave.
The parameters of the program are the location of your raw file, Number of bedroom in your house and the size.

Last step: take your conclusion.
The model predicts the price of a house (1650 square feet, 3 bedrooms) to US$293081.4634. Meantime, someone who has 1650 square feet and 4 bedrooms the predicted price is US$284343.445.

If you need the code of the program you can contact me 



No comments:

Post a Comment