Displaying 1 result from an estimated 1 matches for "intto".
Did you mean:
into
1999 Nov 22
1
variance?,...
...istribution function
expected value and variance(?).
I know
EX <- function(xval,xprob) sum( (xval*xprob) );
where xval is vector of values and xprob vector of probabalities,
but
DX <- function(xval,xprob) EX((xval^2),xprob) - (EX(xval,xprob))^2;
doesn't work as I thought.
I've looked intto FAQs and archives but my question
is probably too simple.
Can somebody tell me what's wrong on my example ?
And one more question: when I'm plotting density:
plot(x, dnorm(x,as.double(mu),as.double(sigma_square)), style );
on interval x I get relatively small number of probabilities.
I'...