| Statistics Toolbox | Search  Help Desk |
| tcdf | Examples |
Student's t cumulative distribution function (cdf).
Syntax
P = tcdf(X,V)
Description
tcdf(X,V) computes Student's t cdf with V degrees of freedom at the values in X. The arguments X and V must be the same size except that a scalar argument functions as a constant matrix of the same size of the other argument. The parameter, V, is a positive integer. The t cdf is:
degrees of freedom will fall in the interval (-
x].
Examples
Suppose 10 samples of Guinness beer have a mean alcohol content of 5.5% by volume and the standard deviation of these samples is 0.5%. What is the probability that the true alcohol content of Guinness beer is less than 5%?t = (5.0 - 5.5) / 0.5;
probability = tcdf(t,10 - 1)
probability =
0.1717