# Scatter plots to observe the relationship with house price
fig, axes = plt.subplots(nrows=4, ncols=2, figsize=(12, 16))
fig.suptitle('Scatter Plots with House Price of Unit Area', fontsize=16)
# Scatter plot for each variable against the house price
sns.scatterplot(data=data, x='housing_median_age', y='median_house_value', ax=axes[0, 0])
sns.scatterplot(data=data, x='ocean_proximity_encoded', y='median_house_value', ax=axes[0, 1])
sns.scatterplot(data=data, x='total_bedrooms', y='median_house_value', ax=axes[1, 0])
sns.scatterplot(data=data, x='total_rooms', y='median_house_value', ax=axes[1, 1])
sns.scatterplot(data=data, x='population', y='median_house_value', ax=axes[2, 0])
sns.scatterplot(data=data, x='households', y='median_house_value', ax=axes[2, 1])
sns.scatterplot(data=data, x='longitude', y='median_house_value', ax=axes[3, 0])
sns.scatterplot(data=data, x='latitude', y='median_house_value', ax=axes[3, 1])
plt.tight_layout(rect=[0, 0.03, 1, 0.95])
plt.show()