LinearModelFitおよび他のフィット関数のオプションで,さまざまな信頼と予測の区間と帯域の水準を指定する.
ConfidenceLevel
LinearModelFitおよび他のフィット関数のオプションで,さまざまな信頼と予測の区間と帯域の水準を指定する.
詳細
- ConfidenceLevelは,信頼区間に関連する特性の値に影響する.
- デフォルトで,95%の信頼区間が与えられる.
- 値は0から1の間でなければならない.
- ある種のタイプのモデルに対し,model[…][prop,ConfidenceLevel->c]を指定した信頼水準の特性の抽出に使うことができる. »
例題
すべて開く すべて閉じる例 (2)
スコープ (3)
data = {{0, 1}, {1, 0}, {3, 2}, {5, 4}};lm = LinearModelFit[data, x, x]lm["ParameterEstimates"]//Query[All, {"BasisFunction", "ConfidenceInterval"}]lm["ParameterEstimates", ConfidenceLevel -> .9]//Query[All, {"BasisFunction", "ConfidenceInterval"}]data = Table[{x, 3 Sin[2x] + RandomReal[{-.2, .2}]}, {x, RandomReal[5, 10]}];nlm = NonlinearModelFit[data, a Sin[b x], {a, b}, x, ConfidenceLevel -> .9]nlm["ParameterConfidenceIntervalTable"]nlm["ParameterConfidenceIntervalTable", ConfidenceLevel -> .95]data = {{0, 1}, {1, 1.5}, {3, 2}, {5, 4}};glm = GeneralizedLinearModelFit[data, x, x, ExponentialFamily -> "InverseGaussian"]glm["ParameterConfidenceIntervalTable", ConfidenceLevel -> .99]アプリケーション (1)
SeedRandom[1];
data = Table[{x, 1.2 Sin[2 x] + RandomReal[{-.2, .2}]}, {x, 10}]nlm = NonlinearModelFit[data, a Sin[b x], {a, b}, x]intervals = Table[Thread@{p, Interval /@ nlm["ParameterConfidenceIntervals", ConfidenceLevel -> p]}, {p, {.8, .85, .9, .95, .99}}]ListPlot[Transpose[intervals], PlotLegends -> {a, b}, PlotTheme -> "Detailed", FrameLabel -> {"ConfidenceLevel", "ConfidenceInterval"}]特性と関係 (1)
ConfidenceLevelはFittedModel特性の信頼区間に影響する:
lm = LinearModelFit[Range[5], x ^ 2, x]Query[All, All, "ConfidenceInterval"]@lm[{"MeanPredictions", "SinglePredictions", "ParameterEstimates"}]Query[All, All, "ConfidenceInterval"]@lm[{"MeanPredictions", "SinglePredictions", "ParameterEstimates"}, ConfidenceLevel -> .99]関連するガイド
-
▪
- 統計モデル解析
テキスト
Wolfram Research (2008), ConfidenceLevel, Wolfram言語関数, https://reference.wolfram.com/language/ref/ConfidenceLevel.html.
CMS
Wolfram Language. 2008. "ConfidenceLevel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ConfidenceLevel.html.
APA
Wolfram Language. (2008). ConfidenceLevel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ConfidenceLevel.html
BibTeX
@misc{reference.wolfram_2026_confidencelevel, author="Wolfram Research", title="{ConfidenceLevel}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/ConfidenceLevel.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_confidencelevel, organization={Wolfram Research}, title={ConfidenceLevel}, year={2008}, url={https://reference.wolfram.com/language/ref/ConfidenceLevel.html}, note=[Accessed: 16-September-2026]}