A Data Comparison Between East Coast and West Coast

Posted on Aug 2, 2017
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


As a car fan, Iโ€™ve been curious about the largest used car market in the world โ€“ the used car market of the United States. The economy and culture of this country have formed a special used car market with high volume and speed of trades. It would be interesting to get some data insights of the used car market with web scraping.

The website scraped is https://www.carfax.com/ . Carfax is a commercial web-based service that supplies vehicle history reports to individuals and businesses on used cars and light trucks for the American and Canadian consumers. This project focuses on visualizing the differences between East Coast and West Coast. Information on eight major cities was scraped, which include: Boston, New York City, Washington DC, Miami, Seattle, San Francisco, Los Angles and San Diego. 1000 samples from each of the eight cities are scraped. The scraped information contains body type, color, engine, mileage, model, price, drive type, model year, model name and make of each sample.

For car fans, car dealers, used car holders and used car buyers, this project provides answers to the following questions:

  1. What are the favorite makes, models, colors, engine type, body types of used cars in East Coast and West Coast?
  2. What's the common mileage range and price of used cars?
  3. What are the apparent differences of the used car market between East and West Coast?

Data Results and Discussion

Correlation of Price and Mileage

A Data Comparison Between East Coast and West CoastA Data Comparison Between East Coast and West CoastA Data Comparison Between East Coast and West Coast

The scatter plot of 8000 samples proves the intuitive idea that cars with lower mileage sellย at a higher price. Looking at the clusters, it can be found that Boston and New York like lower mileage cars, which indicate cars are sold at newer condition and people like changing cars. This indicates an important character of the used car market in the East Coast: higher fluidity. Seattle and San Diego have a different pattern where more cars being sold are at a much higher mileage. The boxplots prove that cities on the East Coast composed more lower mileage cars with higher price whereas West Coast used car market composes older cars and the price is lower.

Body Type and Engine Size

ย ย ย ย ย ย ย ย ย ย ย  Another interesting point to look at is the body types. Although it is clear that sedan and SUV are the most popular body types, New York, Boston and Washington DC have a much higher portion of SUVs than other cities. This may be the result of cold winter in these cities. On the other hand, cities on the West Coast like San Diego and San Francisco have more sedan than SUVs. The patterns shown on the Engine Size plot proves this point where SUVs have higher number of cylinders. One thing worth noticing on the Engine Size plot is that electric cars market is mostly located on the West Coast.

Popular Models and Makes

The popularity of a car can have an influence on the price and fluidity of its market. Toyota has a surprisingly big share of the used car market of most of the cities. Ford is the favorite brand for Washington DC and Seattle. Ford and Japanese brand like Toyota, Honda, Nissan dominate the used car market. New York is a big fan of BMW and Lexus. This may relate to the luxury car rental service of New York.

From the plot of popular models, we can see that West Coast likes hybrid cars like Prius, Prius Plug-in and Camry. Fusion and Focus are the representatives of American cars.

Other Findings

Front Wheel Drive cars dominate the market in West Coast and Miami while All Wheel Drive cars dominate the markets in other cities. This can be explained by the difference in the weather of different cities. There is no significant difference of favorite colors of cars. Black, white, gray and silver are the top colors.


ย ย ย ย ย ย ย ย  By scraping Carfax for used car information of eight major cities in the United States, comparisons are made to indicate the differences of used car market between East and West Coast. The findings can be used as the reference for dealers, buyers, and sellers. Future work can be focused on enlarging the data base to give more accurate comparisons and converting into a user-friendly interface.




About Author

Wei Liu

Wei is a current undergraduate student of Petroleum Engineering at Penn State University. Wei's research of applying machine learning to perform numerical simulation gets him fascinated with data science. His dedication and fast learning skills are leading him...
View all posts by Wei Liu >

Related Articles

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI