Exploratory data analysis project of the real estate market in the city of Barranquilla, Colombia. 2021.
- A deep analysis of the real estate offers in Barranquilla, CO was carried out to achieve a better undestanding of the market, specifically the average price per square meter for each sector. It was made in order to help agents to make more accurate estimates of the valuation of each area and offer better advice to their clients.
- Data extracted from the real estate offers website metrocuadrado.com through web scraping. Final dataset with 7288 rows.
- Project tools: Octoparse for web scraping; Power BI/DAX for ETL, data modeling and visualization; Python and Excel.
- It is found that the real estate market is growing mainly towards the north of the city, the largest number of offers and the highest valuations of price per square meter are found there.
Currently there is no consolidated, clear and accessible information on the average value of the square meter per sector in the city of Barranquilla. This information is of great value in the real estate market as it helps real estate consultants to provide much more focused advice with more accurate prices, allowing their clients to find the property that best suits their needs more quickly.
Some specific questions needed to be answer such as: What is the average price per square meter per neighborhood in Barranquilla? Which sector has the greatest and least movement in the real estate market? How is the behavior of prices in relation to the built area? What is the most common internal distribution of offerted properties?
In the absence of an open database with the necessary information, the data was extracted from the real estate offers website www.metrocuadrado.com through web scraping using Octoparse. Running a pagination cycle, 7931 property records were obtained with the following attributes:
- Publication title (containing Property type and Neighborhood info)
- URL
- Sale price
- Area
- Number of rooms
- Number of bathrooms
In addition, a second data set (Neighborhoods and Sectors) from the official website of the District Mayor's Office was collected in order to standardize neighborhood's names and the sector they belong to.
Ater extrating the data it needed to be cleaned so it was uploaded into Power Query and made the following changes:
- Removed duplicates, errors and empty rows.
- Splited "Title" into two columms: "Property type" and "Neighborhood".
- The name of the neighborhoods was standardized and also locality was included by making a left outer join with the official data table of the District Mayor's Office.
- Set data types and format.
- Made a reference of the dataset and removed "URL" columm which wasa not relevant for the analysis.
- Outliers were treated specifically for "sale price" and "area". To identify them, the distribution of the values was analyzed and the columns were profiled using Power Query. Other criteria were included such as errors, values without logical sense and the target market to be addressed.
Data model was created as follows: one fact table (Properties) and two dimensional tables (Neighborhoods and Type of property). Average price per square meter metric was created using DAX by dividing the sale price by area.
- 7288 properties (clean records), 163 neighborhoods and 16 sectors (localidades) were analized. Sectors of municipalities adjacent to the city were included, such as Puerto Colombia, Galapa, Soledad, Tubará, among others.
- Offers distribution by type of property: For apartments, prices are concentrated between 255M and 540M with an average of 444M. For houses, between 400M and 950M with an average of 754M. And for the lots, prices are concentrated between 567M and 1800M with an average of 900 (Boxplot). Clearly, most offers are postulated for apartments. This is consistent with the boom of apartment and residential complexes construction projects taking place in the city.
- Offers analysis by location: The offers market remains mainly in these three sectors: North-Historic Center (50.8%), Riomar (35.1%) and Puerto Colombia (5.1%) (Bar Chart).
- Offers analysis by neighborhood: Top 5 neighborhoods with the highest number of offers: Altos del Prado, Altos de Riomar, Villa Santos, Villa Campestre and Ciudad Jardín (Table).
- Correlation Analysis:: As shown below, both apartments and houses have a stronger correlation between the price and the area of porperty, being slightly higher in apartmens(0.83) than houses (0.7). It was expected that the correlation between the price of the property and the number of bedrooms and bathrooms was not too high, however, it is surprising that both in apartments and houses the number of bathrooms is more correlated with the price.
A detailed analysis by type of property must be carried out. As shown before, the three types of property present in this study maintain very different price ranges and areas representing different markets. Therefore, it is necessary to separate the valuation analysis and the price per square meter by type of property. We will focus on Apartments and Houses as they are our target market.
- Average price per square meter: For this metric, it was necessary to calculate a DAX measure by dividing the price of each property by its built area.
- Valuation Estimate: To measure the appraisal of each neighborhood, many criteria are necessary including the average price per square meter of the sector, the age of the properties, the type of area (commercial or residential) and the future projection of the sector according to the land use plan. However, in this study we can only have a valuation estimate from the average price per square meter for both Apartments and Houses. Real estate agents must complement this estimate with additional information about the property in order to have a more accurate valuation.
Top 10 of the neighborhoods with the highest price per square meter. For Apartments market (left) and Houses market (Right):
Offers and Valuation Map:
- Apartment offers represent 72% of the total real estate market offers in the city, tending to be the type of property with the greatest facility to do business and giving a strong notion of the behavior demand.
- The 5 neighborhoods with the highest number of offers are Altos del Prado, Altos de Riomar, Villa Santos, Villa Campestre and Ciudad Jardín. All located at north sectors of the city: Riomar, Norte-Centro Histórico and Puerto Colombia.
- It is found that the neighborhoods with the highest valuation according to the price per m², are Buenavista, Paseo de la Castellana and Portal del Genovés.
- According to the above, the real estate market is growing mainly towards the north of the city since the largest number of offers and the highest valuations of price per square meter are found there.
- This information is of great value to real estate agents as it helps them to make more accurate estimates of the valuation of each area and offer better advice to their clients.