Python Forum
Get underlying function from Kernel Density Estimation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get underlying function from Kernel Density Estimation
#1
Hi everyone,

There are several libraries that allow us to estimate a probability density function using Kerndel Density Estimation.

My question is how I can see the estimated function, not as a plot but as a formula/equation.

I hope you understand what I mean.

Best regards,
jpython
Reply
#2
There is no simple representation of such formula. You are likely looking for a simple one. You can find explanation about kde-estimations at Wikipedia. So, kde-estimation is a function defined as a sequence of calculations (these calculations are hard to perform manually, but easy to do with help of the computer), it is a computational procedure.

If you want to get a "convenient" formula as an estimation of pdf, you can look at parametric probability density estimations, e.g. fit a normal distribution, or fit a mixture of normal distributions (using mixture of known distributions might be very flexible, if you want to handle non-normally distributed data).
Reply
#3
(Dec-04-2019, 11:51 PM)scidam Wrote: There is no simple representation of such formula. You are likely looking for a simple one. You can find explanation about kde-estimations at Wikipedia. So, kde-estimation is a function defined as a sequence of calculations (these calculations are hard to perform manually, but easy to do with help of the computer), it is a computational procedure.

If you want to get a "convenient" formula as an estimation of pdf, you can look at parametric probability density estimations, e.g. fit a normal distribution, or fit a mixture of normal distributions (using mixture of known distributions might be very flexible, if you want to handle non-normally distributed data).

Hi Scidam,

I am able to use the methods you mentioned, but only to evaluate the the probability density function at a certain point. I woul like the formula in mathematical notation. Is this possible?
Reply
#4
(Dec-05-2019, 08:22 AM)jpython Wrote:
(Dec-04-2019, 11:51 PM)scidam Wrote: There is no simple representation of such formula. You are likely looking for a simple one. You can find explanation about kde-estimations at Wikipedia. So, kde-estimation is a function defined as a sequence of calculations (these calculations are hard to perform manually, but easy to do with help of the computer), it is a computational procedure.

If you want to get a "convenient" formula as an estimation of pdf, you can look at parametric probability density estimations, e.g. fit a normal distribution, or fit a mixture of normal distributions (using mixture of known distributions might be very flexible, if you want to handle non-normally distributed data).

Hi Scidam,

I am able to use the methods you mentioned, but only to evaluate the the probability density function at a certain point. I woul like the formula in mathematical notation. Is this possible?

My apologies, I did not read your post carefully. I did look briefly into parametric probability density estimations but again I was not able to print the underlying function it uses to do the estimation.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Laplacian Exponential Diffusion Kernel ainisyarifaah 1 1,694 Nov-25-2021, 06:21 PM
Last Post: Gribouillis
  How do I create these Kernel functions in Python for Gaussian Process Regression? Shivam18 0 2,161 May-20-2020, 03:04 PM
Last Post: Shivam18
  inserting something into probability density SchroedingersLion 1 2,068 Jan-06-2020, 09:15 AM
Last Post: Gribouillis
  How to get the probability density function of my data set jpython 1 2,261 Dec-04-2019, 12:49 PM
Last Post: Larz60+
  finding the integral of probability density function Staph 3 3,606 Aug-11-2019, 09:19 AM
Last Post: buran
  MatPlotLib 2d plot of current density? ruben 0 2,171 May-13-2019, 06:47 AM
Last Post: ruben
  How to check for nested dataframe density? python_newbie09 0 1,961 Aug-27-2018, 07:34 PM
Last Post: python_newbie09
  Plot Probability Density of an Histogram Python_TLS 1 2,853 Jun-28-2018, 06:19 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020