Chi-squared, and the associated Probability Density Table, is used to quantify the match between a hypothesis and observed data. Chi-Squared is used a heck of a lot in all sorts of statistical sciences but has become a pain in my life recently because of genetics. So let’s use our TI-83 calculator to crunch the numbers for us.
To make things easy we’ll need three different programs. Let us start with the most basic:
Chi
hit the ‘program’ button (here on callled prgm), then arrow over to the ‘New’ menu and choose ‘Create New’.
name it ‘Chi’ – Enter the following code
Disp "Input Observerd"
Input O
Disp "Input Expected"
Input E
((O-E)^2/E -> C
We now have our Chi-Squared function so now lets make the Probability Density program. Again, create a new program, called ‘ChiTable’ here – and enter the following code:
N-1 -> D
(T^((D/2)-1)*e^(-T/2))/(2^(D/2)*(((N-1)!)*(D/2)))->P
Alright almost done – let’s tie it all together with our main program. Again new program, called here ‘ChiSQR’ – enter the following code:
0->R&8800
0->T
0->N
0->C
0->P
Disp "Number of Sets"
Input N
While R ≠ N
R+1 ->R
prgmCHI
C+T->T
Disp T
End
PrgmCHITABLE
Disp "Probability"
Disp P
Alright – so let’s test it to make sure it works – Hit PRGM, EXEC Tab, Then CHISQR and input the following information:
| Type | Observed | Expected |
| 1 | 62 | 50 |
| 2 | 38 | 50 |
The program should output 2.88 for the first set, then 5.76 for the second and the probability should be .03307……something.
If you don’t get that double check your work.
Purpose:
- Create a Compost Bin, cause buying one is like crazy expensive.
Materials:
- Several lengths of wood
- Blue plastics shipping drum (50 gallon)
- Length of pipe
- Throw Bolt and two hinges
Tools:
- Soldering Iron (not a nice one either)
- saw, nails, screwdriver, measuring tape
Procedure:
1) Create Frame
- Measure wood frame such that length is equal to drum height plus 1 inch on each side. Height of supports as diameter of drum plus three inches.
- Add feet to frame such that length of foot on each side is greater than half the radius of the drum from the center.
- Cut V’s into the vertical supports – these need to be twice as deep as the radius of the axle pipe you are planning to use.
2) Axelize Drum
- Using Soldering Iron burn holes into the top and bottom of drum at the center of the circle
- Throw the length of pipe through from one hole out the next. You measured it first, right?
- A little bit of pipe sticking out should fit well into the vertical supports.
3) Add Door and perforate Drum
- Take a piece of 8.5 X 11 paper and place it so it’s middle is at the middle (height wise) of the drum. Mark the four corners.
- Use the soldering iron to burn out the corners so you can start to saw through it.
- Keep the piece you cut out.
- Reattach the cut piece as the door using the hinges and throw bolt (orientate so that they are on opposite sides from one another.)
- using the soldering iron burn out holes along the drum for aeration – you don’t need to go overboard – maybe a dozen.
Further Projects:
- Have a compost party – seriously it’s just an excuse to get drunk
- Customize the Compost for serious degradation.




