Used Car Market - A Comparison Between East Coast and West Coast

Posted on Aug 2, 2017


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 insights of the used car market with web scraping.

The website scraped is . 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 is 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?

Results and Discussion

Correlation of Price and Mileage

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 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws 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 Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R 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 Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp