Skip to content
Prev 249105 / 398498 Next

p value for joint probability

My terminology is probably way off. I?ll try again in plain english. 

I?d like  to generate a scatter plot of r1 & r2 and color code each pair according to the probability of observing the pair given that the two samples (r1 & r2) are drawn from two independent normal distributions.

rr<-data.frame(r1=-rnorm(1000,10,5),r2=-rnorm(1000,220,5))

with(rr,plot(r1,r2))

Best,
//M
On 31. jan. 2011, at 23.13, Peter Ehlers wrote: