This post wants to introduce a simple statistical application that I have written many years ago.

First, the url link to download this application is:

http://uploads.offtopic.com/files/stat.zip

Now you may say: "Math, are you trying to spread a virus or a trojan horse?!" Of course my answer is no and my application is clean. But of course you do not have to believe me, so it is totally up to you to download it or not.

After unzipping, this application (stat.exe) is only 128K, and needs no installing, you can just double click to run, and you can simply delete it anytime.

The original version of this application was written many years ago when I was working in China, and we needed to find many statistical results quickly without using hand-computations. And of course there was no fancy commercial software to use, so I simply spent an afternoon and wrote this very useful application. This version is an updated version with a better interface, I still use it often because it is simple and is not too fancy.

Now, here is a very quick tutorial:

When you open the stat.exe, you'll see it is in Chinese. (You may see "?????" if you do not have the Chinese encoding).

You will see two text fields. The first one means: "Total Sample Size". The one below it means: "Total Number of Occurences". There are two radio boxes, one is "95%", the other is "99%". There are also two display fields, one is "P1=", the other is "P2=".

Finally, there are two buttons. The bigger button, beside the radio boxes, is "Calculate". The small button beside the first text field is "Exit". This is as follows (you may see ???? instead of Chinese):

Ok, let me give you a simple example where you can use this program.

You want to find out how many people in your workplace are smokers. So you ask 100 people, and 60 of them say that they are smokers. So now, you can enter "100" in the first text field (Sample Size), and enter "60" in the second text field (Number of "Yes"'s to the question "Do you smoke".).

Now, you select either "95%" (the left radio button) or "99%" (the right radio button) from those 2 radio buttons. Those percentages is your "confidence level". That means how "reliable" do you want your findings to be. So, let us just select 95%.

Now, you'll have something like:

Now, simply click on "Calculate" (The big button beside the radio buttons).

Now, you see P1=50.200078%, P2=69.060025%:

What does P1 and P2 mean? Well, it means that now you can claim "I am 95% sure that the percentage of smokers in my entire workplace is between 50.200078% and 69.060025%.". So if your workplace has 1000 people, you can say that "I'm 95% sure that there are at least 500 smokers and at most 690 smokers in my workplace, BASED on the answers I got from my survey of 100 workers."

Of course you do not know exactly what the percentage is, but you will get a upper bound (P2) and lower bound(P1) with either 95% confidence level or 99% confidence level. Of course, if you chose the 99% with that same survey (size=100, ocurrences=60), your P1-P2 range will be bigger. It will be around 47% and 71%. This of course makes sense, because now you want to be 99% sure, and that means you want to be "safer" and thus include a larger range.

Furthermore, if you ask more of your coworkers, and ask 200 instead of 100, you will be able to obtain a smaller range with the same confidence level, so bigger sample size is always better. You may try it again to confirm that.

In your daily life, you want to find out answers to many "yes/no" questions by simply asking that question to a sample, and this application will tell you the real percentages of "yes's" (or No's). For example, you may want to find out the percentage of people with a disease in a town, the percentage of people who voted for a person in classroom, etc. These can be easily done with this application.

You may ask "Math, how can I believe you are right?!". Well, I am not an expert in statistics, but the theories of my application can be found in any first-year statistics book. I simply wrote this application based on my memory of some statistics I learned in high school. Of course this application is based on the (0 - 1) distribution, and you may find the relevant formulas in any math reference book.

Well, from now on, if some of you lack some "evidence" or "statistics" to support your arguments, you can design a simple survey and then analyze the results with this application. And you can come here and say "According to Math's stat.exe program, I can present you with this and this claims", etc etc. Or if you are a government offical or a scientist or an engineer or a social worker, you can enhance your statisitcal knowledge and awareness and help you make good decisions, based on real results, and perhaps some of you can start to get rid of some bad habits of humanity majors.

Of course, as with all my posts, I do not seek copyright for this application, you may distribute it anywhere and you do not have to acknowledge me. You can claim you wrote this application, and I will not mind at all. I think if there's something useful or interesting, it should be shared and used by others.

Last edited by a moderator: Jun 4, 2005