An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130125/6d706b80/attachment.pl>
joint probability distribution
4 messages · Eliza Botto, Rui Barradas, Suzen, Mehmet +1 more
Hello,
You need to be much more specific. What do you know about the
distributions of X and Y? And about their joint distribution?
If you suspect the joint distribution to be a bivariate normal try
package mvtnorm with
mu <- c(mean(x), mean(y))
sigma <- cov(cbind(x, y))
You can also try kernel density estimates:
library(sos)
findFn('kde')
Hope this helps,
Rui Barradas
Em 25-01-2013 18:13, eliza botto escreveu:
Dear R family, I want to calculate the joint probability (distribution) of two random continuous variables X and Y. Could to please tell me how to do it?Thanks in advance.. elisa [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Not sure what is your exact requirement but you can compute marginals and conditional probabilities using 'prob' package of Prof. Kerns.
On 25 January 2013 22:15, Rui Barradas <ruipbarradas at sapo.pt> wrote:
Hello,
You need to be much more specific. What do you know about the distributions
of X and Y? And about their joint distribution?
If you suspect the joint distribution to be a bivariate normal try package
mvtnorm with
mu <- c(mean(x), mean(y))
sigma <- cov(cbind(x, y))
You can also try kernel density estimates:
library(sos)
findFn('kde')
Hope this helps,
Rui Barradas
Em 25-01-2013 18:13, eliza botto escreveu:
Dear R family,
I want to calculate the joint probability (distribution) of two random
continuous variables X and Y.
Could to please tell me how to do it?Thanks in advance..
elisa
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada
-----Original Message----- From: eliza_botto at hotmail.com Sent: Fri, 25 Jan 2013 18:13:55 +0000 To: r-help at r-project.org Subject: [R] joint probability distribution Dear R family, I want to calculate the joint probability (distribution) of two random continuous variables X and Y. Could to please tell me how to do it?Thanks in advance.. elisa [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!