Skip to contents

Title

Usage

tidy_dgeometric(single_trial_prob = 0.5, num_attempts = 5)

Arguments

num_attempts

Examples

tidy_dgeometric()
#> # A tibble: 5 × 4
#>   observed_attempt probability single_trial_prob cumulative_prob
#>              <int>       <dbl>             <dbl>           <dbl>
#> 1                1      0.5                  0.5           0.5  
#> 2                2      0.25                 0.5           0.75 
#> 3                3      0.125                0.5           0.875
#> 4                4      0.0625               0.5           0.938
#> 5                5      0.0312               0.5           0.969
tidy_dgeometric(single_trial_prob = 1/6, num_attempts = 10)
#> # A tibble: 10 × 4
#>    observed_attempt probability single_trial_prob cumulative_prob
#>               <int>       <dbl>             <dbl>           <dbl>
#>  1                1      0.167              0.167           0.167
#>  2                2      0.139              0.167           0.306
#>  3                3      0.116              0.167           0.421
#>  4                4      0.0965             0.167           0.518
#>  5                5      0.0804             0.167           0.598
#>  6                6      0.0670             0.167           0.665
#>  7                7      0.0558             0.167           0.721
#>  8                8      0.0465             0.167           0.767
#>  9                9      0.0388             0.167           0.806
#> 10               10      0.0323             0.167           0.838