+ Reply to Thread
Results 1 to 7 of 7

Beta Distribution Function isn't working properly...

  1. #1
    Registered User
    Join Date
    06-06-2011
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    20

    Beta Distribution Function isn't working properly...

    Not sure why this function isn't working correctly but it's making me very irritated.

    In mathematics, as well as in the function help window, this function is defined for alpha parameters >= 0. BUT! when I put in a value of alpha = 1 into the function I get the #NUM error.

    I'm using a Mac version of excel 2011... Any ideas / work arounds for this error?

    EDIT: I'm using the Beta.Dist function... and I'm looking for the PDF, not the CDF

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Beta Distribution Function isn't working properly...

    I have never used this function, but the help file indicates that all data used must be values. Maybe check to make sure that you are using numbers and not text?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-06-2011
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Beta Distribution Function isn't working properly...

    I tried a variety of things, even replaced cell references with hard numbers in the function and it still gave that error. Is it working for you?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Beta Distribution Function isn't working properly...

    I played around wiith the example they give, and changes some numbers...
    2...Value at which to evaluate the function
    1...Parameter of the distribution
    1...Parameter of the distribution
    1...Lower bound
    3...Upper bound
    Ans = 0.5

    It worked fine until i changed the last number (upper bound) to 1 - that gave an error

  5. #5
    Registered User
    Join Date
    06-06-2011
    Location
    Houston
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Beta Distribution Function isn't working properly...

    You are using the BetaDist function which only gives the Cumulative Distribution of the beta distribution. I'm using the Beta.Dist function which has the option of giving the Probability distribution function.

    I'm trying to call Beta.Dist(0,1,21,FALSE) but it isn't working...

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Beta Distribution Function isn't working properly...

    Your prifile says 2003, maybe update that?

    I am using 2007 and it does not have beta.dist, only betadist, so I cant help further on that 1, sorry

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Beta Distribution Function isn't working properly...

    Hi,

    According to Wikipedia, the Probability Density Function for the Beta Distribition is given by: f(x;α,β)=constant.x(α-1)(1-x)(β-1)

    If this is correct, then entering your values will give an expression which begins: f(0;1,21)=constant.0(1-1)... and, whatever may be your personal opinion on the definition of 00, it seems that Excel for one treats it as 'not defined'.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1