FittedModel[…]
LinearModelFit等の関数から得られた記号フィットされたモデルを表す.
FittedModel
FittedModel[…]
LinearModelFit等の関数から得られた記号フィットされたモデルを表す.
詳細
- フィットされたモデルの特性はFittedModel[…]["property"]で得ることができる.
- FittedModel[…][{prop1,prop2,…}] はいくつかの特性を与える.
- FittedModel[…][x1,…]は,特定の点 x1, … で最もよくフィットした関数の値を与える.
- NormalはFittedModelの最もよくフィットした関数の式を与える.
- FittedModelオブジェクトは,LinearModelFit,NonlinearModelFit,GeneralizedLinearModelFit等のフィット関数によって返される.
- FittedModel[…][prop,ann]は特性 prop と関連する注釈 ann を与える.
- 指定のフィットされたモデルに使用可能な特性は,モデルを生成するLinearModelFit等の関数ページに記されている.
例題
すべて開く すべて閉じる例 (2)
非線形フィットからFittedModelを得る:
data = {{0, 1}, {1, 0}, {3, 2}, {5, 4}};nlm = NonlinearModelFit[data, Log[a + b x ^ 2], {a, b}, x]FittedModelオブジェクトからその関数形を得る:
Normal[nlm]nlm[2.3]Show[ListPlot[data], Plot[nlm[x], {x, 0, 5}], Frame -> True]nlm["FitResiduals"]data = Table[{x, Log[2 + 3 x ^ 2] + RandomReal[{0, 0.5}]}, {x, RandomReal[{-10, 10}, 200]}];ListLinePlot[Sort@data]m = NonlinearModelFit[data, Log[a + b x ^ 2], {a, b}, x]Show[ListPlot[data], Plot[m[x], {x, -10, 10}]]ListPlot[m["FitResiduals"]]スコープ (4)
lm = LinearModelFit[Range[10], x ^ 2, x]lm["ParameterErrors", "Description"]lm["ParameterErrors", "LongDescription"]lm = LinearModelFit[Range[10], {x ^ 2, Sin[x]}, x]lm[{"Response", "PredictedResponse"}]ListPlot[%]線形フィット用のFittedModelオブジェクトを得る:
LinearModelFit[Table[{i, RandomReal[{i - 1, i}]}, {i, 10}], x ^ 2, x]NonlinearModelFit[Table[{i, RandomReal[{i - 1, i}]}, {i, 10}], Exp[a x], a, x]GeneralizedLinearModelFit[Table[{i, 1 / RandomReal[{i - 1, i}]}, {i, 10}], x, x, ExponentialFamily -> "Gamma"]LogitModelFit[Table[{i, RandomReal[{i - 1, i}] / 10}, {i, 10}], x, x]ProbitModelFit[Table[{i, RandomReal[{i - 1, i}] / 10}, {i, 10}], x, x]lm = LinearModelFit[Range[10], x ^ 2, x]lm["Properties"]nlm = NonlinearModelFit[Range[10], Exp[a x], a, x]nlm["Properties"]//Lengthglm = GeneralizedLinearModelFit[Range[10], x ^ 2, x]glm["Properties"]//Length一般化と拡張 (1)
nlm = NonlinearModelFit[Exp[Range[10]] + RandomReal[1, 10], Exp[a + b x], {a, b}, x]Integrate[nlm[x], x]NIntegrate[nlm[x], {x, 1, 5}]FindRoot[nlm[x] == 10, {x, 1}]テクニカルノート
-
▪
- 統計モデル解析
テキスト
Wolfram Research (2008), FittedModel, Wolfram言語関数, https://reference.wolfram.com/language/ref/FittedModel.html.
CMS
Wolfram Language. 2008. "FittedModel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FittedModel.html.
APA
Wolfram Language. (2008). FittedModel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FittedModel.html
BibTeX
@misc{reference.wolfram_2026_fittedmodel, author="Wolfram Research", title="{FittedModel}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/FittedModel.html}", note=[Accessed: 16-July-2026]}
BibLaTeX
@online{reference.wolfram_2026_fittedmodel, organization={Wolfram Research}, title={FittedModel}, year={2008}, url={https://reference.wolfram.com/language/ref/FittedModel.html}, note=[Accessed: 16-July-2026]}