Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Machine Learning Advanced Certification | March 22 - April 9th

V Sandeep

Member
I have a doubt regarding the cdf() and pdf() . In this pic, after generating 20 random variables, i applied cdf () and pdf() function, the result is displayed.But i dont know how cdf and pdf is calculated for 20 random variables
 

Attachments

  • doubt.png
    doubt.png
    44 KB · Views: 8

V Sandeep

Member
import pandas as pd
import numpy as np
averages=np.array(['Ave'])
print(averages)
wickets=np.array(['Wkts'])
print(wickets)
 
salary = np.array(my_data['Salary'])
gender = np.array(my_data['Gender'])
Age = np.array(my_data['Age'])
PhD = np.array(my_data['PhD'])
 
Salary_G = pd.read_csv('SalaryGender.csv')
Salary_G.head()

import numpy as np

Salary = np.array(Salary_G['Salary'])
Gender = np.array(Salary_G['Gender'])
Age = np.array(Salary_G['Age'])
PhD = np.array(Salary_G['PhD'])
 
Salary_data = pd.read_csv("SalaryGender[1].csv")
import numpy as np
salary_data = np.array(Salary_data[1:], dtype=np.float)
 
salary = np.array(my_data['Salary'].values)
gender = np.array(my_data['Gender'].values)
Age = np.array(my_data['Age'].values)
PhD = np.array(my_data['PhD'].values)
 
Top