oldoc63 / learningDS

Learning DS with Codecademy and Books
0 stars 0 forks source link

Scatter Plots #404

Open oldoc63 opened 1 year ago

oldoc63 commented 1 year ago

One of the best ways to quickly visualize the relationship between quantitative variables is to plot then against each other in a scatter plot. This make it easy to look for patterns or trends in the data. Let's start by plotting the area of a rental against it's monthly price to see if we can spot any patterns.

oldoc63 commented 1 year ago

While there's a lot of variation in the data, it seems like more expensive housing tends to come with slightly more space. This suggest an association between these two variables.

oldoc63 commented 1 year ago

It's important to note that different kinds of associations can lead to different patterns in a scatter plot. For example, the following plot shows the relationship between the age of a child in months and their weight in pounds. We can see that older children tend to weigh more but that the grow rate starts leveling off after 36 months:

Image

oldoc63 commented 1 year ago

If we don't see any patterns in a scatter plot, we can probably guess that the variables are not associated.

oldoc63 commented 1 year ago

Create a scatter plot to see if there is an association between the area (sqfeet) of a rental and the number of bedrooms (beds). Do you think these variables are associated? If so, is the relationship what you expected?