Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate percentile from t-score in .NET

Is it possible to calculate the percentile from a T-score in .NET? How would you do it?

For example, I received a T-score of 60, which according to the table below gives a percentile of 84.

Is there a formula to convert from T-score to percentile? Or do I always need to use this table to look it up?

enter image description here

like image 730
Martin de Ruiter Avatar asked Feb 13 '17 16:02

Martin de Ruiter


People also ask

What percentile are you at if your T score is 45?

So this person's T-Score of 45 means that the person is in the middle 34% of the population.

Is T score the same as percentile?

For ease of communication in clinical reports, T scores can be converted to percentile ranks. The percentile rank represents the percentage of scores in a frequency distribution that are lower than the obtained score (e.g., the 50th percentile means that 50% of scores are lower).


1 Answers

According to Springer article on T-Score

T scores have a mean of 50 and a standard deviation of 10. Standard z scores can be converted to T scores using the formula below.

T=10∗z+50

So using MathNet.Numerics package you can simply do

    static double PercintileFromTScore(double tScore)
    {
        var normalDistribution = new MathNet.Numerics.Distributions.Normal(50, 10); // shoulbe be shorten "using" in the real life
        return normalDistribution.CumulativeDistribution(tScore);
    }

This seems to produce results identical to the table you provided.

like image 156
SergGr Avatar answered Oct 11 '22 16:10

SergGr