2853_zh-TW
使用二項式分佈的置信區間我需要計算不同時間間隔不良事件報告比例的 95% 置信區間。 我想使用“精確二項式置信區間”。
下面的鏈接顯示瞭如何使用 Excel 進行此操作;在 JSL 中是否有類似的方法可以做到這一點?
http://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm
謝謝!回复:使用二項分佈的置信區間Adj Wald 非常適合小樣本量,並且與大多數其他大樣本方法收斂。 我有幾篇論文*掃描*討論了它,但是快速谷歌搜索有一些細節:
http://www.measuringusability.com/wald.htm回复:使用二項分佈的置信區間> 對此+1。 就我個人而言,我是調整後的沃爾德的粉絲。
來自 JMP 文檔:
“置信區間”選項會生成“得分置信區間”表,如下所示。 建議使用分數置信區間,因為它往往具有更好的覆蓋概率 (1 - α),特別是在樣本量較小的情況下(Agresti 和 Coull 1998)。
不確定這是否與調整後的 Wald 計算相同。 我應該回去閱讀我列出的參考文獻! 第一個參考有一些非常有趣的圖表,顯示了實際的覆蓋範圍。
邁克爾回复:使用二項分佈的置信區間好的,這是兩側置信區間的上限和下限公式:
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">Pu
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">總計
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
((
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">*
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">F
分位數
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">alpha
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">*
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">*
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">總計
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗)
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)))
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">^
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: black;">Pl
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
((
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">總計
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">*
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">F
分位數
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">alpha
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">*
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">總計
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">*
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">失敗
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)))
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">^
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
注:當 :Fail = 0 時,下限定義為 0。 當 :Fail = 1 時,上限定義為 1。 需要有條件地定義兩列公式。
消息編輯者:mpb回复:使用二項分佈的置信區間對此+1。 就我個人而言,我是調整後的沃爾德的粉絲。回复:使用二項分佈的置信區間Chadd 公式及其對應的下界應給出與 nist 手冊中的方法相同的上限和下限。 如果您有興趣,我會查找另一個邊界。 除了創建專欄論壇之外,根本不需要任何編碼。
可能值得一提的是,“精確”計算不一定被認為是“最佳”,因為所得間隔可能不必要地寬。 這裡有幾篇 PDF 格式的論文,可以隨時獲取,您可能會感興趣。
http://projecteuclid.org/DPubS/Repository/1.0/Disseminate?view=body&id=pdf_1&handle=euclid.ss/1009213286
http://www.stat.iastate.edu/preprint/articles/2002-05.pdf回复:使用二項分佈的置信區間我找到了一種可能比使用更快的方法
非線性函數。 循環中大約需要 12-18 次嘗試
在找到可接受的值之前。 調整
epsilon 參數以獲得更高或更低的精度。
在包含 2400 個值的表上花費不到一秒鐘!
順便說一句,這是在 JMP 9 中編寫的。
style="font-size: 10pt; font-family: "快遞新"; color: green;">/*
style="font-size: 10pt; font-family: "快遞新"; color: green;">二項式
置信區間
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">搜索
對於上部和下部
置信區間:
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">.05
和.95
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">用途
一個包含名為以下列的表:
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">案例
數數
這方面的案例數
首選術語
style="font-size: 10pt; font-family: "快遞新"; color: green;">總計
案例
案件總數
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">添加
兩列:
style="font-size: 10pt; font-family: "快遞新"; color: green;">
style="font-size: 10pt; font-family: "快遞新"; color: green;">下
CI 限值
style="font-size: 10pt; font-family: "快遞新"; color: green;">上部
CI 限值
style="font-size: 10pt; font-family: "快遞新"; color: green;">*/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">dt
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">當前
數據表
style="font-size: 10pt; font-family: "快遞新"; color: black;">()
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">dt
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><<
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">新
柱子
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: Purple;">"下
CI
限制”
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
數字
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
連續的
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">格式
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: Purple;">"百分比"
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">10
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>公式(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
最大迭代次數
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">100
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
厄普西隆
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.0001
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
下限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.0000000001
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
上限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.9999999999
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
目標
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.95
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
置信區間上限
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">for
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(我
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
我
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
最大迭代次數
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
我
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">++,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
測試_b1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(下限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
上限)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
BD
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">二項式
分配
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">test_b1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">總計
案例
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">案例
數數)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">如果
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
((
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">abs
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">bd
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
目標)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
厄普西隆)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">break
style="font-size: 10pt; font-family: "快遞新"; color: black;">()
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">如果
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
( BD
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
目標
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
然後
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
上限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
測試_b1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
別的
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
下限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
測試_b1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
測試_b1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”> )
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
公式
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
結束新專欄
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">dt
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><<
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">新
柱子
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: Purple;">"上部
CI
限制”
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
數字
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
連續的
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">格式
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: Purple;">"百分比"
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">10
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>公式(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
最大迭代次數
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">100
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
厄普西隆
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.0001
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
下限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.0000000001
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
上限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.9999999999
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
目標
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">.05
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
置信區間上限
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">for
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(我
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">1
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
我
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
最大迭代次數
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
我
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">++,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
測試_b0
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
(下限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">+
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
上限)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">/
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 青色;">2
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
BD
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">二項式
分配
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">test_b0
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">總計
案例
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">:
style="font-size: 10pt; font-family: "快遞新"; color: black;">案例
數數)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">如果
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
((
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">abs
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">(
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">bd
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">-
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
目標)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
厄普西隆)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">break
style="font-size: 10pt; font-family: "快遞新"; color: black;">()
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: rgb(0, 0, 221);">如果
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
( BD
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;"><
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
目標
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
然後
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
上限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
測試_b0
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
別的
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">,
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
下限
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">=
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
測試_b0
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
測試_b0
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”> )
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
公式
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">)
style="font-size: 10pt; font-family: "快遞新"; color: 海軍藍;">;
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
風格=“”>
style="font-size: 10pt; font-family: "快遞新"; color: green;">//
結束新專欄
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
style="font-size: 10pt; font-family: "快遞新"; color: 黑色;">
再次感謝大家的建議和幫助!回复:使用二項分佈的置信區間是的,我嘗試過,它有效,但有點不穩定。 我沒有保存腳本,但原理是這樣的:
我使用排除所有行的腳本,然後使用 for 循環,其中每次迭代不排除當前行,運行非線性腳本(包括保存參數值),最後重新排除當前行。 但是,有時我會得到錯誤的結果,可能是因為行排除/不排除完成在數值非線性擬合完成之前運行。 人們可以嘗試使用 Wait() 命令找到最佳位置或使用其他方式強製完成。
另一種可能性是使用每行具有唯一 ID 的列來通過參數運行非線性。然後循環遍歷不同的非線性對象來完成並獲得估計:
就像是
回复:使用二項分佈的置信區間MS 有沒有一種方法可以將您的解決方案推廣到滿表
價值觀?例如:
style="font-family: Courier New,Courier,monospace; font-weight: 粗體; text-decoration: underline;">首選
學期
總數
分數
style="font-family: Courier New,Courier,monospace;">
style="font-family: Courier New,Courier,monospace;">頭痛
18
513 3.5%
style="font-family: Courier New,Courier,monospace;">
style="font-family: Courier New,Courier,monospace;">噁心
24
513 4.7%
style="font-family: Courier New,Courier,monospace;">
style="font-family: Courier New,Courier,monospace;">頭暈 14
513 2.7%
style="font-family: Courier New,Courier,monospace;">
style="font-family: Courier New,Courier,monospace;">。
ETC。
從您的解決方案看來,我需要創建一個單獨的
每行一個單行表
計算置信限。
問候,
彼得回复:使用二項分佈的置信區間謝謝大家的答案。 當我拉出新腳本部分並單獨運行它時(在 JMP 8.0.2 和 9.0.0 中),您的解決方案有效。回复:使用二項分佈的置信區間這是非線性方法的示例。 下面的腳本創建一個數據表,其中的數據與 Excel 示例中的數據相同。 運行表腳本來計算置信限。
(我首先嘗試了一個巧妙的解決方案,將非線性平台(不可見)包含在列公式中以實現自動計算。 它有效,但並不總是有效,因為 JMP 有時會陷入明顯的無限循環中。)
回复:使用二項分佈的置信區間有多種方法可以直接使用 JMP 二項式分佈函數來模擬 Excel 示例。 一種方法是使用該公式創建一個列,並為自變量創建其他列,並使用探查器通過改變比例 p 來實現右側目標。 另一種方法是再次使用 p 將其設置為非線性擬合,以實現右側目標。 他們都工作。回复:使用二項分佈的置信區間看起來正在使用 Clopper-Pearson Exact CI。 這是我用來計算 alpha 置信區間上限的方法。 不幸的是,關於它是如何衍生的理論已經從我的記憶中消失了。
Cloper Pearson 精確上限
(1 + (:總計 - :不及格) / ((:不及格 + 1) * F 分位數(
1 - :阿爾法,
2 * (:失敗 + 1),
2 *(:總計 - :失敗)
))) ^ (-1)
Comments
There are no comments yet