StatPack83 
by Alex Astashyn     
donetsk@gtminet.net


BINOMPRB
Binomial calculation & approximation program.

Input:	
	N - number of trials
	P - probability of success
	Lower - lowest desired number of successes
	Upper - highest desired number of successes
Output:
	Normal Approx. - Normal approximation
	Corrected - Corrected approximation (expanded bounds)
	Binomial prob - Exact binomial probablility

Example 1: 
	The probability of me passing the health class is .3 If I take health 
	four times what is the probability that I pass this class exactly two times?

	N=4
	P=.3
	Lower=2
	Upper=2

	Since we don't need approximation we discard the warning message and approximation 		outputs.

	Binomial prob = .2646

	I bet nobody noticed that the events were not independent =)
 
Example 2:
	If I have 500 email messages in my mailbox and the probability that a message is not 		spam is .3 What is the approximate probability that at least 160 messages are not spam?

	N=500
	P=.3
	Lower=160
	Upper=500

	Normal approximation: .164556
	Corrected: .176935


CONFINT
If you ever bothered to take a look at the AP questions you would notice that they express confidence intervals as mean  margin of error. TI-83 however, outputs confidence intervals in interval notation. This program converts TI-83 notation into AP notation in a blink of an eye so you could save time during the examination

Just run the program to see the recent test results of a CI test in mean  margin of error form

Note: Don't forget to run the actual Interval Test before running the program



GOODFIT 
Chi^2 goodness of fit test.

Input:
	Observed - list of observations
	Expected - list of expectations
	Alpha - alpha level
Output:
	Good fit or Bad fit - decision
	Chi^2 standartized test statistic
	p - p-value
	df - Degrees of freedom
	CV - critical Chi^2 value 


HYPERGEO
Hypergeometric probability program

Input:
	Population - size of...
	Subpopulation of successes - size of...
	Sample - size of...
	Lower - lowest desired number of successes
	Upper - highest desired number of successes

Output: Hypergeometric probability

Example:
	I have 20 cigarettes; 12 of them are regular, other are lights.
	If I randomly pick 5 cigarettes what is the probability that at 
	least 4 of them are regular?

	Population=20
	Subpopulation of successes=12
	Sample=5
	Lower=4
	Upper=5

	Hypergeometric probability: .306501548


INDEPEND
This program locates independent events in a table. Just plug in the table
in a matrix (do not include totals) and run the program.
	
Input: 
	Matrix
Output:
	If there are any independent events in the matrix you will see the row and column 
	numbers that correspond to the independent events.


MATRFILL
This program finds joint probabilities of two independent events

Input:
	Matrix containing unknown values
Output:
	Filled matrix [J]

Example:

	The probability distributions for two random variables x and y are:

	x|P(x)		y|P(y)
	-+----		-+----
	1| ?		1|.1
	2|.5		2| ?
	3|.2		3|.4
	4| ?

	If x and y are independent and P(x=1, y=2)=.1 what is P(x=3,y=2)?

	Corresponding probability table is:

		  Y
	    __1__2__3__T_
	  1|  ? .1  ?  ?
	  2|  ?  ?  ? .5
	X 3|  ?  ?  ? .2
	  4|  ?  ?  ?  ?
	  T| .1  ? .4  1

	Plug in the table in a matrix replacing the unknowns with -1 and run the program.
	Note: don't forget to include totals and the grand total of 1

Output:		    Y
	    __1___2___3___T_
	  1| .02 .1  .08 .2
	  2| .05 .25 .2  .5
	X 3| .02 .1  .08 .2
	  4| .01 .05 .04 .1
	  T| .1  .5  .4   1

	(You can check that the result is correct by using the INDEPEND program)
	Now we can see that when x=3 and y=2 P(x,y)=.1





Disclaimer: I take no responsibility whatsoever for any damage or inconvenience caused by this software. Nor can I guarantee that the result of any calculation is correct. 

Good luck on AP test if you're facing one! 
Note: I advise you to make yourself comfortable with these programs before using them on a test.

Comments, questions, and bug reports are welcomed.

