SlideShare una empresa de Scribd logo
1 de 12
CLASSIFICATION MODEL FOR BRICK/NON BRICK
HOUSES IN US

Presented By : Ashish Ranjan
Vaibhav Jain
AGENDA
Introduction & Objective
Variables
Data Set
Rattle Implementation
Distribution of Variables – Histogram
Decision Tree Overview
Induction of Decision Tree
Model Evaluation : Receiver Operating Characteristic
Conclusion
CASE STUDY – INTRODUCTION &
OBJECTIVE
Mr. Peter in US, after completing his MBA from University
of California started working with a realtor Mannubhai
Patel, who has hired him as a business analyst.
Mannubhai has told him that they are in the competitive
New York retail market and therefore he needs all the help
from him to get ahead.
Peter brainstormed a bit and skills to make his Boss
understand the classification of Brick and Non Brick
Houses relation with Price in US Real Estate Sector. He
has collected some data to analyze.
Source of Data – www.analyticstraining.in
VARIABLES

House Prices.xls contains data on 128 recent sales of single-family
houses in MidCity. The variables are:
Price: Price at which house was eventually sold
SqFt: Floor area in square feet
Bedrooms: Number of bedrooms
Bathrooms: Number of bathrooms
Offers: Number of offers made on the house prior to the
accepted offer
Brick: Whether the construction is primarily brick or not (yes or
no)
Neighborhood: One of the three neighborhoods in MidCity
(east, west or north)
Zone/Brick
East
North
West

No
26
37
23
86

Yes
19
7
16
42

45
44
39
128
DATA SET
RATTLE IMPLEMENTATION

Target Variable:
Brick
DISTRIBUTION OF VARIABLES

Min: .69 , Max: 2.1 , 1st Qu : 1.1, 3rd Qu : 1.5,
Mean : 1.3, Median : 1.26 (All figures in Lakhs)
Continue..

Min: 1520, Max: 2590, 1st Qu : 1900, 3rd Qu : 2150,
Mean : 2018, Median : 2000
DECISION TREE
INDUCTION OF DECISION TREE
Gini Index Calculation[1-SUM(P^2)]
ROOT Node
Internal price node
Internal neighbourhood
node
Internal SQ FT NODE

0.4278
0.3078
0.3648
0.4422

0.12Diff b/w Root and Internal price node
Diff b/w Root and Internal
0.063neighbourhood Node

Information Gain Calculation[-SUM(PLOG 2 (P)]
GAIN
ROOT Node
0.893173458
0.1917019
Internal price node
0.70147146
98Diff b/w ROOT and Internal price node
Internal neighbourhood
0.0981331Diff b/w Root and Internal
node
0.795040279
79neighbourhood Node

ACTUAL

NO
YES
TOTAL
ACCURACY(TP+TN/P+N)
ERROR
RATE(FP+FN/P+N)

CONFUSION MATRIX
PREDICTED
NO
(TN)14
(FN)3

YES
(FP)2
(TP)7
17
0.807692308
0.192307692

TOTAL
16
10
9
26
Model Evaluation : Receiver
Operating Characteristic (ROC)
CONCLUSION

 Brick houses are more costlier than wooden houses.
 Wooden houses are relatively light compared to brick and more flexible.
 Brick houses work well in cold climates as it retains natural heat whereas
wooden houses are used in areas where erosion & silt accumulation can damage
brick walls.
 Wooden houses are biodegradable, affordable, healthy & easier to renovate
than Brick.

Más contenido relacionado

Similar a Classify Brick and Non-Brick Houses Using Decision Trees

Predicting HDB resale price in Singapore
Predicting HDB resale price in SingaporePredicting HDB resale price in Singapore
Predicting HDB resale price in SingaporeValerie Lim
 
IRJET- House Rent Price Prediction
IRJET- House Rent Price PredictionIRJET- House Rent Price Prediction
IRJET- House Rent Price PredictionIRJET Journal
 
Home sales
Home salesHome sales
Home salesdtalbi
 
Managerial%20Economics.pptx
Managerial%20Economics.pptxManagerial%20Economics.pptx
Managerial%20Economics.pptxKomalSingh818576
 
Managerial Economis
Managerial EconomisManagerial Economis
Managerial EconomisSaad Khan
 
Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation - Parinds...
 Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation  - Parinds... Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation  - Parinds...
Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation - Parinds...Jigsaw Academy
 
Real estate regression model King County
Real estate regression model   King CountyReal estate regression model   King County
Real estate regression model King CountyThuPhungMBA
 

Similar a Classify Brick and Non-Brick Houses Using Decision Trees (7)

Predicting HDB resale price in Singapore
Predicting HDB resale price in SingaporePredicting HDB resale price in Singapore
Predicting HDB resale price in Singapore
 
IRJET- House Rent Price Prediction
IRJET- House Rent Price PredictionIRJET- House Rent Price Prediction
IRJET- House Rent Price Prediction
 
Home sales
Home salesHome sales
Home sales
 
Managerial%20Economics.pptx
Managerial%20Economics.pptxManagerial%20Economics.pptx
Managerial%20Economics.pptx
 
Managerial Economis
Managerial EconomisManagerial Economis
Managerial Economis
 
Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation - Parinds...
 Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation  - Parinds... Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation  - Parinds...
Jigsaw Mortgage Dex Data Analysis Competition Winner Presentation - Parinds...
 
Real estate regression model King County
Real estate regression model   King CountyReal estate regression model   King County
Real estate regression model King County
 

Último

Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...Any kyc Account
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsMichael W. Hawkins
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyEthan lee
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayNZSG
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfAdmir Softic
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 

Último (20)

Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
HONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael HawkinsHONOR Veterans Event Keynote by Michael Hawkins
HONOR Veterans Event Keynote by Michael Hawkins
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 

Classify Brick and Non-Brick Houses Using Decision Trees

  • 1. CLASSIFICATION MODEL FOR BRICK/NON BRICK HOUSES IN US Presented By : Ashish Ranjan Vaibhav Jain
  • 2. AGENDA Introduction & Objective Variables Data Set Rattle Implementation Distribution of Variables – Histogram Decision Tree Overview Induction of Decision Tree Model Evaluation : Receiver Operating Characteristic Conclusion
  • 3. CASE STUDY – INTRODUCTION & OBJECTIVE Mr. Peter in US, after completing his MBA from University of California started working with a realtor Mannubhai Patel, who has hired him as a business analyst. Mannubhai has told him that they are in the competitive New York retail market and therefore he needs all the help from him to get ahead. Peter brainstormed a bit and skills to make his Boss understand the classification of Brick and Non Brick Houses relation with Price in US Real Estate Sector. He has collected some data to analyze. Source of Data – www.analyticstraining.in
  • 4. VARIABLES House Prices.xls contains data on 128 recent sales of single-family houses in MidCity. The variables are: Price: Price at which house was eventually sold SqFt: Floor area in square feet Bedrooms: Number of bedrooms Bathrooms: Number of bathrooms Offers: Number of offers made on the house prior to the accepted offer Brick: Whether the construction is primarily brick or not (yes or no) Neighborhood: One of the three neighborhoods in MidCity (east, west or north) Zone/Brick East North West No 26 37 23 86 Yes 19 7 16 42 45 44 39 128
  • 7. DISTRIBUTION OF VARIABLES Min: .69 , Max: 2.1 , 1st Qu : 1.1, 3rd Qu : 1.5, Mean : 1.3, Median : 1.26 (All figures in Lakhs)
  • 8. Continue.. Min: 1520, Max: 2590, 1st Qu : 1900, 3rd Qu : 2150, Mean : 2018, Median : 2000
  • 10. INDUCTION OF DECISION TREE Gini Index Calculation[1-SUM(P^2)] ROOT Node Internal price node Internal neighbourhood node Internal SQ FT NODE 0.4278 0.3078 0.3648 0.4422 0.12Diff b/w Root and Internal price node Diff b/w Root and Internal 0.063neighbourhood Node Information Gain Calculation[-SUM(PLOG 2 (P)] GAIN ROOT Node 0.893173458 0.1917019 Internal price node 0.70147146 98Diff b/w ROOT and Internal price node Internal neighbourhood 0.0981331Diff b/w Root and Internal node 0.795040279 79neighbourhood Node ACTUAL NO YES TOTAL ACCURACY(TP+TN/P+N) ERROR RATE(FP+FN/P+N) CONFUSION MATRIX PREDICTED NO (TN)14 (FN)3 YES (FP)2 (TP)7 17 0.807692308 0.192307692 TOTAL 16 10 9 26
  • 11. Model Evaluation : Receiver Operating Characteristic (ROC)
  • 12. CONCLUSION  Brick houses are more costlier than wooden houses.  Wooden houses are relatively light compared to brick and more flexible.  Brick houses work well in cold climates as it retains natural heat whereas wooden houses are used in areas where erosion & silt accumulation can damage brick walls.  Wooden houses are biodegradable, affordable, healthy & easier to renovate than Brick.