# forum.alglib.net

ALGLIB forum
 It is currently Sun Jul 03, 2022 11:41 pm

 All times are UTC

### Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

 Page 1 of 1 [ 1 post ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Calculate Student distributionPosted: Thu Feb 19, 2015 3:25 pm

Joined: Thu Feb 19, 2015 3:10 pm
Posts: 1
Hello!
I need calculate student distribution for example for 8 degree of freedom and confidence probability 0.95
According to the t-distribution table (http://en.wikipedia.org/wiki/Student%27s_t-distribution)
f(8, 0.95)=2.306

I try use alglib::studenttdistribution function. I and what I see:

Code:
#include "specialfunctions.h"

int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Test");
Console::WriteLine(L"f(8, 0.05)="+alglib::studenttdistribution(8, 0.05));
Console::WriteLine(L"f(8, 0.95)="+alglib::studenttdistribution(8, 0.95));
Console::WriteLine(L"------");
Console::WriteLine(L"f~(8, 0.05)="+alglib::invstudenttdistribution(8, 0.05));
Console::WriteLine(L"f~(8, 0.95)="+alglib::invstudenttdistribution(8, 0.95));
return 0;
}

Result:
Test
f(8, 0.05)=0,519325892460749
f(8, 0.95)=0,815037419273614
------
f~(8, 0.05)=-1,8595480375309
f~(8, 0.95)=1,8595480375309

What I'm wrong?

Alexandr.

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 4 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for: