In this section we present some examples to
solve typical ' probability
and statistics ' problems. We present the Matlab code without using any special toolbox
or instruction. Everything is plain and simple... You could even code
the same algorithms in other programming languages without any problem!
This algorithm (code in Matlab) calculates the number of permutations and combinations
objects taken D
at a time. The full Matlab code is...
This algorithm (program in Matlab) calculates the probability and
frequency of given values on a standard normal distribution curve
(Gauss’ bell). You have to enter the mean, the standard deviation and
the value of interest...
When a binomial
distribution is being considered, we use
this algorithm to calculate the probability
of a number
of successes in a given number of Bernoulli
trials. It's necessary to provide the probability of
succes on a single trial...
Using the Poisson
distribution, this program calculates the probability
an event occurring a given number of times.
You must know
expected frequency of the event...
This algorithm calculates percentile
given values on an F-distribution curve.
You must provide the value
the degrees of freedom
in the numerator and the degrees of freedom in the
This algorithm (Matlab program) calculates right-tail values for points
on a t-distribution
curve. You must provide the value
and the degrees of
- Student’s t-Test
This program performs the t-statistic
and degrees of freedom for Student’s distribution. The calculations can
be based on any one of these three
This program calculates
the tail-end and percentile values
for points on a Chi-square
curve. You must provide the value of X2
and the degrees of freedom. No special instruction or
Matlab toolbox is used.
Numbers and Simulations
We’ll use Matlab to generate random numbers so
that we can discuss its statistical
capabilities and explore some simulations...
random number table is a listing of random numbers where we can choose
of random numbers desired, the maximum and minimum values of numbers in
table, and whether or not duplicate numbers are allowed...
Statistics' to home