Go to Post Seriously I didn't think that "FIRST, it's the WWF for smart people" would ever catch on. - Schnabel [more]
Home
Go Back   Chief Delphi > Other > Math and Science
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 01-01-2014, 14:53
Basel A's Avatar
Basel A Basel A is offline
It's pronounced Basl with a soft s
AKA: @BaselThe2nd
FRC #3322 (Eagle Imperium)
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Ann Arbor, Michigan
Posts: 1,941
Basel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond repute
Re: Statistics Quiz#1

Quote:
Originally Posted by Ether View Post
Thanks Ryan.

If anybody has access to R, Mathematica, MathCAD, or Maple, would you please post the value computed for p1?

I'm investigating which numerical package gives the most accurate answer.


Maple 17 and Mathematica 9.0 gave the same answer, a very large fraction that evaluates to 0.591634715653168147118256848279....

Here's the code:

Maple (with Digits set to 30):
Code:
evalf(CDF(RandomVariable(Binomial(2000, 1/3)), 671));
Mathematica:
Code:
N[CDF[BinomialDistribution[2000, 1/3], 671], 30]
__________________
Team 2337 | 2009-2012 | Student
Team 3322 | 2014-Present | College Student
“Be excellent in everything you do and the results will just happen.”
-Paul Copioli
Reply With Quote
  #17   Spotlight this post!  
Unread 01-01-2014, 15:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Statistics Quiz#1

Quote:
Originally Posted by Basel A View Post
Maple 17 and Mathematica 9.0 gave the same answer, a very large fraction that evaluates to 0.591634715653168147118256848279....
Thank you.

That confirms the 80-digit arbitrary-precision calc I did with Maxima.

The "very large fraction" has 953 digits in the numerator (and denominator). The first 80 digits of the decimal representation of that fraction are:

Code:
load(distrib)$
fpprec:80$
bfloat(cdf_binomial(671,2000,1/3));

0.59163471565316814711825684827930003268147312930167045093849129098685265637080124
Comparing the above to double-precision calculations:

0.591634715653168.....(Scilab)
0.59163471565317......(Maxima)
0.591634715653171.....(Matlab)
0.591634715653066.....(Octave)
0.59163471565245895...(Python)


... Scilab is the most accurate, Python the least, and Matlab is in the middle of the pack.

If you do the calcs using double-precision in Maple and Mathematica, what result do you get?


Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi