Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Quick Statistics Application

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2009, 07:53 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default Quick Statistics Application

Hi All,

I've rewritten an earlier application which calculates all the possible scores of probability, X², Student-t and F-distributions from the input and vice-versa. Also it shows a nice graphical view of the above, below, in between and outside probabilities of a give z-score.
I realise this is only for the statistical geeks like me, but I find it rather usefull in quickly computing the wanted scores.
Have fun
Any feedback is greatly appreciated
thnx in advance
Marc
Attached Files
File Type: sbp Statistics.sbp (28.6 KB, 65 views)

Last edited by Stellaferox : 10-02-2009 at 07:50 PM. Reason: forgotten attachment
Reply With Quote
  #2 (permalink)  
Old 09-29-2009, 05:32 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Thank you, one never knows when in need for some statistics calculations (and the old schaum book is no longer available...)

line 552 needs change of PI to Cpi
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 09-29-2009, 06:16 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

LOL!
Thnx
Marc
Reply With Quote
  #4 (permalink)  
Old 09-30-2009, 05:00 AM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

Glad to see another stathead out there!

Your program is similar to my Probability Calculator (see page two of this forum). Mine was designed to run on a WM cell phone, hence the popup number pad.

Two questions about your program: (1) when going from p(z) to z I'm getting the wrong answer. For example, for alpha = .05 (1-tailed) the program returns 2.271 -- the correct answer, of course, is 1.645. Also, the program will not allow me to enter an alpha value for t, so I cannot lookup the value of t associated with a given alpha, df.

You might also be interested in my binomial calculator on the last page of this forum.
Reply With Quote
  #5 (permalink)  
Old 09-30-2009, 02:46 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

Hi,

LOL, always nice to meet a fellow stathead!

I adjusted the program according to your remarks. Thanks for your input. Anything is welcome. I uploaded the new program in my original post.

Your program was actually the push to update my old Turbo-Pascal and Delphi programs!
Thank you for that. At the moment I am working on several programs, also one on statistics; more specific, a program that creates 2 huge populations and then let you choose of which population you want to take samples. It then computes the data according.
If you encounter more problems, please let me know.
Marc
Reply With Quote
  #6 (permalink)  
Old 09-30-2009, 04:16 PM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

Hi,

I tried running your updated code (on the desktop), but now I receive the error message below.

I have a few Stat programs I may convert sometime, but there seems to be little interest so I have them on the back burner. My main focus right now is a GPS app, and then I may finish off my Let It Ride game.

Dave
Reply With Quote
  #7 (permalink)  
Old 09-30-2009, 04:27 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

if you change the "x" into "z" it will work.....
Marc
Reply With Quote
  #8 (permalink)  
Old 09-30-2009, 05:26 PM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

A couple of more items. I hope you don't think I am being hypercritical, I'm just trying to help.

Why does the button in the upper right-hand corner of the main form now display "$" instead of "Calc"?

For the t, F, and Chi-square distributions, the random variable textbox is bottom of the group, and the alpha box is at the top. For the Z distribution, the order is reversed. This is confusing, but easy to fix.

I like the graph page a lot. It could benefit from a "calc" or "graph" button. Currently, if you enter a new value the only way to redraw the graph is to check another radio button and then recheck the one of interest.

You might consider having the last calculated values from the main form automatically entered into the appropriate places on the graph form. Then, the user can simply switch to the graph page and see the results.

Dave
Reply With Quote
  #9 (permalink)  
Old 10-01-2009, 06:34 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

Dave,

Quite frankly, I appreciate your input very much because not a lot of people know or care enough about the subject to give feedback, so please continue to do so!

To address your comment:

- I changed it into a "$" because there wasn't any more space left to display "Calc". I thought about showing it in a pull-down menu but I wanted quick access. I guess if you rearrange the buttons a bit tighter, more space is left to display a proper button.

- About the order of the boxes: you're right. It is because I regard the z-score as basic to the Probability-scores. It is of course no problem at all to reverse the boxes and the cA.Checked line in the sub.

- About the graph-page: right again. I implemented this Graph page from an earlier written (stand-alone) program to calculate these scores. You don't have to check another radiobutton first, just rechecking the wanted button will do, but I agree that a "Calc" button here would suit in fine. I will do so.

- About you last remark: that is already on my to-do list. I also want to make a faster redrawing routine. This "Floodfill"routine is from earlier days when no real Floodfill-routine was available. On the desktop it works fast enough but on a pocket pc the routine is to slow.

The problem with most of my programs (or is it really my problem?) is that the moment functionality works I don't care very much anymore about presentation and displays. It is good therapy to make an extra effort for this, so thnx agian. In the following days I willl adjust the lines but feel free to adjust anything you'd like yourself. At the moment I am working on a program which shows the exact time of the sun coming up and going down world-wide, another stat-program I mentioned earlier and a game.

Marc
Reply With Quote
  #10 (permalink)  
Old 10-01-2009, 11:49 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Marc,

You are speeking of a Floodfill routine you are using.
Do you know that there is a Floodfill routine in agraham's ImageLibEx ?
I expect this one beeing much faster than one written in B4PPC.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Name kawawong Questions (Windows Mobile) 8 05-18-2012 11:37 AM
Very quick treeview question yildi Questions (Windows Mobile) 3 02-28-2008 05:36 PM
? Just a quick question, ****.exe.config taximania Questions (Windows Mobile) 12 09-01-2007 07:15 PM
Splat Master V2 - How Quick Are You Now?? RandomCoder Share Your Creations 7 07-05-2007 11:37 AM
Quick question to avoid going down a long dead end route LineCutter Questions (Windows Mobile) 2 05-22-2007 07:29 AM


All times are GMT. The time now is 12:19 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0