Challenge

Project 2

To find the variables to form clusters on
The first default attribute is the price since that is the prime attribute when considering buying cars
In relation to price, city mpg,highway mpg and peak rpm are negatively related but we select highway mpg since it has the highest negative correlation

Then we find the optimal no of clusters

It comes out to be 3

We then implement clustering and plot to scatter plots

The findings are as follows-

We can clearly see that cars in the red cluster have low prices whereas cars in the green cluster have high price

We can clearly see from the graph that cars in the green cluster have high highway mileage whereas cars in the yellow cluster
have average mileage and cars in the red cluster have low mileage

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.