grasimus commited on
Commit
3793bcb
Β·
verified Β·
1 Parent(s): 8afe9aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -30
README.md CHANGED
@@ -7,25 +7,13 @@
7
  > *(Place your video link or embed here once recorded)*
8
  > Example: `<video src="YOUR_VIDEO_URL" controls style="max-width: 720px;"></video>`
9
 
10
- ---
11
-
12
- ## Table of Contents
13
- 1. [Dataset Description](#1-dataset-description)
14
- 2. [Exploratory Data Analysis](#2-exploratory-data-analysis)
15
- 3. [Baseline Model](#3-baseline-model)
16
- 4. [Feature Engineering & Clustering](#4-feature-engineering--clustering)
17
- 5. [Improved Models](#5-improved-models)
18
- 6. [Winning Regression Model](#6-winning-regression-model)
19
- 7. [Regression to Classification](#7-regression-to-classification)
20
- 8. [Classification Models](#8-classification-models)
21
 
22
  ---
23
 
24
  ## 1. Dataset Description
25
 
26
- **Dataset:** NYC Rolling Sales Data
27
- **Source:** NYC Department of Finance (publicly available via Kaggle / NYC Open Data)
28
- **Size:** ~80,000+ rows after cleaning, 21+ original features
29
 
30
  **Features include:**
31
  - **Numeric:** SALE PRICE (target), GROSS SQUARE FEET, LAND SQUARE FEET, YEAR BUILT, RESIDENTIAL UNITS, COMMERCIAL UNITS, TOTAL UNITS
@@ -59,7 +47,7 @@ The first step in any data science project is loading the raw data and performin
59
  After the structural cleaning, I address domain-specific issues in the target variable and key numeric features. Raw sale records include many entries that do not represent real market transactions.
60
 
61
  **Issues fixed:**
62
- - **Zero or near-zero sale prices** (e.g. $0 or $1) typically represent family transfers, estate settlements, or administrative corrections β€” not real market transactions. I keep only sales above **$10,000**.
63
  - **Zero gross square footage** is a data entry error. A property cannot have zero floor area and a valid sale price.
64
  - **Year built = 0** means the year of construction is unknown, which would produce nonsensical `Age_at_Sale` values in feature engineering.
65
 
@@ -67,20 +55,7 @@ After the structural cleaning, I address domain-specific issues in the target va
67
 
68
  ---
69
 
70
- ### Step 3 β€” Descriptive Statistics
71
-
72
- Before creating visualizations, I summarize the data numerically. Descriptive statistics give me an overview of the central tendency, spread, and range of every numeric column β€” helping me spot remaining anomalies and understand the scale of each feature.
73
-
74
- **Key things I looked for:**
75
- - **Mean vs. median:** If the mean is much larger than the median, the distribution is right-skewed (very common for prices and sizes in real estate)
76
- - **Min/max values:** Are there still implausible extremes after cleaning?
77
- - **Standard deviation:** How spread out is each feature?
78
-
79
- > πŸ“Š **[INSERT SCREENSHOT: Descriptive statistics table β€” the output of `df.describe().T`]**
80
-
81
- ---
82
-
83
- ### Step 4 β€” Correlation Analysis
84
 
85
  A correlation matrix shows how strongly each pair of numeric features moves together. Values close to **+1** mean two features increase together; values near **0** mean no linear relationship.
86
 
@@ -92,9 +67,12 @@ This analysis directly informed my feature selection decisions in Part 3.
92
 
93
  > πŸ“Š **[INSERT SCREENSHOT: Correlation heatmap β€” heatmap of all numeric feature correlations]**
94
 
 
 
 
95
  ---
96
 
97
- ### Step 5 β€” Outlier Detection (IQR Method)
98
 
99
  Even though I decided to keep high-value outliers, it is important to *quantify* them formally. I used the **Interquartile Range (IQR)** method β€” the standard statistical approach for identifying outliers:
100
 
 
7
  > *(Place your video link or embed here once recorded)*
8
  > Example: `<video src="YOUR_VIDEO_URL" controls style="max-width: 720px;"></video>`
9
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  ---
12
 
13
  ## 1. Dataset Description
14
 
15
+ **Dataset:** NYC Rolling Sales Data
16
+ **Size:** ~80,000+ rows after cleaning, 22 features
 
17
 
18
  **Features include:**
19
  - **Numeric:** SALE PRICE (target), GROSS SQUARE FEET, LAND SQUARE FEET, YEAR BUILT, RESIDENTIAL UNITS, COMMERCIAL UNITS, TOTAL UNITS
 
47
  After the structural cleaning, I address domain-specific issues in the target variable and key numeric features. Raw sale records include many entries that do not represent real market transactions.
48
 
49
  **Issues fixed:**
50
+ - **Zero or near-zero sale prices** typically represent family transfers, estate settlements, or administrative corrections β€” not real market transactions. I keep only sales above **$10,000**.
51
  - **Zero gross square footage** is a data entry error. A property cannot have zero floor area and a valid sale price.
52
  - **Year built = 0** means the year of construction is unknown, which would produce nonsensical `Age_at_Sale` values in feature engineering.
53
 
 
55
 
56
  ---
57
 
58
+ ### Step 3 β€” Correlation Analysis
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  A correlation matrix shows how strongly each pair of numeric features moves together. Values close to **+1** mean two features increase together; values near **0** mean no linear relationship.
61
 
 
67
 
68
  > πŸ“Š **[INSERT SCREENSHOT: Correlation heatmap β€” heatmap of all numeric feature correlations]**
69
 
70
+
71
+ **![image](https://cdn-uploads.huggingface.co/production/uploads/69d7aa949910f34b03f98b9d/Oyf_BkuVBfIeEqqgtG-VA.png)**
72
+
73
  ---
74
 
75
+ ### Step 4 β€” Outlier Detection (IQR Method)
76
 
77
  Even though I decided to keep high-value outliers, it is important to *quantify* them formally. I used the **Interquartile Range (IQR)** method β€” the standard statistical approach for identifying outliers:
78