Results 1 to 5 of 5

Formula for binomial threshold values

Threaded View

  1. #5
    Registered User
    Join Date
    06-04-2020
    Location
    Location
    MS-Off Ver
    365
    Posts
    3

    Re: Formula for binomial threshold values

    Seems I found the solution.

    Let n be the number of trials, π₀ be the reference probability. (I denote it with π to avoid confusing with p-value that will be mentioned later.) Let p₀ be the threshold probability from my original post. Then a dynamic array of all values for which the distribution is no greater than p₀ can be generated by the formula
    = FILTER(SEQUENCE(n + 1, 1, 0), BINOM.DIST(SEQUENCE(n + 1, 1, 0), n, π₀, FALSE) <= p₀)
    This works with Excel versions that support dynamic arrays and corresponding functions like FILTER and SEQUENCE.

    But finding these values was not an end in itself for me; this was in fact needed to calculate an exact binomial p-value for two-sided proportion test: k is the observed number of successes, π = k/n is the sample proportion, and the hypotheses are:

    • H₀: π = π
    • H₁: ππ

    So the p-value for this test can be calculated by the formula shown at this screenshot, and the corresponding Excel file is also attached.

    binomial_p-value.png
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding peak values above a certain threshold
    By Yukon-1 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-16-2019, 05:08 PM
  2. Replies: 1
    Last Post: 11-30-2016, 08:02 PM
  3. Inserting row of values for k into the binomial dist. function
    By Ernst88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2014, 11:58 AM
  4. Threshold values from graph or data
    By mondoyle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2014, 05:17 AM
  5. [SOLVED] Changing values to 0, 1, 2 or 3 based on certain threshold values
    By Baruch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2013, 11:55 PM
  6. Setting threshold to assign real values to class values
    By themoss1985 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2011, 11:50 PM
  7. [SOLVED] How to Manipulate formula for Binomial Distribution
    By GH in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2006, 11:30 PM

Tags for this Thread

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