Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views4 pages

CS Ex 1

Uploaded by

gbalu0061
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

CS Ex 1

Uploaded by

gbalu0061
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Ex.

NO : 1 Find the skewness and kurtosis for an attribute in the given


Dataset.
1. Find the skewness and kurtosis for an attribute in the given dataset.
AIM:
To print and plot the first five rows, the histogram & KDE of the selected attribute,
probability of the selected attributes, skewness and kurtosis for the selected attribute
from Iris dataset using Python script
ALGORITHM:
i. Load the data
ii. Select an attribute from the data set and print the First five records
iii. Plot the Histogram and Kernal Density Estimation of the selected
attribute.
iv. Print the probability plot for the selected attribute
v. Find the skewness for the selected attribute
vi. Find the kurtosis for the selected attribute
PROGRAM:
SAMPLE INPUT:
Import the Iris data from ‘plotly.express’ library and name it as ‘px’
SAMPLE OUTPUT:
1. Printing the First Five Records:

2. Print the Histogram and Kernal Density Estimation for the attribute “Sepal
Length”

3. Print the probability plot of “Sepal Length”

4. Print the skewness of the attribute “Sepal Length”


Skewness for sepal length = 0.3149109566369728

5. Print the Kurtosis of the attribute “Sepal Length”


Kurtosis for sepal length = -0.5520640413156395
RESULT:
The first five rows, the histogram & KDE of the selected attribute, probability of the selected
attributes, skewness and kurtosis for the selected attribute are evaluated and plotted
successfully using Python script

You might also like