Class: SkiftetStatistical::Significance::Result
- Inherits:
-
Struct
- Object
- Struct
- SkiftetStatistical::Significance::Result
- Defined in:
- lib/skiftet_statistical/significance.rb
Overview
The outcome of a significance test: the test statistic and its two-tailed p-value, with convenience predicates for the usual confidence levels.
Instance Attribute Summary collapse
-
#p_value ⇒ Object
Returns the value of attribute p_value.
-
#statistic ⇒ Object
Returns the value of attribute statistic.
Instance Method Summary collapse
-
#confidence ⇒ Object
Certainty = 1 - p, the complement of the p-value.
- #significant?(alpha = 0.05) ⇒ Boolean
- #significant_90? ⇒ Boolean
- #significant_95? ⇒ Boolean
- #significant_99? ⇒ Boolean
Instance Attribute Details
#p_value ⇒ Object
Returns the value of attribute p_value
54 55 56 |
# File 'lib/skiftet_statistical/significance.rb', line 54 def p_value @p_value end |
#statistic ⇒ Object
Returns the value of attribute statistic
54 55 56 |
# File 'lib/skiftet_statistical/significance.rb', line 54 def statistic @statistic end |
Instance Method Details
#confidence ⇒ Object
Certainty = 1 - p, the complement of the p-value.
64 65 66 |
# File 'lib/skiftet_statistical/significance.rb', line 64 def confidence 1.0 - p_value end |
#significant?(alpha = 0.05) ⇒ Boolean
55 56 57 |
# File 'lib/skiftet_statistical/significance.rb', line 55 def significant?(alpha = 0.05) p_value < alpha end |
#significant_90? ⇒ Boolean
59 |
# File 'lib/skiftet_statistical/significance.rb', line 59 def significant_90? = significant?(0.10) |
#significant_95? ⇒ Boolean
60 |
# File 'lib/skiftet_statistical/significance.rb', line 60 def significant_95? = significant?(0.05) |
#significant_99? ⇒ Boolean
61 |
# File 'lib/skiftet_statistical/significance.rb', line 61 def significant_99? = significant?(0.01) |