What I want is some tool that will test an ordinal, discrete variable against a specific probability distribution, say the variable might take 4 values, 1, 2, 3, 4, and my expected probability distribution is that 10% will be 1, 50% will be 2, 30% will be 3 and 10% will be 4.
What program, or application, need I use to check if an empirical dataset comes from the expected distribution, or if it deviates significantly from it? How do I do it?