Monday, 3 October 2022

6 b). Apply and explore various plotting functions like Correlation and scatter plots on UCI data sets

 6 b). Apply and explore various plotting functions like Correlation and scatter plots on UCI data sets

Aim

          To apply and explore various plotting functions like Correlation and scatter plots on datasets.

Procedure

Program

import pandas as pd

con = pd.read_csv('D:/diabetes.csv')

con

list(con.columns)

import seaborn as sns

sns.scatterplot(x="Pregnancies", y="Age", data=con);

Output

sns.lmplot(x="Pregnancies", y="Age", data=con);

Output

sns.lmplot(x="Pregnancies", y="Age", hue="Outcome", data=con);

Output

from scipy import stats

stats.pearsonr(con['Age'], con['Outcome'])

Output

(0.23835598302719774, 2.209975460664566e-11)

cormat = con.corr()

round(cormat,2)

sns.heatmap(cormat);

Output

Result

Various plotting functions like Correlation and scatter plots on datasets

are successfully executed.

No comments:

Post a Comment

23CSP103 COMPUTATIONAL INTELLIGENCE AND DATA VISUALIZATION TECHNIQUES

  COURSE OBJECTIVES: • To understand the concept of computational intelligence paradigms and practice assignments • To understand and ap...