Research breakthrough possible @S-Logix pro@slogix.in

Office Address

Social List

How to check normality of data using Anderson Darling test for a variable in python?

Description

To check whether the given data set is normally distributed or not using Anderson Darling test using python.

Process

   Anderson-Darling Test

   To check given data set is normally distributed or not musing Anderson-Darling test.

Sample Code

#import pandas library

import pandas as pd

#load the data from CSV file

data=pd.read_csv

(‘/home/soft27/soft27/Sathish/

Pythonfiles/Employee.csv’)

#creating the Data Frame

df=pd.DataFrame(data)

print(“Actual data from the CSV file:”)

print(df)

#Calculate the variance

print(“The variance is:”)

print(df.var())

#calculate the standard deviation

print(“The standard deviation is:”)

print(df.std())

Screenshots
check normality of data using Anderson Darling test for a variable in python