Search⌘ K

Scatter and KDE Plots

Explore how to visualize data relationships with scatter plots and understand data distributions using KDE plots. This lesson teaches you to interpret dependent and independent variable correlations and estimate probability densities to identify data concentration areas.

Scatter plot

A scatter plot represents the values of data as points in a cartesian plane. It displays the data points based on the cartesian coordinates on an XY-plane. It is preferably used when a pair of dependent and independent variables need to be represented or visualized.

The same example from the regression plot lesson will be used to display a scatter plot.

Python 3.5
import numpy as np
import seaborn as sns
df = sns.load_dataset('tips')
sns1 = sns.scatterplot(x = 'total_bill', y = 'tip', data = df)

Just like in the ...