Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Advanced Probability and Statistics
Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2009, 08:05 PM
Newbie
 
Join Date: Oct 2009
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
xuyuan is on a distinguished road
Default The R Project for Statistical Computing

Does anyone know how to use R to give a printout of the following?

"In 100 trials of rolling a pair of dice, let X be the number of trials each giving a total of "seven" on teh pair of dice. Plot the probablity histogram of X.

I'm trying to usep #Contains b(2;12,1/36),b(3;12,2/36),b(4;12,3/36) ,b(5;12,4/36) ,b(6;12,5/36) ,b(7;12,6/36) ,b(8;12,5/36) ,b(9;12,4/36) ,b(10;12,3/36) ,b(11;12,2/36) ,b(12;12,1/36) but the software says that its not even teh right way to define P

Edit: I might have figured it out, can someone letme know if this is the right commands

p<-dbinom(0:100, 100, 6/36)
barplot(p, names.arg=0:100, xlab="x",ylab="b(x; 100, 6/36)", main="Probability Histogram: Binomial (100,6/36)")
Reply With Quote
Advertisement
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 09:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.