# Casio Programs

I have developed several basic casio programs to perform common probability and statistics computations. These programs were developed for the Casio fx-CG10 calculator and its series. To put these programs on your calculator just click the download button to download the .g3m file. Then connect your calculator to the computer using the USB cable that came with the calculator. A USB drive will become available after it being plugged in. Go to `@MainMem > Program` and upload the .g3m file there. The program will be available under the Programs menu on the calculator.

For the programs all calculations are stored in a variable for easy access. By convention the first value calculuated is stored in A, the second in B, and so on. The only exception is calculation the upper and lower bounds of a confidence interval. Those are stored in U and L respectively.

## Probability Programs ### Negative Binomial CDF

This program calculates the cumulative distribution function of the Negative Binomial probability distribution.

The program will ask you to input p, r, and x. It will spit out the probability of F(x) or P(X ≤ x). ### Erlang/Gamma CDF

This program calculates the cumulative distribution function of the Erlang probability distribution.

The program will ask you to input λ (with an x value multiplied with it) and an r value. It will spit out the probability of F(x) or P(X < x). ### Weibull Distribution

This program calculates the mean, variance, and cumulative distribution function of the Weibull probability distribution.

The program will ask you to input β (beta), δ (delta), and the value x which you would like to do the CDF for (F(x) or P(X < x)). After entering those three values the program will calculate the mean, variance, and CDF. You can put in any value for x if you only want the mean or variance. ### Lognormal Distribution

This program calculates the mean, variance, and cumulative distribution function of the Lognormal probability distribution.

The program will ask you to input θ (mean [theta]), ω (standard deviation [omega]), and the value x which you would like to do the CDF for (F(x) or P(X < x)). After entering those three values the program will calculate the mean, variance, and CDF. You can put in any value for x if you only want the mean or variance. ### Beta Distribution

This program calculates the mean, variance, and cumulative distribution function of the Beta probability distribution.

The program will ask you to input the shape parameters, α and β, along with the value x which you would like to do the CDF for (F(x) or P(X < x)). After entering those three values the program will calculate the mean, variance, and CDF. You can put in any value for x if you only want the mean or variance.

## Statistics Programs ### χ2 Confidence Interval

This program calculates a two-sided χ2 (chi2) inverval.

The program will ask you to input the confidence interval as a decimal (ex: 0.95), the sample standard deviation (s), and the number of samples (n). It will also ask if you want the confidence interval around σ2 or σ (variance or standard deviation). ### χ2 Hypothesis Test

This program performs a χ2 (chi2) hypothesis test.

The program will ask you to input the sample standard deviation (s), the number of samples (n), the alpha value, σ0 (hypothesis value), and the direction of the alternative hypothesis. ### F Confidence Interval

This program calculates a two-sided F confidence inverval.

The program will ask you to input the confidence interval as a decimal (ex: 0.95), the first sample standard deviation (s1), the second sample standard deviation (s2), number of samples from the first set (n1), and number of samples from the second set (n2). It will also ask if you want the confidence interval around σ2 or σ (variance or standard deviation).

## Other

These are other random programs that I created. ### Gamma

This program will calculate the output of the integration of the Gamma function. It will ask for r. ### AI Tic-Tac-Toe

Play Tic-Tac-Toe against an AI.