Post Reply 
Binomial Distribution Graphing
08-03-2024, 08:22 AM
Post: #1
Binomial Distribution Graphing
Hi all,

I'm a high school student from Australia recently introduced to the HP Prime.
Currently we are studying probability and and the rest of my peers use Casio and Texas Instruments calculators, whilst the Prime, although remarkably fast and a joy to use, does have a program to parametrically graph a binomial distribution (as far as I can tell).

I have been attempting to learn to create my own program to do this, however I have made little progress aside from performing simple callable functions, and am unable to graph anything.

I'd love support and resources to make progress on this; I'm barely familiar with the calculator and most of the resources I've had access to are from the old generation prime.

I find my self way out of my depth here, and getting desperate as I have exams soon and will need this ASAP.

Thanks in advance,
- vesph
Find all posts by this user
Quote this message in a reply
08-03-2024, 11:26 PM
Post: #2
RE: Binomial Distribution Graphing
The Statistics 1Var app has good graphing modes that might work. You can use MAKELIST and BINOMIAL to create the distribution. For example, 5 choices with 0.4 probability can be generated by:

MAKELIST(BINOMIAL(5,0.4,X),X,0,5)

Store this list into one of the app variables (D1 to D0) and then go into the Symb and Plot screens to generate your graph. A bar plot looks pretty good (I couldn't get the image to post here).

There are lots of ways to approach this on the Prime, but this is simple.

513016415223221833242338122322514610315
Find all posts by this user
Quote this message in a reply
08-04-2024, 10:58 AM
Post: #3
RE: Binomial Distribution Graphing
(08-03-2024 11:26 PM)john gustaf stebbins Wrote:  The Statistics 1Var app has good graphing modes that might work. You can use MAKELIST and BINOMIAL to create the distribution. For example, 5 choices with 0.4 probability can be generated by:

MAKELIST(BINOMIAL(5,0.4,X),X,0,5)

Store this list into one of the app variables (D1 to D0) and then go into the Symb and Plot screens to generate your graph. A bar plot looks pretty good (I couldn't get the image to post here).

There are lots of ways to approach this on the Prime, but this is simple.

Thanks, good to know an approach like that is possible.
It is still too slow of a process as I cannot quickly paste the data down the column, is there a way to automate this process, or another approach entirely?

Thanks,
-vesph
Find all posts by this user
Quote this message in a reply
08-04-2024, 11:15 AM (This post was last modified: 08-04-2024 12:41 PM by C.Ret.)
Post: #4
RE: Binomial Distribution Graphing
Hi Prime's friends !

The john gustaf stebbins's explanations are excellent.
Except that it is simpler to generate his example directly into the Statistic 1Var application.

Here is a small step-by-step tutorial that shows how to obtain the bar graph of his example:
[Image: attachment.php?aid=13781]
[Image: attachment.php?aid=13782]
Hope this help a bit.
Any questions or comments are welcome.


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
08-04-2024, 11:53 AM
Post: #5
RE: Binomial Distribution Graphing
(08-04-2024 11:15 AM)C.Ret Wrote:  Hi Prime's friends !

The vesph's explanations are excellent.
Except that it is simpler to generate his example directly into the Statistic 1Var application.

Here is a small step-by-step tutorial that shows how to obtain the bar graph of his example:
[Image: attachment.php?aid=13781]
[Image: attachment.php?aid=13782]
Hope this help a bit.
Any questions or comments are welcome.

You are a legend mate, thanks for the help, that's really easy!

Thank you so much, and john gustaf stebbins as well
-vesph
Find all posts by this user
Quote this message in a reply
08-04-2024, 06:35 PM
Post: #6
RE: Binomial Distribution Graphing
It isn't necessary to copy the data number by number. To transfer the list of the distribution to the app use the STO-> command and save it into one of the data variables. For Statistics1Var these are D1, D2, ... , D0. Actually I just did that at the end of the generator function (press shift STO-> and put the variable name D1).

The same thing can be done with the Statistics2Var using the variables C1 to C0.

I use this with programs that generate data. I can then put the data in the app analyze the data in the built in package rather than needing to write my own statistical analysis.

513016415223221833242338122322514610315
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)