Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beta Inverse Function
#1
Hi Everyone,

I'm looking for a Beta Inverse Function in Python.

Below is the explanation for the same:


Returns the inverse of the beta cumulative probability density function (BETA.DIST).

If probability = BETA.DIST(x,...TRUE), then BETA.INV(probability,...) = x. The beta distribution can be used in project planning to model probable completion times given an expected completion time and variability.

Below is the Excel version of this solution:
BETA.INV(probability,alpha,beta,[A],[B])
The BETA.INV function syntax has the following arguments:
Probability Required. A probability associated with the beta distribution.
Alpha Required. A parameter of the distribution.
Beta Required. A parameter the distribution.
A Optional. A lower bound to the interval of x.
B Optional. An upper bound to the interval of x.

Could you please navigate me for the correct solution in Python.

Many thanks in advance.

Regards,
Ankur K
Reply
#2
I think you want to look at scipy.stats.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
No Sir,

It just not have the required functionality.

Could you please let me know any other package where I can search.

Regards,
Ankur K
Reply
#4
Isn't scipy.stats.beta.ppf the inverse of the CDF?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#5
Nailed it ichabod801! Using scipy.stats.beta.ppf gave me exactly what I was looking for and matches Excel's Beta.INV function perfectly.
Reply
#6
(Jul-23-2018, 08:18 PM)andrewmkeller Wrote: Nailed it ichabod801! Using scipy.stats.beta.ppf gave me exactly what I was looking for and matches Excel's Beta.INV function perfectly.

Uh, as a former statistician I am leary of using Excel as a benchmark. Wink
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculating Beta over Rolling Periods illmattic 2 3,001 Sep-27-2020, 11:27 PM
Last Post: Larz60+
  Differencing Time series and Inverse after Training donnertrud 0 2,908 May-27-2020, 06:11 AM
Last Post: donnertrud
  Help with Maths (inverse squares) michael1789 5 1,990 Dec-11-2019, 07:30 AM
Last Post: Gribouillis
  Inverse of singular matrix Divanova94 4 3,827 May-11-2019, 02:40 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