Evaluating the probability as a one tailed students t distribution

 Accepted Answer

Just use tcdf.
df = 10;
ti = 2.35;
tcdf(-ti,df)
ans =
0.02032
tcdf(ti,df)
ans =
0.97968
So the probability you would see -ti OR less, is around 2% with 10 degrees of freedom. Likewise, the probability in the upper tail is
1 - tcdf(ti,df)
ans =
0.02032

More Answers (0)

Categories

Products

Release

R2019b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!