# 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).

Download### 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).

Download### 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.

Download### 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.

Download### 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.

Download## Statistics Programs

### χ^{2} Confidence Interval

This program calculates a two-sided χ^{2} (chi^{2}) 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} (chi^{2}) 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 (s_{1}),
the second sample standard deviation (s_{2}), number of samples from the first set (n_{1}), and number of samples from the second set (n_{2}).
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.

Download