import pandas as pd
import seaborn as sns
import [Link] as plt
# Load built-in Iris dataset
df = sns.load_dataset('iris')
# Display first few rows
print([Link]())
# Select two numerical columns
x, y = 'sepal_length', 'petal_length'
# Scatter plot & Pearson correlation
[Link](data=df, x=x, y=y)
[Link](f'Scatter Plot: {x} vs {y}')
[Link]()
print(f"Pearson Correlation between {x} and {y}: {df[x].corr(df[y]):.2f}")
# Covariance & Correlation Matrix
cov_matrix = [Link](numeric_only=True)
corr_matrix = [Link](numeric_only=True)
print("\nCovariance Matrix:\n", cov_matrix)
print("\nCorrelation Matrix:\n", corr_matrix)
# Correlation Heatmap
[Link](figsize=(6, 4))
[Link](corr_matrix, annot=True, cmap='coolwarm', fmt=".2f")
[Link]("Correlation Heatmap")
plt.tight_layout()
[Link]()