Re: Coin flipping



daniel_nordlund_1982@xxxxxxxxxxx wrote:
Anon. skrev:
There are change-point models you could try, but you could probably get
a pretty good idea by using a GAM (generalised additive model) to smooth
the probability of a head (i.e. you plot H or T against the run number,
and smooth that). Depending on what you're doing, that might be enough.

Thanks! Looking into change-point models gave me some interesting
results. If I let heads=0 and tails=1, I can for example use a model
like

y(t) = 0.5 + 0.17*k(t) + e(t)

Where k(t) = 1 if t1<=t<=t2 (time is within the range [t1,t2] being
tested) and 0 otherwise. e(t) is the error term. I can then go through
all possible values of t1 and t2 and see for which values this model
gives the best fit (in a least square sense).

Or use maximum likelihood! If you're calculating this for all t1 and t2, then you could go to he extra effort of estimating the amount of bias (i.e. the 0.17). Actually, that's easy: the likelihood is beta distributed, and the point estimate is the proportion of tails (or the proportion of tails - 0.5, I suppose).

Now to my next question, when I have found likely values of t1 and t2
(the biased range), is it possible to calculate the probability of this
observation in fact being due to chance (with the unbiased coin)?

You can compare the likelihoods for the two cases. Oh, except that you're taking the maximum deviation, so I'm not sure what the null distribution looks like. Someone who knows more about classification problems might be able to help.

Bob

--
Bob O'Hara

Dept. of Mathematics and Statistics
P.O. Box 68 (Gustaf Hällströmin katu 2b)
FIN-00014 University of Helsinki
Finland

Telephone: +358-9-191 51479
Mobile: +358 50 599 0540
Fax: +358-9-191 51400
WWW: http://www.RNI.Helsinki.FI/~boh/
Journal of Negative Results - EEB: http://www.jnr-eeb.org
.



Relevant Pages

  • Re: probability vs. likelihood
    ... should be based more on likelihood than on probability. ... Here is a link to a post from 2000 that discusses likelihood, ... I am no Bayesian, but I *think* that a Bayesian might say, "Use ... of "risk analysis", which I associate particularly with formal ...
    (sci.stat.consult)
  • Re: The danger of classical hypothesis and significance tests [was Re: MADLY AMUSED]
    ... Using the likelihood alone will not guarantee this fact necessarily ... I have seen this attempt before to turn the Bayesian bug into a feature. ... Certainly there is no in-principle necessity to resort to a prior to achieve the same effect. ... The Bayesian bug is the very same that bothered Rev. Thomas Bayes from the beginning, namely the lack of justification for treating the parameter constant as a random variable in its own right, and rewriting the original model as conditional probability. ...
    (sci.stat.math)
  • Re: function of uniform probability
    ... probability is *proportional* to d - c, ... I don't see that a smooth bounded periodic function ... (with a given sampling frequency fe) ...
    (sci.math)
  • Re: Probabilities
    ... what probability should be even though they don't understand. ... Likelihood we will find Bigfoot = ... For a one time event, ... you can never be sure that the probability distribution exists. ...
    (rec.bicycles.racing)
  • Re: @ Beldin - probability and likelihood
    ... likelihood of them matching the known probabilities. ... The 'probability of them matching expected values" is a statistical term, ... That has nothing to do with the expected likelihood of the event. ...
    (rec.gambling.poker)