<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ayesha Mendoza on Medium]]></title>
        <description><![CDATA[Stories by Ayesha Mendoza on Medium]]></description>
        <link>https://medium.com/@ayesha.mendoza?source=rss-747868340f9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AZJVboKLfE7ByE0N7PMddQ.png</url>
            <title>Stories by Ayesha Mendoza on Medium</title>
            <link>https://medium.com/@ayesha.mendoza?source=rss-747868340f9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:19:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayesha.mendoza/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Pop Tay Tay vs. Country Taylor Swift:]]></title>
            <link>https://medium.com/@ayesha.mendoza/pop-tay-tay-vs-country-taylor-swift-7e3612b5de8?source=rss-747868340f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e3612b5de8</guid>
            <category><![CDATA[music]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[songanalysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-mining]]></category>
            <dc:creator><![CDATA[Ayesha Mendoza]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 22:02:26 GMT</pubDate>
            <atom:updated>2019-01-15T21:23:44.985Z</atom:updated>
            <content:encoded><![CDATA[<h4>Song Features Analysis using Clustering Analysis Techniques of Pop and Country Songs (1990s and onwards)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87n3r105VP1eo3n_yHLCpA.jpeg" /></figure><p>It seems to be getting harder to distinguish a country song from a pop song with the songs we hear these days. Is there really a difference between the two? Are there song features which will be able to classify these two genres?</p><p>Take Taylor Swift’s songs. When I first heard her music when she was just starting out, I wouldn’t have known she was a country singer if I did not see her among other country singers in country music award shows, performing and receiving awards for country music.</p><p>For this analysis, pop and country songs from 1990’s and onwards will be analyzed to answer the following questions:</p><ul><li>How does country and pop music differ?</li><li>Are there differences between the two music genres? Can we find some patterns that would differentiate these two music genres?</li><li>What patterns do we find with the song features?</li></ul><p>A larger dataset of pop and country songs will be first analyzed, where we will be working with songs which have been tagged with the word ‘pop’ or ‘country’ from the Million Songs Database <a href="https://labrosa.ee.columbia.edu/millionsong/"><em>https://labrosa.ee.columbia.edu/millionsong/</em></a>.</p><p>We will then see how these findings relate to Taylor Swift’s songs recorded as a country artist, and her songs after leaving country music and switching over to pop in 2014.</p><h4><strong>Song Feature Selection:</strong></h4><p>The following song features were extracted via the Spotify API:</p><p><a href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"><strong>Spotify Audio Features</strong></a></p><ul><li><strong><em>acousticness</em></strong>: describes how many acoustic sounds the track has vs. how many electric sounds [0.0 to 1.0]</li><li><strong><em>danceability</em></strong>: describes how suitable a track is for dancing based on a combination of musical elements. [0.0 least danceable to 1.0 most danceable)</li><li><em>duration_ms</em></li><li><strong><em>energy</em></strong>: represents perceptual measure of intensity and activity. typically energetic feels fast, loud and noisy. [0.0 to 1.0]</li><li><em>instrumentalness</em></li><li><em>key</em></li><li><em>liveness</em></li><li><em>loudness</em></li><li><em>mode</em></li><li><em>speechiness</em></li><li><em>tempo</em></li><li><em>time signature</em></li><li><strong><em>valence</em></strong>: measure from [0.0 to 1.0] describes the musical positiveness conveyed by a track. Tracks with high valence sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence sound more negative (e.g. sad, depressed, angry)</li></ul><p><a href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-analysis/"><strong>Spotify Audio Analysis</strong></a><strong>: <br></strong><em>The length and average/median values below were derived from the Spotify Audio Analysis values extracted.</em></p><ul><li><em>bar length</em>: a bar or measure is a segment of time as a given number of beats</li><li><em>beats length</em>: The time interval of beats throughout the track. A beat is the basic time unit of a piece of music.</li><li><em>sections length</em>: defined by large variation in rhythm or timbre e.g. chorus, verse, bridge, guitar solo etc.</li><li><em>segment length</em>: each segment contains a roughly consistent sound throughout its duration</li><li><em>average &amp; </em><strong><em>median pitch</em></strong> — values from 0 to 1 that describe the relative dominance of every pitch in the scale.</li><li><em>average &amp; </em><strong><em>median timbre</em></strong> — timbre is the quality of musical note or sound that distinguishes different types of musical instruments or voices.</li></ul><p>Six (6) features (those typed in <strong>bold</strong> above) will be used for this analysis.</p><p><em>The </em><a href="https://github.com/ayeshavm/SongFeatures_Unsupervised"><em>git repo</em></a><em>/notebook will contain the data cleansing and the analysis done showing how we arrived with using just six (6) of the song features. The Jupyter notebook for this project can be accessed </em><a href="https://github.com/ayeshavm/SongFeatures_Unsupervised/blob/master/notebooks/00_SongsFeatureAnalysis_Unsupervised_Project.ipynb"><em>here</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*Wfko7w1trVOU3prooMAzcw.png" /><figcaption>Scatter Matrix for our six song features: danceability, energy, acousticness, valence, pitch, and timbre.</figcaption></figure><h4>Clustering Analysis and Results:</h4><p>The song features were processed through PCA for dimensionality reduction, to enable us to visualize in a 3D plot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*6QfQHg8n-3mcGtJhhztvUQ.png" /><figcaption>PCA components plotted in 3D, each group corresponds to each of the three cluster labels.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*dllaiTqd1RzvO8ElGuXXEQ.png" /><figcaption>PCA components plotted in 3D, where each group corresponds to the music genre (country vs. pop)</figcaption></figure><p>Looking at the 3D plot above, colored by genre, we can already see a huge overlap of country songs and pop songs across our feature space!</p><p>Let us look deeper into the resulting cluster features to see how our KMeans clustering broke down our clusters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnWJuDKUKpa8F8bis7RErA.png" /><figcaption>Cluster characteristics for KMeans (k=3)</figcaption></figure><p>Based on the clusters that were generated, we can see that the main features differentiating each of the clusters are: acousticness, energy, danceability and valence.</p><p>Cluster 0: low acousticness, high energy, low valence<br>Cluster 1: low acousticness, high energy, high valence, high danceability<br>Cluster 2: high acousticness, low energy, low valence</p><p>Let us look at how our country and pop songs were labeled and distributed across the three clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*jFykXk_IuBW1VNT8hJh4PA.png" /><figcaption>For Clusters 0 and 1, percentages of pop songs assigned to these clusters are slightly higher than the country songs. For cluster 2 country songs have a higher percentage than pop songs.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WT-R6avLRRjKD5-mNxH6Rw.png" /><figcaption>Distribution of Pop and Country songs by year range across all three (3) clusters. The graph shows that the year of the song does not affect how the songs were classified. Both country and pop songs are spread out across all clusters.</figcaption></figure><p>Let us see how the clusters would look like if we set the number of clusters to two (2), under the assumption that we have two classes of songs, one for each of the genres:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EU-3wwpwHQS0mIFHD13zog.png" /><figcaption>Cluster characteristics for KMeans (k=2)</figcaption></figure><p>The same features differentiate our two clusters where,</p><p>Cluster 0: low acousticness, high energy, high valence<br>Cluster 1: high acousticness, low energy, low valence</p><p>Let us look at how our country and pop songs were labeled and distributed across the two clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*X3WIe9NF31qtRnL6I3XYIw.png" /><figcaption>More than 50% of both country and pop songs have been labeled as Cluster 0, although a larger percentage of pop songs were labeled as Cluster 0 (low acousticness) compared to country songs, while a larger percentage of country songs were labeled as Cluster 1 (high acousticness).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJqS5Km1EqhP-uFLaADaSw.png" /><figcaption>Distribution of Pop and Country songs by year range across the two clusters. The graph shows that the year of the song does not affect how the songs were classified. Both country and pop songs are spread out across all clusters.</figcaption></figure><p>Looking at how our songs were labeled by the KMeans clustering algorithm, we can see that we have both country and pop songs assigned in each of the different clusters. Our results show that the song features do not distinctly classify pop songs and country songs separately, but instead it shows that both pop and country songs share the same song features.</p><p>So what was the big deal with <a href="https://www.savingcountrymusic.com/taylor-swift-leaving-country-the-deeper-impact/"><em>Taylor Swift leaving country music in 2014</em></a><em> </em>? <br>Can we see any major differences in the song features of Taylor Swift’s songs as a country artist, and her songs as a pop artist?</p><p>Processing Taylor Swift songs through our KMeans clustering algorithm, it produces clusters with similar attributes:</p><p>Cluster 0 — low acousticness, lower energy (than cluster 2), lower valence (than cluster 2)<br>Cluster 1 — high acousticness, low energy, low valence<br>Cluster 2 — low acousticness, high energy, high valence, high danceability</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rX4hGUAxAtU6fMRrTzA7Kw.png" /><figcaption>Cluster characteristics for clusters generated withTaylor Swift Songs processed using KMeans (k=3)</figcaption></figure><p>Looking at the clusters generated above, we can see that Clusters 0 and 2 are very similar, with Cluster 0’s values slightly lower than Cluster 2. Let us see how the clusters would look like if we just create two clusters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQJYKeZIZJkXCVqDY3-6YQ.png" /><figcaption>Cluster characteristics for clusters generated with Taylor Swift Songs processed using KMeans (k=2)</figcaption></figure><p>Processing Taylor Swift’s songs in our KMeans, with k=2, results to the following clusters:</p><p>Cluster 0 — high acousticness, low energy, low valence<br>Cluster 1 — low acousticness, high energy, high valence</p><p>If we try to visualize Taylor Swift’s songs to see how they are labeled and distributed across the different clusters, we can see below that there is a mix of country and pop songs in each of the clusters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--8fVPjm6voJkFyAYLf3Lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtWz-Gbdgt-nlY5vMqubqw.png" /></figure><h3>Findings:</h3><ol><li>The cluster characteristics produced by our clustering algorithm have the following features:</li></ol><ul><li>high acousticness, low energy, low valence</li><li>low acousticness, low energy, low valence,</li><li>low acousticness, high energy, high valence</li></ul><p>2. With the audio features we were able to collect from Spotify, none of these features could clearly distinguish a country song from a pop song. Although a slightly higher percentage of country songs are classified under the cluster with high acousticness, and a slightly higher percentage of pop songs are classified under clusters with low acousticness, our results still show a large overlap in values for these features for these two music genres, that is pop and country songs are spread out across all three clusters.</p><h3>Summary:</h3><p><em>To answer the questions we have initially formulated:</em></p><h4>How does country and pop music differ?</h4><p>Surprisingly, it appears that there are no distinct differences between the country and pop music for songs released in the 1990s and onwards, at least for the given features we were able to extract from Spotify.</p><h4>Are there differences between the two music genres? Can we find some patterns that would differentiate these two music genres?</h4><p>With the analysis done using the song features extracted from Spotify, there are no distinct differences between these two genres, and the clusters generated were not able to distinctly classify these two genres, as shown in the large overlap between country songs and pop songs across the clusters.</p><h4>What patterns do we find with the song features?</h4><p>We did find that the main features making up the clusters were the acousticness, energy, and valence, where one cluster has a distinctly low acousticness value, and the other two clusters with high acousticness varies in energy and valence.</p><p>__________________________________________________________________</p><p>Country and pop songs from 1990’s onwards appear to have the same features, other than country songs are sang with a distinct southern accent perhaps??? — We will need an accent detector to prove that, and is out of scope for this analysis.</p><p>From our findings, it does not seem like the song features we have gathered define the genre, at least for country and pop music. <em>With the current pop and country music scene, could it be that it is more the people (where they are from, their personality, the culture they associate with) rather than the song that defines the genre???</em> What are your thoughts?</p><h4>Lessons Learned:</h4><p>When I started out on this project I had the assumption in my head that pop and country songs are different, because they are different genres of music. I initially struggled looking for features and was becoming frustrated that I am unable to see distinct clusters between these two genres, until I decided to let go of the assumption, and let the data and the clustering algorithm do what it does, to show us what is — which is the beauty and magic of data and data science, it is able to answer and clarify the assumptions (false or true) we have in our minds. It is able to give us information we would not have known otherwise if we are just merely observing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e3612b5de8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Data Analysis on Airbnb Properties in Paris]]></title>
            <link>https://medium.datadriveninvestor.com/exploratory-data-analysis-on-airbnb-properties-in-paris-bce61bd680c8?source=rss-747868340f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bce61bd680c8</guid>
            <category><![CDATA[airbnb]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[paris]]></category>
            <dc:creator><![CDATA[Ayesha Mendoza]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 21:18:50 GMT</pubDate>
            <atom:updated>2018-09-18T16:34:17.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kX3Cc9yvvrBziKgR4t5F0A.jpeg" /></figure><p>When traveling to Europe and booking an Airbnb rental property for a vacation, I try to spend less on lodging to be able to afford good dining and tours. For Paris specifically, I find that the options close to the centre, that is close to the top attractions i.e. Eiffel tower, Champs Elysees are pricier, and most of the properties are unavailable as well, so I end up staying further from the centre, and when I do, I am always worried that I might have booked a property that is way too far out from the centre of the city, and or far from a metro station — since actual location is not provided until after you have made the reservation, or unless you contact host and ask. Distance to the station is relative depending on how far one is willing to walk, but for me, more than half a mile walk to a station is considered far, since I feel I have to save all my energy for the leisurely walking one does around Paris.</p><p><strong>The purpose of this EDA is to explore and answer the following questions:</strong></p><ol><li>How does location influence property rental price?</li></ol><ul><li>What are the options for being able to stay close to the center with a budget of less than $100?</li><li>What other features drive the price of an airbnb rental property?<br>i.e. price vs location, price vs distance from a top attraction, etc.</li></ul><p>2. What features affect the availability of an Airbnb property?</p><p>3. Recommend Airbnb properties given a certain criteria, and enable a more informed decision for the traveler:</p><ul><li>walking distance to one of the top attractions (within 2 miles)</li><li>walking distance to metro station (within 1 mile)</li><li>rating &gt;= 9</li><li>other user defined criteria i.e. (number of beds, bedrooms, price, etc.)</li></ul><h3>The EDA process:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdgPEwAodoUUeuxRoy0yRQ.png" /></figure><h3>Datasets:</h3><p>The Airbnb dataset was downloaded from the OpenDataSoft website below. The data was filtered to only extract and download data pertaining to Paris, France Airbnb rental properties.</p><p><a href="https://public.opendatasoft.com/explore/dataset/airbnb-listings/table/?disjunctive.host_verifications&amp;disjunctive.amenities&amp;disjunctive.features&amp;refine.city=Paris&amp;dataChart=eyJxdWVyaWVzIjpbeyJjaGFydHMiOlt7InR5cGUiOiJjb2x1bW4iLCJmdW5jIjoiQ09VTlQiLCJ5QXhpcyI6Imhvc3RfbGlzdGluZ3NfY291bnQiLCJzY2llbnRpZmljRGlzcGxheSI6dHJ1ZSwiY29sb3IiOiJyYW5nZS1jdXN0b20ifV0sInhBeGlzIjoiY2l0eSIsIm1heHBvaW50cyI6IiIsInRpbWVzY2FsZSI6IiIsInNvcnQiOiIiLCJzZXJpZXNCcmVha2Rvd24iOiJyb29tX3R5cGUiLCJjb25maWciOnsiZGF0YXNldCI6ImFpcmJuYi1saXN0aW5ncyIsIm9wdGlvbnMiOnsiZGlzanVuY3RpdmUuaG9zdF92ZXJpZmljYXRpb25zIjp0cnVlLCJkaXNqdW5jdGl2ZS5hbWVuaXRpZXMiOnRydWUsImRpc2p1bmN0aXZlLmZlYXR1cmVzIjp0cnVlfX19XSwidGltZXNjYWxlIjoiIiwiZGlzcGxheUxlZ2VuZCI6dHJ1ZX0%3D">Airbnb Paris Dataset</a><br>Paris RER/metro dataset was downloaded from the website below and will be used for further exploration:</p><p><a href="https://data.ratp.fr/explore/?sort=modified">Accessibilite des gares et stations de Metro</a></p><h3>Limitations:</h3><ul><li>the Airbnb data from OpenDataSoft was last updated in 2017, availability information will be based on what has been captured from the last update.</li><li>Historical data for the property prices and availabity are not available, so we are unable to check for variability of price and availability on different seasons/time.</li><li>For computing distances, Haversine formula was used, which would be a good estimate for computing the distance between two points, but this distance could be different from the actual walking distance.</li></ul><h3>Cleaning the Data:</h3><p>The geojson file format was read and used for this analysis. The original download file has eighty-six (86) columns, columns which are not needed for analysis, i.e. calendar_last_scraped, calendar_updated, listing_url, etc. were dropped to minimize columns and focus on cleaning and analysis of data which will be useful this EDA.</p><p>The ‘city’ column was dropped from the file as well, since all the records downloaded are those pertaining to Airbnb rental properties in Paris, France.</p><p>Further research on zipcodes was done, and found that zipcodes 75001–75020 correspond to Arrondissements 1 through 20 in Paris. Since analysis will be focused on properties within the centre of Paris, the records with zipcodes outside of this range were deleted.</p><p>*More information on Paris Arrondissements in wikipedia: <a href="https://en.wikipedia.org/wiki/Arrondissements_of_Paris">https://en.wikipedia.org/wiki/Arrondissements_of_Paris</a></p><h3>Missing Values:</h3><p>Missing values in beds and bedrooms were imputed using the following rules:</p><ul><li>If ‘beds’ has a missing value, and ‘bedrooms’ has a valid value, ‘beds’ is set with the value of ‘bedrooms’.</li><li>If both ‘bedrooms’ and ‘beds’ are missing, both fields are set to 1, which is the average number of beds and bedrooms, and it would be safe to assume that if a property is being rented out in Airbnb, that there is at least one bed, and we will count that as one bedroom, regardless if the property is a studio apartment, where there is no pyhsical division between the rooms.</li></ul><p>There were several records as well with missing ‘scores’ value, a new column ‘rating_ind’ was created to flag rated = 1, versus unrated = 0 records, so further analysis can be done between these two populations. The record was flagged as rated, if all the score values have been populated, and set to unrated, if at least one of the score values has not been populated.</p><h3>Data Transformation and Feature Engineering:</h3><p>The following fields were derived and added to the dataset:</p><p>1) arrondissement — this was derived from the last two digits of the zipcode</p><p>2) arrond_name — arrondissement name was populated and compared with the values populated in the neighbourhood_cleansed field. There were some differences found, since no information is available on how the neighbourhood_cleansed field was derived, for the sake of consistency with the categorizing by Arrondissement, the arrond_name will be used for analysis instead of the neighbourhood_cleansed field.</p><p>3) A column for each of the Distances between the Airbnb property and each of the <a href="https://www.tripadvisor.com/Attractions-g187147-Activities-Paris_Ile_de_France.html#ATTRACTION_SORT_WRAPPER">2018 top 10 attractions in Paris</a> were derived as well using the <a href="https://community.esri.com/groups/coordinate-reference-systems/blog/2017/10/05/haversine-formula">Haversine forumla</a>, and these features were used to analyze and determine relationship with the rental property price.</p><p>[“Musee d’Orsay”, “Sainte-Chapelle”, “Palais Garnier — Opera”, “Notre Dame Cathedral”, “Musee de l’Orangerie”, “Luxembourg Gardens”, “Louvre”, “Eiffel”, “Pont Alexandre III”, “Le Marais”]</p><p>4) close_to_attraction — this is an indicator if the property is within 2 miles of one of the top 10 attractions.</p><p>5) closest_attraction — this will contain name of the attraction closest to the Airbnb property.</p><p>6) attraction_dist — distance between the Airbnb property and the closest attraction.</p><p>7) site_count — number of attractions within 1 mile of the Airbnb property.</p><h3>Exploring the Data:</h3><p>Plotting the Airbnb rental property prices out shows us that the price of Airbnb rental properties in Paris has a right-skewed unimodal distribution. We can see from the graph below it shows that majority of the properties are rented out are below $200, with the average below $100 which is at $93.72, with the median only at $75. We can see that there are some outliers — properties over \$400, causing a huge difference between the mean and the median price, and for the distribution to be right skewed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*kugN0ehRetHDH0hC8F17Tw.png" /></figure><h4>1) What features drive the price of an Airbnb rental property?</h4><p>The plot below shows the correlation of the other features with the Airbnb rental property price:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*w_C-3gZLE6BqIWyfxGQKQw.png" /></figure><h4>cancellation_policy</h4><ul><li>We can see that the properties with ‘strict’ cancellation policy have a positive correlation with the price, while those with ‘moderate’ and ‘flexible’ cancellation policies have a negative correlation with the price. But, is cancellation policy driving the price? Or some other attribute, such as location or number of reviews could be affecting this relationship — where properties further from top attraction sites, have lower prices, and since they are not in a good location, and hosts will have less strict cancellation policies to attract more Airbnb<br>customers. Let us explore this further:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*q1VVF5e_AefL5b0F1NakYg.png" /></figure><ul><li><em>Cancellation policy vs Number of Sites within 1 mile of Airbnb property</em></li></ul><p>The plot below shows that 50% of properties with a ‘strict’ cancellation policy have more than one (1) Top attraction within one mile of the property, whereas properties with ‘moderate’ and ‘flexible’ cancellation policies would have zero to one Top attraction within one mile of the Airbnb property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*gqj2ZhHs2gwU5V-U8fWUDw.png" /></figure><ul><li><em>Cancellation policy vs. Distance to Closest Attraction</em></li></ul><p>The plot below shows that properties with ‘strict’ cancellation policies have lower median prices compared to the properties with ‘flexible’ and ‘moderate’ cancellation policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*nPUPt_mq7_2NN0zuIcMDFA.png" /></figure><ul><li><em>Cancellation policy vs. Number of Reviews</em></li></ul><p>The plot below shows that properties with ‘strict’ cancellation policies have more number of reviews compared to those of with ‘flexible’ and ‘moderate’ cancellation policies, except for those with a ‘super_strict_60’ cancellation policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*8rREnj1OxZPPPbuIZH0IWw.png" /></figure><h4>arrondissement</h4><ul><li>Price ~ Arrondissement: shows a negative correlation. Lower arrondissements have higher mean price</li></ul><p>Arrondissement values are negatively correlated with the price, that is, the Airbnb properties in the lower Arrondissements on average costs more than the properties in the higher arrondissements, which is what the graph below shows. Although it appears that rental prices in Arr 8 — Champs Elysees costs the most, and Arr 9 — Opera has a lower rental prices compared to arrondissements 1–8. This could be because Champs Elysees is generally a pricier neighborhood in Paris, and it is a very famous avenue in Paris.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*TvYEATM7GpNz_6hEWyax_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*6PRdrjjSLrQ7GBkhsl86_Q.png" /></figure><h4>site_count, close_to_attraction</h4><ul><li>site_count and close_to_attraction are positively correlated to the Airbnb rental property price. We can see that the average cost of properties increase as the number of attractions within one (1) mile of the Airbnb property (site_count) increases.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*uOfZhklbNidaJEkeLoNb3g.png" /></figure><h4>attraction_dist</h4><ul><li>distance of a property to an attraction is negatively correlated to the Airbnb rental property price</li></ul><h4>beds, bedrooms, bathrooms, accommodates</h4><ul><li>number of beds, bedrooms, bathrooms, and accommodation are all positively correlated to the Airbnb rental property price</li></ul><h4>2) What features affect the availability of the Airbnb property in the next 30 days (availability_30) ?</h4><p>Below is a correlation plot between the Availability_30 and other property features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*QzVh3nW91IAYJ65-uYE0BA.png" /></figure><h4>price</h4><p>The correlation plot above shows a strong positive correlation between the price and the availability of the property.</p><p>With regards to the availability, the graphs below show that the price does have some affect on the availability of the Airbnb rental properties in Paris. Properties available for less than 5 days have a lower average price compared to properties which are available for 5 or more days in the next 30 days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*egHXmcccJJ2sYVvITtWgIw.png" /></figure><p>If we look at availability of Airbnb rental properties by price range, we can see that for properties within $100/night budget the options for available properties are much less in Arrondissements 1 through 8, increasing your budget will give you better chances of getting a property close to the attractions (in Arrondissements 1 through 8), and if that is not an option, renting outside of arrondissments 1 through 8 will give one a better option of renting out a property within the $100/night budget.</p><h4>arrondissement</h4><p>There is a negative correlation between Availability_30 and the arrondissements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*yjZFW7fSEqJAcy2JGMTlxw.png" /></figure><h4>rating_ind</h4><p>The graph above shows all properties, that is for both rated properties, and unrated which includes properties with incomplete scores. If we break down the availability of properties, we can see that we have higher availability for ‘unrated’ properties, which is what we are expecting, since people tend to stay in places with higher ratings, where previous renters have had a good experience staying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*cREj_eV6zh1Oz9OOc25b0A.png" /></figure><h4>attraction_dist</h4><ul><li>distance of a property to an attraction is negatively correlated to the Airbnb availability.</li></ul><h4>beds, bedrooms, bathrooms, accommodates</h4><ul><li>number of beds, bedrooms, bathrooms, and accommodation are all positively correlated to the Airbnb availability_30.</li></ul><h4>cancellation_policy</h4><ul><li>We can see that the properties with ‘strict’ cancellation policy have a positive correlation with the availability, while those with ‘moderate’ and ‘flexible’ cancellation policies have a negative correlation with the availability, which shows that customers tend to book more Airbnb properties with ‘moderate’ and ‘flexible’ cancellation policies, than those with ‘strict’ cancellation policies</li></ul><h4>site_count, close_to_attraction</h4><ul><li>site_count and close_to_attraction are positively correlated to the Airbnb availability</li></ul><h4>3) Further Analysis…</h4><p>After filtering the dataset down further to get closer to the recommendations, the dataset was filtered to only include Airbnb properties which are within 2 miles of one of the top attractions, AND within 1 mile of a RER/metro station. Finding that most of the properties are within 2 miles of a top attraction, and a mile from a station, the dataset was then classified further to get number of Attractions within 1 mile of the Airbnb property, and number of stations within 0.2 miles of the property.</p><p>We can see that the properties which are not within a mile of any of the top attraction has the lowest median price, those which have at least one attraction within 1 mile (1 to 4 attractions), median price are pretty close, and those which are within a mile to more than five (5) attractions, have the higher median price.</p><p>It is the same for properties and its closeness to a station. Those properties which are beyond 0.2 miles to a station has the lowest median price. Those with at least one station within 0.2 miles (1–2 stations) median price are pretty close to each other, and those with 3–4 stations within 0.2 miles have the higher priced properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*c53t_V7GFHPsgQt2uNS3kQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*Ut7ggPtAfvUGvT7qLBnnYQ.png" /></figure><h3>Summary:</h3><h4>1) How does location influence property rental price?</h4><p>Based on our findings, we did confirm that the location is correlated to the Airbnb property price by looking at the following features: arrondissement, site_count, attraction_dist.</p><h4>2) What features affect the availability of an Airbnb property?</h4><p>Our analysis showed that the price of the Airbnb property highly correlated to the availability of the Airbnb Paris property. Other features identified which drives or impacts the availability of the Airbnb property are the rating indicator (rated or unrated), location — i.e. Arrondissement, site count, attraction distance, close to Attraction, Number of Accommodation, Beds, bedrooms, and bathrooms, and the cancellation policy.</p><h4>3) Airbnb Paris Recommendations</h4><p>Recommendation filter 1:</p><ul><li>properties which are within 1 mile at least one of the top attractions</li><li>Room type == Entire home/apt</li><li>property is within 0.2 miles more than 2 stations</li></ul><p>Recommendation filter 2: (if #1 filter results to less than 20 properties, results from #2 will be added to the recommendation list)</p><ul><li>properties which are within 1 mile at least one of the top attractions AND</li><li>Room type == Entire home/apt AND</li><li>property is within 0.2 miles at least 2 stations</li></ul><p>Below are Recommended Airbnb properties with the base criteria below, and additional filters applied as defined in Recommendation filters 1 and 2:</p><ul><li>Beds: &gt;= 1</li><li>Accomodates &gt;= 2</li><li>Available_30 &gt;= 5 days</li><li>Price Max: $85</li><li>Rating Ind = 1 (rated properties only)</li><li>Room type = Entire home/Apt</li><li>Review_Scores_Rating = 100.0</li></ul><p><strong>Paris Map with recommendations can be viewed below:</strong></p><p><a href="https://cdn.rawgit.com/ayeshavm/K2_Project2_EDA/8de36452/images/paris_map.html">Paris_map</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bce61bd680c8" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/exploratory-data-analysis-on-airbnb-properties-in-paris-bce61bd680c8">Exploratory Data Analysis on Airbnb Properties in Paris</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>