問題タブ [cdf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1060 参照

gnuplot - Gnuplot CCDF plotting and log-log scale

My data file is a set of sorted single-column:

#xA;

I am able to successfully plot the CDF using the command like (assuming 10000 lines in the file):

#xA;

I am also able to plot the logcale of x axis by:

#xA;

My problem is how can I have a CCDF plotting with Gnuplot?

In additional, the CDF with log-log scale (set logscale xy) can not give me any output. What if I would like to have a log-log CCDF plotting?

Many thanks!

0 投票する
1 に答える
1286 参照

matlab - CDF プロットがゼロから始まらない

関数を呼び出して、データの cdfcurves をプロットしようとしましたcdfplot(x)。ここに私のコードの一部があります:

残念ながら、私が得る結果は非常に混乱しています。 ここに画像の説明を入力

黄色と紫の曲線はゼロ以外の値から始まりますが、CDF 曲線は常にゼロから開始する必要があります! 誰か私にいくつかの提案をしてもらえますか? 黄色の曲線を単独でプロットしようとしましたが、まだ「偏っている」です。ご協力ありがとう御座います!

0 投票する
1 に答える
542 参照

r - R で処理できる離散 CDF を指定して分位関数を作成する

たとえば、次のような CDF を持つ離散関数があります。

次の行で一種の分位関数を作成できます。. .

. . . ここで、x は累積確率です。たとえば、qfunction(0.9) = 4 および qfunction(0.99) = 5 です。

このソリューションは、ベクトルを処理するまでは(エレガントではありませんが)問題ないように見えます。したがって、x = c(0.9, 0.99) の場合、関数は失敗します。これは、人々がRで多くのことを行うように思えますが、解決策はまだ見つかりません. R は私の第一言語ではありません。

どんな助けでも大歓迎です。

0 投票する
0 に答える
1237 参照

python - Python での CDF からの PDF

任意のグリッドで Python の CDF から PDF を計算するツールと、任意の数の変数の CDF を計算するツールがあるかどうかは誰にもわかりません。

PDF - 確率分布関数 CDF - 累積分布関数

0 投票する
1 に答える
2908 参照

r - Filling cross over under a Cumulative Frequency plot using ggplot in R

I am trying to plot two Cumulative Frequency curves in ggplot, and shade the cross over at a certain cut off. I haven't been using ggplot for long, so I was hoping someone might be able to help me with this one.

The plot without filled regions, looks like this... Cumulative Frequency for North and South regions

Which I have created using the following code...

What I would then like, would be to shade both curves for temperatures below 0.2 on the y axis. Ideally I'd like to see the blue one shaded in blue, and the red one shaded in red. Then, where they cross over in purple.

However, the closest I have managed is as follows... My first attempt at getting areas under the curve]

Which I have achieved using the following additions to my code.

I've seen a few examples of people shading for a normal distribution density plot, which is where I have adapted my code from. But for some reason my boxes don't seem to want anything to do with the temperature curve.

Please help! I'm sure it's quite simple, I'm just really lost and have tried a few, producing less convincing results than these.

Thank you so much for taking a look.

PROBLEM SOLVED THANKS TO HELP BELOW...

running suggested code from below

gives...

enter image description here

which is so very almost the solution I'm after, but with one final addition... like so

I get what I'm after... enter image description here

The reason I set the data again is so that it only fills the lowest 20% of the two regions.

Thank you so much for the help :-)

0 投票する
1 に答える
2633 参照

r - R ggplot: 加重 CDF

を使用して重み付き CDF をプロットしたいと思いggplotます。SO 以外の古い議論 (例: 2012 年のこれ) では、これは不可能であることが示唆されていますが、私は再提起することにしました。

たとえば、次のデータを考えてみましょう。

重み付けされていないCDFを表示できます

ここに画像の説明を入力

これをどのように重み付けしwますか?この例では、x^2数値が大きいほど重みが高くなるため、 のように見える関数が期待されます。

0 投票する
1 に答える
106 参照

r - R累積分布図

私は、データの視覚化に R を使用する初心者です。次のコードで累積分布図を生成しました。

これで私は得る

ここに画像の説明を入力

今の問題は、線で結ばれた点ではなく、明確な線を取得したいということです。pch と lty パラメータを変更しようとしましたが、それらと明確な境界線を引く方法はないようです。この問題を解決する方法はありますか?

ありがとう、そしてよろしく!

0 投票する
0 に答える
3178 参照

excel - 経験的累積分布関数 (CDF) を作成し、CDF を使用して確率を見つけます。

一連の観測データがあり、Excel を使用して経験的累積分布を作成しました。P(x < X)この CDF を使用して、またはのような確率を見つけたいと考えていますP (X1 < x < X2 )

CDF を作成した方法は、データを昇順に並べ替え、その横に確率を示す列を作成することです。

http://i.stack.imgur.com/VsXhD.png

4,121 のレコードがあり、ここのサンプルは 4 つのレコード用です。Dataこの計算が完了すると、x 軸とy 軸のxy 散布図を使用して曲線がプロットされProbabilityます。これがCDFの作成方法です。

P(x<=2.5)2.5、 、または未満の確率を見つけるにはどうすればよいP( 970 < x < 980 )ですか?

何百もの確率を見つけることができるので、簡単な方法があることを願っています。