Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.measure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Merge requests
!51
Confidence intervals
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Confidence intervals
theo-conf-inter
into
theo
Overview
7
Commits
8
Pipelines
7
Changes
6
All threads resolved!
Hide all comments
Merged
Theophile GENTILHOMME
requested to merge
theo-conf-inter
into
theo
7 years ago
Overview
7
Commits
8
Pipelines
7
Changes
6
All threads resolved!
Hide all comments
Expand
Integrates a confidence interval functionality (Clopper–Pearson interval) in bob.measure.
Edited
7 years ago
by
Theophile GENTILHOMME
0
0
Merge request reports
Compare
theo
version 7
3798c61e
7 years ago
version 6
69ed5c34
7 years ago
version 5
62718a12
7 years ago
version 4
25489bef
7 years ago
version 3
91b44bd9
7 years ago
version 2
91b44bd9
7 years ago
version 1
880d989b
7 years ago
theo (base)
and
latest version
latest version
618e56f1
8 commits,
7 years ago
version 7
3798c61e
7 commits,
7 years ago
version 6
69ed5c34
5 commits,
7 years ago
version 5
62718a12
4 commits,
7 years ago
version 4
25489bef
3 commits,
7 years ago
version 3
91b44bd9
2 commits,
7 years ago
version 2
91b44bd9
4 commits,
7 years ago
version 1
880d989b
3 commits,
7 years ago
6 files
+
98
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
bob/measure/test_utils.py
0 → 100644
+
17
−
0
Options
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
import
numpy
from
.utils
import
confidence_for_indicator_variable
def
test_confidence_interval
():
def
assert_confidence
(
x
,
n
,
expected_lower
,
expected_upper
):
lower
,
upper
=
confidence_for_indicator_variable
(
x
,
n
)
assert
numpy
.
allclose
(
lower
,
expected_lower
)
assert
numpy
.
allclose
(
upper
,
expected_upper
)
assert_confidence
(
1
,
2
,
0.01257911709342505
,
0.98742088290657493
)
assert_confidence
(
10
,
10
,
0.69150289218123917
,
1
)
assert_confidence
(
0
,
10
,
0
,
0.30849710781876077
)
Loading