
Boost Users : 
Subject: Re: [Boostusers] Confused with the example students_t_single_sample.cpp
From: lizy10b_at_[hidden]
Date: 20140208 05:26:42
Dear John Maddock,
Thanks very much for your reply.
Best regards
Zhiyu Li
lizy10b_at_[hidden]
From: John Maddock
Date: 20140118 02:02
To: boostusers_at_[hidden]
Subject: Re: [Boostusers] Confused with the example students_t_single_sample.cpp
> The original text:
> Hypothesis 3: the sample mean is less than the true mean
> Test 3: Reject if CDF of t > significance level, cdf(dist, t) > alpha
>
> I think pvalue should be the integral from t to +Infinite:
> cdf(complement(dist, t)),
> So reject Hypothesis 3 when cdf(complement(dist, t)) < alpha, or say
> cdf(dist, t) > 1alpha
>
> The original text:
> Hypothesis 4: the sample mean is greater than the true mean
> Reject if complement of CDF of t > significance level:
> cdf(complement(dist, t)) > alpha
>
> Similarly, the pvalue should be the integral from Infinite to t:
> cdf(dist, t),
> so reject Hypothesis 4 when cdf(dist, t) < alpha
>
> Is that right?
It's been a while since I've done any stats so it took me a while to get my
head around everything again, but yes you are quite right!
I'll update the docs and examples shortly, please do let me know if you spot
anything else,
Regards, John.
_______________________________________________
Boostusers mailing list
Boostusers_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boostusers
Boostusers list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net