ALGLIB forum
It is currently Tue Oct 03, 2023 2:56 am

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.

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Calculate Student distribution
PostPosted: Thu Feb 19, 2015 3:25 pm 

Joined: Thu Feb 19, 2015 3:10 pm
Posts: 1
I need calculate student distribution for example for 8 degree of freedom and confidence probability 0.95
According to the t-distribution table (
f(8, 0.95)=2.306

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

#include "specialfunctions.h"

int main(array<System::String ^> ^args)
    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"f~(8, 0.05)="+alglib::invstudenttdistribution(8, 0.05));
    Console::WriteLine(L"f~(8, 0.95)="+alglib::invstudenttdistribution(8, 0.95));
    return 0;

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?


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group