本文簡要介紹 python 語言中scipy.stats._result_classes.OddsRatioResult.confidence_interval
的用法。
用法:
OddsRatioResult.confidence_interval(confidence_level=0.95, alternative='two-sided')#
比值比的置信區間。
- confidence_level: float:
置信區間的所需置信水平。該值必須以 0 到 1 之間的分數形式給出。默認值為 0.95(表示 95%)。
- alternative: {‘雙麵’,‘less’, ‘greater’},可選
置信區間對應的假設檢驗的備擇假設。也就是說,假設原假設是真實優勢比等於
OR
置信區間為(low, high)
。然後是以下選項選擇可用(默認為“雙麵”):“雙麵”:真實優勢比不等於
OR
。有證據反對所選的原假設confidence_level如果high < OR
或者low > OR
.‘less’:真實優勢比小於
OR
.這low
置信區間的末尾為 0,並且有證據反對所選位置的原假設confidence_level如果high < OR
.‘greater’:真實優勢比大於
OR
。這high
置信區間的終點是np.inf
,並且有證據反對所選的原假設confidence_level如果low > OR
.
- ci:
ConfidenceInterval
實例 置信區間,表示為具有屬性
low
和high
的對象。
- ci:
參數 ::
返回 ::
注意:
什麽時候種類是
'conditional'
,置信區間的極限是費舍爾說明的條件“exact confidence limits”[1]。 Sahai 和 Khurshid 的文本第 4.1.2 節還討論了條件優勢比和置信區間[2].什麽時候種類是
'sample'
,置信區間是在假設優勢比的對數呈正態分布且標準誤差由下式給出的假設下計算的:se = sqrt(1/a + 1/b + 1/c + 1/d)
其中
a
、b
、c
和d
是列聯表的元素。 (例如,參見 [2],第 3.1.3.2 節,或 [3],第 2.3.3 節)。參考:
相關用法
- Python SciPy interpolate.make_interp_spline用法及代碼示例
- Python SciPy stats.anderson用法及代碼示例
- Python SciPy ClusterNode.pre_order用法及代碼示例
- Python SciPy stats.iqr用法及代碼示例
- Python SciPy FortranFile.read_record用法及代碼示例
- Python SciPy ndimage.correlate用法及代碼示例
- Python SciPy special.exp1用法及代碼示例
- Python SciPy special.expn用法及代碼示例
- Python SciPy signal.czt_points用法及代碼示例
- Python SciPy interpolate.krogh_interpolate用法及代碼示例
- Python SciPy ndimage.morphological_gradient用法及代碼示例
- Python SciPy distance.sokalmichener用法及代碼示例
- Python SciPy linalg.eigvalsh_tridiagonal用法及代碼示例
- Python SciPy linalg.cdf2rdf用法及代碼示例
- Python SciPy csc_array.diagonal用法及代碼示例
- Python SciPy fft.idctn用法及代碼示例
- Python SciPy linalg.LaplacianNd用法及代碼示例
- Python SciPy linalg.solve_circulant用法及代碼示例
- Python SciPy hierarchy.ward用法及代碼示例
- Python SciPy signal.chirp用法及代碼示例
- Python SciPy stats.genpareto用法及代碼示例
- Python SciPy ndimage.variance用法及代碼示例
- Python SciPy signal.residue用法及代碼示例
- Python SciPy linalg.polar用法及代碼示例
- Python SciPy special.ncfdtri用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.stats._result_classes.OddsRatioResult.confidence_interval。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。