Skip to content

Commit

Permalink
t Add additional unit tests for StudentT pdf.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrogoyski committed Oct 12, 2021
1 parent b7886c7 commit bb9df37
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions tests/Probability/Distribution/Continuous/StudentTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public function dataProviderForPdf(): array

[0, 301, 0.3986111],

// Anything past 302 for v and INF comes back.
[0, 302, 0.3986122],
[0, 303, 0.3986133],
[0, 305, 0.3986154],
Expand All @@ -136,7 +135,30 @@ public function dataProviderForPdf(): array
[0, 381, 0.3986806],
[0, 400, 0.398693],

// Probably needs a separate check due to delta
[0, 500, 0.3987429],
[1, 500, 0.241729],
[2, 500, 0.05417883],
[3, 500, 0.004569562],
[5, 500, 1.962337e-06],

[0, 1000, 0.3988426],
[1, 1000, 0.2418498],
[2, 1000, 0.05408517],
[3, 1000, 0.004500625],
[5, 1000, 1.712012e-06],

[0, 1200, 0.3988592],
[1, 1200, 0.2418699],
[2, 1200, 0.05406951],
[3, 1200, 0.004489151],
[5, 1200, 1.672771e-06],

[0, 1500, 0.3988758],
[1, 1500, 0.2418901],
[2, 1500, 0.05405383],
[3, 1500, 0.004477681],
[5, 1500, 1.634218e-06],

[5, 1000, 1.712012233e-06],
[1E9, 2, 1e-27],
];
Expand Down

0 comments on commit bb9df37

Please sign in to comment.