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
  MatPlotLib 2d plot of current density? ruben 0 221 May-13-2019, 06:47 AM
Last Post: ruben
  Hydrogen ground state integral Eduard 2 576 Sep-26-2018, 10:19 PM
Last Post: Eduard
  How to check for nested dataframe density? python_newbie09 0 415 Aug-27-2018, 07:34 PM
Last Post: python_newbie09
  Draw Weibull distribution probability function based on Confidence interval farzadtb 1 908 Jul-31-2018, 03:21 PM
Last Post: Vysero
  Plot Probability Density of an Histogram Python_TLS 1 608 Jun-28-2018, 06:19 AM
Last Post: scidam

Forum Jump:


Users browsing this thread: 1 Guest(s)