Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Kernel Density Estimation - Kernel Density Plot #59

Open
RohitDhankar opened this issue May 8, 2020 · 2 comments
Open

Kernel Density Estimation - Kernel Density Plot #59

RohitDhankar opened this issue May 8, 2020 · 2 comments

Comments

@RohitDhankar
Copy link
Member

A Kernel density estimation , is a non-parametric method for estimating the probability density function - PDF of a Random Variable. Also as a generic EDA approach - the , kernel density plots are an effective way to view the distribution of Continuous Variables.

Write a python method to create a - Kernel Density Plot , use the charting library Bokeh ( https://github.com/bokeh/bokeh) or Plotly (https://plotly.com/python/getting-started/#overview)


You may use any sample data sets . A preferred data set is the - MTCARS Dataset. Post your code here in a Jupyter Notebook along with a CSV file with sample data used .


Any doubts or any further clarifications required kindly contact Rohit - WhatsApp Text = +91-9871050873 or LinkedIn Text = https://www.linkedin.com/in/rohitdhankar/

@RohitDhankar
Copy link
Member Author

Hi @UtkarshChaurasia - you had submitted this code - request you to code for Bokeh inplace of SeaBorn - thanks

#Kernel Density Estimation
import scipy.stats as stats
j=sns.jointplot(data=df, x="Age",y="AN", kind="kde",height=10)
j.annotate(stats.pearsonr)
plt.ylim(-3,10)
plt.ylabel("Cancer")
plt.show()

@RohitDhankar
Copy link
Member Author

RohitDhankar commented May 23, 2020

https://docs.bokeh.org/en/0.8.2/docs/gallery/kde.html
this one says its from an older version of Bokeh --- the latest version of Bokeh doesnt seem to have a KDE plot . The documentation on this page refers to a PREVIOUS VERSION.

For the latest release, go to http://bokeh.pydata.org/en/latest/

WhatsApp Image 2020-05-11 at 13 31 19

this is still open - we need a KDE plot preferably from Bokeh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants