Re: Variance from pdf



Thanks, Peter. This is really helpful.

Regards
Rakib

Peter Perkins wrote:
>
>
> R Ahmed wrote:
>
>> I have the pdf values at hand and I need to know the variance
and
>> mean of the pdf. Please let me know how it is possible in
MATLAB
> to
>> do so.
>
> Hi -
>
> This isn't a lot of information to go on. I guess what you mean
> is, "I have
> numerical values for the PDF f(x) at some (hopefully) large number
> of x values."
>
> If that's really what you have, it seems like the best you can do
> is think of
> this as a stairstep approximation to the true PDF.
>
> you can do one of two things:
>
> 1) compute the two moments analytically, or
>
> 2) generate a large number of random values from your PDF
> approximation, and
> compute their sample mean and variance as an approximation to the
> true moments.
> You should be able to do this pretty easily using RANDSAMPLE from
> the
> Statistics Toolbox, if you have that toolbox.
>
> Hope this helps.
>
> - Peter Perkins
> The MathWorks, Inc.
>
.



Relevant Pages

  • Re: Channel
    ... variance is occured when our signal i study by using pdf to find ... out probability of the random variable and intregated to pdf to find ... The probability distribution of a random variable _can_ be Gaussian, but isn't _necessarily_ Gaussian -- this is basic statistics which you can review. ...
    (comp.dsp)
  • Re: How to solve the probability density of z=ax+w?
    ... x,w are all normal distribution and their 1st and 2nd moment have been known. ... If a = 0 then the pdf of z is the same as the pdf of w, ... mean is the sum of the means of x and w, and whose variance is the sum ... I think that this can be done exactly in closed form. ...
    (sci.math)
  • Curve fitting for a probability density function
    ... probability density function for the distribution of the objects ... The PDF which we are going to ... and variance calculated using the estimate. ... In calculating the least squares, ...
    (sci.stat.math)
  • Re: How to solve the probability density of z=ax+w?
    ... If a = 0 then the pdf of z is the same as the pdf ... mu_x and sigma_x^2 are the mean and variance of x ... in closed form. ... normal distribution whose expected value is easily ...
    (sci.math)
  • Re: Channel
    ... if noise we consider awgn that has zero mean and varince. ... variance is occured when our signal i study by using pdf to find ...
    (comp.dsp)