vpFREE2 Forums

PDFs revisited

Gang,

I've written a Perl script to compute the PDF for any game with known
probabilities for the outcome of a single hand. This script uses the
classical iterative approach. It is as accurate as the math unit on
your computer. It generates a textfile with pairs of outcome and
probability. This is perfect for further processing. You can plot the
results with tools like "gnuplot". There is also an option to calculate
cumulative probabilities.

I'm willing to contribute the script and the probabilities for some
well known VP games to the VP community.

If there's interest, please let me know how to best publish. Yahoo
groups doesn*t accept attachments. I could put everything into group
mails. You'd have to seperate it out of the junk. Or I could mail it
to somebody for publication on her or his webspace. Or some other form,
you are suggesting.

Best regards,
  heppel

I'm willing to contribute the script and the probabilities for some
well known VP games to the VP community.

If there's interest, please let me know how to best publish. Yahoo
groups doesn*t accept attachments. I could put everything into

group

mails. You'd have to seperate it out of the junk. Or I could mail

it

to somebody for publication on her or his webspace. Or some other

form,

you are suggesting.

Best regards,
  heppel

Some of the Excel sheets have been mailed to the Adm. and posted in
the files section. Perhaps the Adm. is the best to answer this.
What ever way, the best would be for it to be available to all, like
using the files section.

DWK

···

--- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:

deuceswild1000 wrote

Some of the Excel sheets have been mailed to the Adm. and posted in
the files section. Perhaps the Adm. is the best to answer this.
What ever way, the best would be for it to be available to all, like
using the files section.

There's a PDF calculator that was posted to the files section --
apparently Sept. 2.

If this was announced here I missed it (perhaps others too) since I
was away over Labor Day weekend.

The author is noted as Jonathan Bloch. Is this a contributor under
another handle here? In any case, on first glance it appears to be a
fine effort.

- H.

I've written a Perl script to compute the PDF for any game with

known

probabilities for the outcome of a single hand. This script uses the
classical iterative approach. It is as accurate as the math unit on
your computer. It generates a textfile with pairs of outcome and
probability. This is perfect for further processing. You can plot

the

results with tools like "gnuplot". There is also an option to

calculate

cumulative probabilities.

With the administrators help I've uploaded a zip archive named pdf.zip
to the files section. It contains the perl script (pdf.pl) and several
textfiles with the probabilities for some well known games. Please
read the comments at the beginning of the perl script for information
on usage.

The script requires at least Perl 5.0. This is standard with all
Unix/Linux versions and with MacOS X. Everybody else can get it for
free from http://www.cpan.org/ .

Enjoy,
  heppel

···

--- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:

This sounds exactly what I have been looking for. As all of you on
this list know, I am not a statitician. Well I need help getting this
program to run also. I have Windows XP Home Edition with Service
Pack 2.

Would someone be willing to walk me through the setup and execution of
this program. Private e mails would be fine, but I am sure others
could use the help also. So far I have had no luck trying to
implement any of this.

DWK

···

--- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:

--- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:
> I've written a Perl script to compute the PDF for any game with
known
> probabilities for the outcome of a single hand.

wrote:

> > I've written a Perl script to compute the PDF for any game with
> known
> > probabilities for the outcome of a single hand.

This sounds exactly what I have been looking for. As all of you on
this list know, I am not a statitician. Well I need help getting this
program to run also. I have Windows XP Home Edition with Service
Pack 2.

Would someone be willing to walk me through the setup and execution of
this program. Private e mails would be fine, but I am sure others
could use the help also. So far I have had no luck trying to
implement any of this.

I'll try. I'll use the parameters given in your post: XP Home SP2.

I happen to have just that environmet available, though it's not my
regular environment. It seems to handle more awkward under Windows
than under Linux, but I may be missing something.

Go to:

http://www.activestate.com/store/languages/register.plex?id=ActivePerl

Download the file to your disk. Doubleclick that file. Follow the
instructions. The license agreement looks fair to me, but I'm not an
expert, so please read it yourself.

Now you have Perl on your machine. It comes with extensive
docmentation. But for a quick start, just open a command window
(Start, Execute, enter "cmd", Ok). "cd" to the "pdf" directory you got
from the zip archive. Enter a command like

perl pdf.pl -i 1 -c fpdw_ruin.txt

This will print the probabilities for one hand of deuces wild to your
screen.

Hope this helps,
  heppel

···

--- In vpFREE@yahoogroups.com, "deuceswild1000" <deuceswild1000@y...>

--- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:
> --- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:

Go to:

http://www.activestate.com/store/languages/register.plex?

id=ActivePerl

Download the file to your disk. Doubleclick that file. Follow the
instructions.

I think I did this. After extracting the files I get the following
missage:

2005\ActivePerill-5.8.7.813-MSWin32-x86-148120 does not exist or is
not a directory.

Any suggestions?

DWK

···

--- In vpFREE@yahoogroups.com, "heppel58" <heppel58@y...> wrote:

wrote:

I think I did this. After extracting the files I get the following
missage:

2005\ActivePerill-5.8.7.813-MSWin32-x86-148120 does not exist or is
not a directory.

Sorry, I have no clue about that error message. I tried the download
and installation on my notebook just before posting and it worked for me.

You might try one of the other perl packages from www.cpan.org. Or you
might install the "Cygwin" package, which will give you a Unix-like
environment on your Windows computer. It inludes Perl.

I'm typing this in a hotel room and I won't have access to my usual
resources at home for the next several weeks. My internet access will
be limited too.

Regards,
  heppel

···

--- In vpFREE@yahoogroups.com, "deuceswild1000" <deuceswild1000@y...>