ドキュメンテーションヘルプ センター
確率分布の負の対数尤度
nll = negloglik(pd)
例
nll = negloglik(pd) は、確率分布 pd の近似に使用するデータの負の対数尤度関数の値を返します。
nll
pd
すべて折りたたむ
標本データを読み込みます。
load carsmall
分布をガロンあたりの走行マイル数 (MPG) データに近似することにより、ワイブル分布オブジェクトを作成します。
MPG
pd = fitdist(MPG,'Weibull')
pd = WeibullDistribution Weibull distribution A = 26.5079 [24.8333, 28.2954] B = 3.27193 [2.79441, 3.83104]
近似したワイブル分布の負の対数尤度を計算します。
wnll = negloglik(pd)
wnll = 327.4942
標本データを読み込みます。カーネル分布をガロンあたりの走行マイル数 (MPG) データにあてはめます。
load carsmall; pd = fitdist(MPG,'Kernel')
pd = KernelDistribution Kernel = normal Bandwidth = 4.11428 Support = unbounded
負の対数尤度を計算します。
nll = 327.3139
確率分布。次のいずれかを使用して作成した確率分布オブジェクトを指定します。
fitdist
分布のあてはめに使用したデータの負の対数尤度値。数値として返されます。
Distribution Fitter | fitdist | mle | paramci | proflik
mle
paramci
proflik
この例の変更されたバージョンがシステム上にあります。代わりにこのバージョンを開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office