@Override
    public double variance() {
        return nu / (nu - 2.0);
    }
@Test
    public void testVariance() {
        System.out.println("variance");
        TDistribution instance = new TDistribution(20);
        instance.rand();
        assertEquals(10/9.0, instance.variance(), 1E-7);
    }