事象確率 p のベルヌーイ(Bernoulli)過程を表す.
BernoulliProcess
事象確率 p のベルヌーイ(Bernoulli)過程を表す.
詳細
- BernoulliProcessは,離散時間・離散状態の過程を表す.
- 固定した瞬間におけるBernoulliProcessは,母数が p のベルヌーイ確率変数である.
- BernoulliProcessは,Mean, PDF,Probability,RandomFunction等の関数で使うことができる.
例題
すべて開く すべて閉じる例 (3)
data = RandomFunction[BernoulliProcess[1 / 3], {0, 30}]ListPlot[data, Filling -> Axis]Mean[BernoulliProcess[p][t]]Variance[BernoulliProcess[p][t]]CovarianceFunction[BernoulliProcess[p], s, t]DiscretePlot3D[CovarianceFunction[BernoulliProcess[.3], s, t], {s, 1, 10}, {t, 1, 10}, ExtentSize -> 1 / 2, ColorFunction -> "Rainbow"]スコープ (11)
基本的な用法 (5)
data = RandomFunction[BernoulliProcess[1 / 3], {0, 30}, 4]ListPlot[data, Filling -> Axis, PlotStyle -> PointSize[Medium]]sample[p_] := (SeedRandom[3];RandomFunction[BernoulliProcess[p], {0, 30}])pars = {.1, .4, .7};ListPlot[sample[#], Filling -> Axis, PlotLabel -> StringJoin["p = ", ToString[#]]]& /@ parssample = RandomFunction[BernoulliProcess[.3], {0, 10 ^ 3}];edist = EstimatedProcess[sample, BernoulliProcess[p]]CorrelationFunction[BernoulliProcess[p], s, t]AbsoluteCorrelationFunction[BernoulliProcess[p], s, t]過程スライス特性 (6)
SliceDistribution[BernoulliProcess[p], t]PDF[BernoulliProcess[p][t], x]SliceDistribution[BernoulliProcess[p], {1, 3, 7}]より高次の確率密度関数(PDF):
PDF[BernoulliProcess[p][{1, 3, 7}], {x, y, z}]Expectation[x[t] + x[t] ^ 2, xBernoulliProcess[p]]Probability[3x[t] ^ 2 + 2x[t] < 3, xBernoulliProcess[p]]Plot[Skewness[BernoulliProcess[p][t]], {p, 0, 1}]Skewness[BernoulliProcess[p][t]]Limit[Skewness[BernoulliProcess[p][t]], p -> 0]Limit[Skewness[BernoulliProcess[p][t]], p -> 1, Direction -> 1]BernoulliProcessはp=1/2について対称である:
Solve[Skewness[BernoulliProcess[p][t]] == 0, p]Plot[Kurtosis[BernoulliProcess[p][t]], {p, 0, 1}]Kurtosis[BernoulliProcess[p][t]]Limit[Kurtosis[BernoulliProcess[p][t]], p -> 0]Limit[Kurtosis[BernoulliProcess[p][t]], p -> 1, Direction -> 1]FindMinimum[Kurtosis[BernoulliProcess[p][t]] && 0 < p < 1, {p, 1 / 3}]Moment[BernoulliProcess[p][t], r]CharacteristicFunction[BernoulliProcess[p][t], w]MomentGeneratingFunction[BernoulliProcess[p][t], w]CentralMomentおよびその母関数:
CentralMoment[BernoulliProcess[p][t], r]CentralMomentGeneratingFunction[BernoulliProcess[p][t], w]FactorialMomentは,記号次数については閉形式を持たない:
FactorialMoment[BernoulliProcess[p][t], 3]FactorialMomentGeneratingFunction[BernoulliProcess[p][t], w]Cumulantおよびその母関数:
Cumulant[BernoulliProcess[p][t], r]CumulantGeneratingFunction[BernoulliProcess[p][t], w]アプリケーション (1)
特性と関係 (5)
WeakStationarity[BernoulliProcess[p]]ベルヌーイ過程には明確に定義されたStationaryDistributionがある:
StationaryDistribution[BernoulliProcess[p]]Probability[(x[t2] == x2)(x[t1] == x1), xBernoulliProcess[p]]BinomialProcess
は,BernoulliProcess
と
の和である:
SeedRandom[3];bernoulli = RandomFunction[BernoulliProcess[p = 17 / 32], {20}];ListPlot[bernoulli, Filling -> Axis]accumulated = Accumulate[bernoulli]ListPlot[accumulated, Filling -> Axis]BinomialProcessと比較する:
SeedRandom[3];
sample = RandomFunction[BinomialProcess[p], {1, 21}];binomial = TimeSeriesShift[sample, -1];ListPlot[{binomial, accumulated}, Filling -> Axis, PlotStyle -> {PointSize[.05], PointSize[0.02]}, PlotLegends -> {"binomial", "accumulated Bernoulli"}]proc = BernoulliProcess[1 / 3];m = Mean[proc[t]]sample = Mean[RandomFunction[proc, {10 ^ 7}]["Values"]]m - %//Nおもしろい例題 (1)
data = RandomFunction[BernoulliProcess[.7], {20}, 500];sd = data["SliceData", 20];cf = ColorData["DarkBands"];
sliced = BarChart[Last[#], Axes -> False, BarOrigin -> Left, AspectRatio -> 4, ChartStyle -> (cf /@ First[#]), ImageSize -> 40]&[HistogramList[sd, {-0.5, 1.5, 1}]];20におけるスライス分布の経路とヒストグラム分布をプロットする:
ListStepPlot[data, ImageSize -> 400, PlotRange -> All,
AspectRatio -> 3 / 4, Epilog -> Inset[sliced, {20.5, .5}, {0, 1.5}], PlotStyle -> (cf /@ sd), BaseStyle -> Directive[Thin, Opacity[0.5]], PlotRangePadding -> {{0, 10}, {.5, 1}}]関連するガイド
テキスト
Wolfram Research (2012), BernoulliProcess, Wolfram言語関数, https://reference.wolfram.com/language/ref/BernoulliProcess.html.
CMS
Wolfram Language. 2012. "BernoulliProcess." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BernoulliProcess.html.
APA
Wolfram Language. (2012). BernoulliProcess. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BernoulliProcess.html
BibTeX
@misc{reference.wolfram_2026_bernoulliprocess, author="Wolfram Research", title="{BernoulliProcess}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/BernoulliProcess.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_bernoulliprocess, organization={Wolfram Research}, title={BernoulliProcess}, year={2012}, url={https://reference.wolfram.com/language/ref/BernoulliProcess.html}, note=[Accessed: 16-September-2026]}