ashokkrish / CougarStats

5 stars 4 forks source link

Probability Distributions: Negative binomial distribution #7

Open ashokkrish opened 4 months ago

ashokkrish commented 4 months ago

@mwals360

Under Probability Distributions we currently have

image

To this list add Negative Binomial and make inline = FALSE so the radio buttons are listed vertically.

Have the following numericInputs()

Number of successes (r) (Validation: Non-empty, Positive integers only, must be greater than 0) Probability of Success (p) (Validation: Non-empty, between 0 and 1 only, inclusive)

Followed by

image

Followed by a radio button toggle

Selecting either one of the radio buttons would reveal a numericInput labelled

Number of Successes (x) (Validation: Non-empty, Positive integers only)

If the user selects

image

reveal two numericInputs labelled

Number of Successes (x1) (Validation: Non-empty, Positive integers only) Number of Successes (x2) (Validation: Non-empty, Positive integers only)

Further validate that x1 is less than or equal to x2.

Finally we will have

image
ashokkrish commented 3 months ago

Thank you for working on this @mwals360 . I have couple of minor changes on this one

image

Change rth to r^th (italicize r and take the th as a superscript) for both radioButton items.

ashokkrish commented 3 months ago

@mwals360 Here is an example with solutions, you can use these as defaults instead of 12345.

image image image image