自由度 ν のカイ(
)分布を表す.
ChiDistribution
自由度 ν のカイ(
)分布を表す.
詳細
- ChiDistribution[ν]は,カイ二乗 (
)確率変数の平方根の分布を表す. » - ChiDistributionでは,ν は任意の正の実数でよい.
- ChiDistributionでは,ν は無次元量でよい. »
- ChiDistributionは,Mean,CDF,RandomVariate等の関数で使うことができる. »
予備知識
- ChiDistribution[ν]は,分布の自由度を表す正の値 ν でパラメータ化された統計的分布を表す.ν はカイ分布の確率密度関数(PDF)の一般的な形を決定し,PDFは ν の値によって単調減少になるか,領域の下限値に近付くにつれて特異値となり得る単一の峰(絶対最大値)を持つようになるかする.
- ChiDistributionは,カイ二乗確率変数の平方根が従う分布である.言い換えれば,
が確率変数であり,
(
は「として分布」を表す)であるなら,
である.標準正規分布に従う独立確率変数
,
, …,
のベクトルのノルム
もまた,自由度が
のカイ分布に従う.カイ分布は,その統計的有意性に加え,理想気体の速度分布,さまざまな条件下での発射確度,分散液に対するレーダーの効果等,多くの科学的応用に見ることができる. - RandomVariateを使って,カイ分布から1つあるいは複数の機械精度あるいは任意精度の(後者はWorkingPrecisionオプションによる)擬似乱数変量を与えることができる.Distributed[x,ChiDistribution[ν]](より簡略な表記では xChiDistribution[ν])を使って,確率変数 x がカイ分布に従って分布していると宣言することができる.このような宣言は,Probability,NProbability,Expectation,NExpectation等の関数で用いることができる.
- 確率密度関数および累積分布関数は,PDF[ChiDistribution[ν],x]およびCDF[ChiDistribution[ν],x]を使って得ることができる.平均,中央値,分散,原点の周りのモーメント,中心モーメントはそれぞれ,Mean,Median,Variance,Moment,CentralMomentを使って計算することができる.
- DistributionFitTestを使って与えられたデータ集合がカイ分布と一致するかどうかを検定することが,EstimatedDistributionを使って与えられたデータからカイパラメトリック分布を推定することが,FindDistributionParametersを使ってデータをカイ分布にフィットすることが可能である.ProbabilityPlotを使って記号カイ分布のCDFに対する与えられたデータのCDFプロットを生成することができ,QuantilePlotを使って記号カイ分布の変位値に対する与えられたデータの変位値プロットを生成することができる.
- TransformedDistributionを使って変換されたカイ分布を,CensoredDistributionを使って上限値と下限値の間で打ち切られた値の分布を,TruncatedDistributionを使って上限値と下限値の間で切断された値の分布を表すことができる.CopulaDistributionを使ってカイ分布を含むより高次元の分布を構築することが,ProductDistributionを使ってカイ分布を含む独立成分分布との結合分布を計算することができる.
- ChiDistributionは多くの他の分布と密接に関係している.例えば,
および
について,ChiDistribution[η]は,RayleighDistribution[η]およびMaxwellDistribution[η]とそれぞれ等しい.さらに,ChiDistributionは,XNakagamiDistribution[m,ω]が独立確率変数であれば
である(ただしYChiDistribution[2m])という意味において,より一般的なNakagamiDistributionの特殊ケースであると見ることができる.ChiDistributionは,NoncentralChiSquareDistributionの変換として得ることができ,GammaDistribution,NormalDistribution,HalfNormalDistributionとも密接に関係している.
例題
すべて開く すべて閉じる例 (4)
Plot[Table[PDF[ChiDistribution[ν], x], {ν, {.5, 1, 4}}]//Evaluate, {x, 0, 4}, Filling -> Axis]PDF[ChiDistribution[ν], x]Plot[Table[CDF[ChiDistribution[ν], x], {ν, {.5, 1, 4}}]//Evaluate, {x, 0, 4}, Filling -> Axis]CDF[ChiDistribution[ν], x]カイ分布の平均と分散はGamma関数に関連している:
Mean[ChiDistribution[ν]]Variance[ChiDistribution[ν]]Median[ChiDistribution[ν]]スコープ (8)
data = RandomVariate[ChiDistribution[3], 10 ^ 4];Show[
Histogram[data, 20, "PDF"],
Plot[PDF[ChiDistribution[3], x], {x, 0, 5}, PlotStyle -> Thick]]sample = RandomVariate[ChiDistribution[7], 10 ^ 3];edist = EstimatedDistribution[sample, ChiDistribution[ν]]サンプルの密度ヒストグラムを推定分布の確率密度関数と比較する:
Show[Histogram[sample, Automatic, "PDF"], Plot[PDF[edist, x], {x, 0, 5}, PlotStyle -> Thick]]Plot[Skewness[ChiDistribution[ν]], {ν, 0, 10}]Skewness[ChiDistribution[ν]]Limit[Skewness[ChiDistribution[ν]], ν -> ∞]Plot[Kurtosis[ChiDistribution[ν]], {ν, 0, 10}]Kurtosis[ChiDistribution[ν]]極限ではカイ分布の尖度はNormalDistributionの尖度と同じになる:
Limit[Kurtosis[ChiDistribution[ν]], ν -> ∞]FormulaGrid[list_, type_] := Grid[...]FormulaGrid[Table[Moment[ChiDistribution[ν], k], {k, 5}], M]Moment[ChiDistribution[ν], r]FormulaGrid[Table[CentralMoment[ChiDistribution[ν], k]//FullSimplify, {k, 5}], CM]FormulaGrid[Table[FactorialMoment[ChiDistribution[ν], k]//FullSimplify, {k, 5}], FM]FormulaGrid[Table[Cumulant[ChiDistribution[ν], k]//FullSimplify, {k, 5}], C]Plot[Table[HazardFunction[ChiDistribution[ν], x], {ν, {1, 5, 10}}]//Evaluate, {x, 0, 5}, Filling -> Axis]HazardFunction[ChiDistribution[ν], x]Plot[Table[Quantile[ChiDistribution[ν], q], {ν, {2, 5, 10}}]//Evaluate, {q, 0, 1}, Filling -> Axis]Quantile[ChiDistribution[ν], q]無次元Quantityを使って自由度母数 ν を指定する:
ChiDistribution[Quantity[3, "dozens"]]アプリケーション (1)
4Dベクトルの構成要素は正規分布に従う.ベクトルの長さの分布を求める:
𝒟 = TransformedDistribution[Norm[{u, v, w, z}], {u, v, w, z}ProductDistribution[{NormalDistribution[Quantity[0, "Centimeters"], Quantity[1, "Centimeters"]], 4}]]Plot[PDF[𝒟, Quantity[x, "Centimeters"]], {x, 0, 5}, Filling -> Axis, AxesLabel -> {"cm"}]Mean[𝒟]30のベクトルのサンプルが取り得る長さのシミュレーションを行う:
ListPlot[{RandomVariate[𝒟, 30], {{0, Mean[𝒟]}, {30, Mean[𝒟]}}}, Joined -> {False, True}, Filling -> Axis, AxesLabel -> Automatic]特性と関係 (8)
ChiDistribution[ν]は ν->∞で正規分布に収束する:
{μ, σ} = {Mean[ChiDistribution[ν]], StandardDeviation[ChiDistribution[ν]]}Table[Plot[{PDF[ChiDistribution[ν], x], PDF[NormalDistribution[μ, σ], x]}, {x, μ - 2σ, μ + 2σ}, AxesOrigin -> {μ - 3σ, 0}, Ticks -> {{{μ - 2σ, HoldForm[μ - 2σ]}, {μ, HoldForm[μ]}, {μ + 2σ, HoldForm[μ + 2σ]}}, Automatic}, PlotLabel -> ν], {ν, {5, 10, 25, 100}}]
カイ変数の二乗はChiSquareDistributionに従う:
TransformedDistribution[u ^ 2, uChiDistribution[ν]]
のカイ分布は
のHalfNormalDistributionに等しい:
PDF[ChiDistribution[1], x]PDF[HalfNormalDistribution[Sqrt[π / 2]], x]% - %%
のカイ分布は
のRayleighDistributionに等しい:
PDF[ChiDistribution[2], x]PDF[RayleighDistribution[1], x]% - %%
のカイ分布は
のMaxwellDistributionに等しい:
PDF[ChiDistribution[3], x]PDF[MaxwellDistribution[1], x]% - %%カイ分布はGammaDistributionの特殊ケースである:
PDF[GammaDistribution[1 / 2 ν, Sqrt[2], 2, 0], x]PDF[ChiDistribution[ν], x]% - %%//SimplifyTransformedDistribution[Norm[{x, y, z}], {x, y, z}ProductDistribution[{NormalDistribution[], 3}]]考えられる問題 (2)
ChiDistributionは,ν が正の実数でない場合は定義されない:
Mean[ChiDistribution[-3]]Mean[ChiDistribution[ν]] /. {ν -> I}おもしろい例題 (1)
累積分布関数の等高線を持つ ν のさまざまな値についての確率密度関数:
cdf = Function[{x, ν}, Evaluate[CDF[ChiDistribution[ν], x]]];
ql = {0.025, 0.10, 0.25, 0.5, 0.75, 0.90, 0.975};
cl = Table[ColorData["Rainbow"][q], {q, Join[{0.0}, ql]}];Legended[Plot3D[PDF[ChiDistribution[ν], x], {x, 0, 3}, {ν, 1, 5}, PlotTheme -> "Marketing", MeshFunctions -> {cdf}, Mesh -> {ql}, MeshStyle -> GrayLevel[0.8], MeshShading -> cl, AxesLabel -> Automatic, PlotPoints -> 100, BaseStyle -> Opacity[0.9], ImageSize -> 400, PlotRange -> {0, 0.8}], BarLegend["Rainbow", ql, LegendLabel -> "prob"]]テクニカルノート
-
▪
- 連続分布
関連するガイド
-
▪
- 正規分布および関連分布 ▪
- 指数関連分布
テキスト
Wolfram Research (2007), ChiDistribution, Wolfram言語関数, https://reference.wolfram.com/language/ref/ChiDistribution.html (2016年に更新).
CMS
Wolfram Language. 2007. "ChiDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/ChiDistribution.html.
APA
Wolfram Language. (2007). ChiDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChiDistribution.html
BibTeX
@misc{reference.wolfram_2026_chidistribution, author="Wolfram Research", title="{ChiDistribution}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/ChiDistribution.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_chidistribution, organization={Wolfram Research}, title={ChiDistribution}, year={2016}, url={https://reference.wolfram.com/language/ref/ChiDistribution.html}, note=[Accessed: 11-September-2026]}