Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 finding the integral of probability density function
#1
Given a probability density function (pdf) like this

pdf = skew_norm_pdf(x,location,scale,SKEW_PARAMS[0])

how can I find the integral for this pdf in python?
Quote
#2
Do you really need to, given that you know it should be 1? It might not be exactly 1 due to rounding errors, but it should be pretty close.

In any case, in general, if you have values of a function at some points (e.g. in an array or something), the techniques for finding the integral come under the term "numerical integration". SciPy provides implementations of some of these techniques (see the docs).
scidam likes this post
Quote
#3
Thanks, so I have two of such pdfs generated on range of x and I am trying to calculate area overlap between the two. any help in that regards?
Quote
#4
(Aug-11-2019, 07:37 AM)Staph Wrote: Thanks, so I have two of such pdfs generated on range of x and I am trying to calculate area overlap between the two. any help in that regards?
Please, keep the discussion on the original thread.
https://python-forum.io/Thread-how-to-ca...-functions
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Finding the correct Python framework with cmake kavyasahu 0 128 Jun-26-2019, 10:04 AM
Last Post: kavyasahu
  Market Basket Analysis: Finding Association Rules kylenater 1 250 Jun-21-2019, 03:53 AM
Last Post: scidam
  finding index to given value from dataset gamma 3 250 May-26-2019, 06:26 PM
Last Post: heiner55
  MatPlotLib 2d plot of current density? ruben 0 175 May-13-2019, 06:47 AM
Last Post: ruben
  Finding Coordinates Sikum7 0 200 Mar-27-2019, 11:25 AM
Last Post: Sikum7
  Hydrogen ground state integral Eduard 2 518 Sep-26-2018, 10:19 PM
Last Post: Eduard
  How to check for nested dataframe density? python_newbie09 0 365 Aug-27-2018, 07:34 PM
Last Post: python_newbie09
  Draw Weibull distribution probability function based on Confidence interval farzadtb 1 753 Jul-31-2018, 03:21 PM
Last Post: Vysero
  Plot Probability Density of an Histogram Python_TLS 1 555 Jun-28-2018, 06:19 AM
Last Post: scidam
  finding exact and similar matches from pandas dataframe? PrateekG 0 820 Apr-22-2018, 01:22 PM
Last Post: PrateekG

Forum Jump:


Users browsing this thread: 1 Guest(s)