Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15147

Re: User-defined Probability Mass Function

From Peter Klamser <klamser@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: User-defined Probability Mass Function
Date 2013-07-08 03:19 +0000
Message-ID <krdb4g$ept$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


With ProbabilityDistribution you define a function, that Mathematica handles
as a arbitrary ProbabilityDistribution you can define.

Mathematica offers you the transformation from a PDF to a CDF (cumulative
distribution function). That is the part of the functional programming
concept of Mathematica.

What you search, I think, is bfitting the Parameters of a classic PDF
to the data you offer:

xv={-2.1, 3.45, 7};
yv={0.5,0.3,0.2};
xyv=Transpose[{xv,yv}];
ListPlot[Transpose[{xv,yv}]]
NonlinearModelFit[xyv,PDF[ChiDistribution[\[Nu]],x],{\[Nu]},x]

Kind regards wishes Peter

Sehr geehrter Herr Frau ,



Freundliche Gr=FC=DFe sendet

Dr. Peter Klamser


2013/7/6  <bruce.colletti@gmail.com>:
> The questions below can presumably be answered in terms of
ProbabilityDistribution, so here goes...
>
> How do I create a distribution for the discrete random variable whose
support is {-2.1, 3.45, 7} having corresponding probabilities {0.5, 0.3,
0.2}?
>
> What if the support is {-2.1, 3.45, pi}?
>
> If ProbabilityDistribution cannot support these, then what?
>
> Thanks.
>
> Bruce
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: User-defined Probability Mass Function Peter Klamser <klamser@googlemail.com> - 2013-07-08 03:19 +0000

csiph-web