HI Guys,
I know that this forum is not for homework but I am trying to interpret R
output code.
I was just wondering if someone might be able to help.
I have been given the following.
For (X1,X2) distributed bivariate normal with parameters
mu1 = 5.8
mu2 = 5.3
sd1 = sd2 = 0.2
and p = 0.6
-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of beetle2
Sent: Wednesday, 13 May 2009 3:23 PM
To: r-help@r-project.org
Subject: [R] Overlay cdf
Hi,
Is it possible to overlay a cummulative distribution function on a
histogram of a gamma distribuition
treat.
Thankyou all
Ben Bolker wrote:
beetle2 wrote:
For a homework question.
I was wondering if rcmdr has a function to plot a graph of a bivariate
function of X and Y.
I have a function with joint pdf
fX,Y(x,y) = x+y for 0x1 , 0y1
I've tried
x - seq(0,1,.001)
y - seq(0,1
Hi,
Is it possible to overlay a cummulative distribution function on a
histogram of a gamma distribuition.
I have a gamma function
Sample = rgamma(1000,2.5,.8)+1.5
hist(Sample)
regards
--
View this message in context:
http://www.nabble.com/Overlay-cdf-tp23515551p23515551.html
Sent from
For a homework question.
I was wondering if rcmdr has a function to plot a graph of a bivariate
function of X and Y.
I have a function with joint pdf
fX,Y(x,y) = x+y for 0x1 , 0y1
I've tried
x - seq(0,1,.001)
y - seq(0,1,.001)
r = x+y
plot(r)
but it seems to just add them together say
:46 AM, Ben Bolker wrote:
beetle2 wrote:
For a homework question.
I was wondering if rcmdr has a function to plot a graph of a
bivariate
function of X and Y.
I have a function with joint pdf
fX,Y(x,y) = x+y for 0x1 , 0y1
I've tried
x - seq(0,1,.001)
y - seq(0,1,.001)
r = x+y
the relative frequencies.
Btw, there is a small chance of getting a 0. Are you sure the
instructor (or whoever has issued the orders) wants only from 1:10?
HTH!
Ranjan
On Fri, 17 Apr 2009 22:23:11 -0700 (PDT) beetle2
samandbren...@aapt.net.au wrote:
Not being entirely sure what you
Sorry guys one quick question
I've graphed the histogram with
hist(rbinom(n = 1000, size = 10, prob = 0.25))
How to I sum the individual values 0 to 12?
regards
Brendan
beetle2 wrote:
Hi Guy's
I was wondering if someone could point me in the right direction.
dbinom(10,1,0.25)
I am
I'm thinking I will just use:
results - rbinom(1000, 10, .25)
d = sum(results == 0 )
df = (d/1000)
df
And do each individually
beetle2 wrote:
Hi Guy's
I was wondering if someone could point me in the right direction.
dbinom(10,1,0.25)
I am using dbinom(10,1,0.25) to calculate
Thanks for pointing me to the rbinom() function
regards
Brendan
beetle2 wrote:
Hi Guy's
I was wondering if someone could point me in the right direction.
dbinom(10,1,0.25)
I am using dbinom(10,1,0.25) to calculate the probabilty of 10 judges
choosing a certain brand x
Hi All,
Thank you for all your help.
In future I will state if it's homework related.
regards
Brendan
beetle2 wrote:
Hi Guy's
I was wondering if someone could point me in the right direction.
dbinom(10,1,0.25)
I am using dbinom(10,1,0.25) to calculate the probabilty of 10 judges
Not being entirely sure what you mean, I think
rbinom(1000, 10, .25)
may be what you want.
Hi,
Thanks for your reply.
It is close to that but I need to know the probabilty of how many judges
pick a certain brand.
Just say x= 6 judges pick brand A which has P=0.25.
Using R it would be:
Hi Guy's
I was wondering if someone could point me in the right direction.
dbinom(10,1,0.25)
I am using dbinom(10,1,0.25) to calculate the probabilty of 10 judges
choosing a certain brand x times.
I was wondering how I would go about simulating 1000 trials of each x value
?
regards
Brendan
13 matches
Mail list logo