boundary
区分的分布境界
説明
例
paretotails
オブジェクトの境界
標本データセットを生成し、パレート分布の裾をもつ区分的分布を生成されたデータに当てはめることにより、paretotails
オブジェクトを作成します。オブジェクト関数 boundary
を使用して、paretotails
オブジェクトのセグメント間の境界点を求めます。
20% の外れ値が含まれている標本データセットを生成します。
rng('default'); % For reproducibility left_tail = -exprnd(1,100,1); right_tail = exprnd(5,100,1); center = randn(800,1); x = [left_tail;center;right_tail];
区分的分布を x
に当てはめることにより paretotails
オブジェクトを作成します。当てはめたオブジェクトがデータセットの中間 80% については経験的分布、データセットの下位および上位 10% については一般化パレート分布 (GPD) から構成されるように、下裾と上裾の累積確率を使用して裾の境界を指定します。
pd = paretotails(x,0.1,0.9)
pd = Piecewise distribution with 3 segments -Inf < x < -1.33251 (0 < p < 0.1): lower tail, GPD(-0.0063504,0.567017) -1.33251 < x < 1.80149 (0.1 < p < 0.9): interpolated empirical cdf 1.80149 < x < Inf (0.9 < p < 1): upper tail, GPD(0.24874,3.00974)
関数 boundary
を使用して、区分的セグメント間の境界値を取得します。
[p,q] = boundary(pd)
p = 2×1
0.1000
0.9000
q = 2×1
-1.3325
1.8015
p
内の値は境界における累積確率、q
内の値は対応する分位数です。
paretotails
オブジェクトの cdf をプロットし、Figure で境界点をマークします。
xi = sort(x); plot(xi,cdf(pd,xi)) hold on plot(q,p,'ro') legend('Pareto Tails Object','Boundary Points','Location','best') hold off
入力引数
pd
— パレート分布の裾をもつ区分的分布
paretotails
オブジェクト
パレート分布の裾をもつ区分的分布。paretotails
オブジェクトを指定します。
j
— 境界のインデックス
正の整数
どの境界を返すかを指定する境界のインデックス。正の整数を指定します。
データ型: single
| double
出力引数
p
— 境界における累積確率
範囲 (0,1)
の値から構成される数値ベクトル
各境界における累積確率。範囲 (0,1)
の値から構成される数値ベクトルとして返されます。
q
— 境界における分位数
数値ベクトル
各境界における分位数。数値ベクトルとして返されます。
バージョン履歴
R2007a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)