JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for ALLSTAT Archives


ALLSTAT Archives

ALLSTAT Archives


allstat@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

ALLSTAT Home

ALLSTAT Home

ALLSTAT  2000

ALLSTAT 2000

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

summary: variability in binary series

From:

"Paul Habib Artes" <[log in to unmask]>

Reply-To:

Paul Habib Artes

Date:

Wed, 19 Jul 2000 17:30:00 GMT+1

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (221 lines)


Thanks a lot to everybody who replied to my query on estimating 
variability in a series of binary outcomes. The following is a 
summary of the replies.  

Thanks for all your help.

Paul

*********************************************************************

Query: variability in binary series

Dear Allstaters,

a clinical test results in binary outcomes, N (normal) and D
(defective). If a deteriorating subject is tested repeatedly during
the course of the disease, the ideal sequence of outcomes should be
similar to NNNNNDDDDD (zero variability).  However, empirical data are
noisy (e.g.  NDNNDDNDDD).  

Is there a suitable statistic to quantify the variability / noise of
the outcome variable? 

I would really be grateful for any help / references.

Paul

---------------------------
Paul H Artes, MCOptom
Research Optometrist
University of Manchester

[log in to unmask]


**********************************************************************
* Hi Paul, I work in agriculture, and we often get this type of data
in the context of mortality with time.  Typically we will observe a
sample of insects and record the number dead at, for example, the
start of each day, so will obtain a set of data that looks like:-

Day	Total Number dead
---	-----------------
0	0
1	2
2	4
3	6
4	7
5	7
6	8
7	9
>8	10

What is actually being measured with this type of data is the time to
a response - in your case, defective.  If you could monitor the
individual continuously you could (in theory) say exactly when his/her
status changed from N to D.  If you had this detailed information,
then you could summarise it as the mean time to response, and the
standard deviation of the time to response, so that the random
variable TIME TO RESPONSE, t, would have a p.d.f., say f(t), with a
corresponding cdf F(t), where both functions have unknown parameters
such as the mean and standard deviation.  Where you are recording over
discrete time intervals, as you are here, you will know the proportion
of the study population that went defective in time interval (t1, t2),
and this is predicted by (F(t2)-F(t1)).  The unknown parameters can
then be estimated using maximum likelihood (the numbers responding in
each time interval are multinomially distributed with category
probabilities given by (F(t2)-F(t1)), for time interval (t1,t2)).  The
methodology is encapsulated in a Genstat procedure, CUMDISTRIBUTION. 
A group of us are preparing a paper on the subject at present, and I
have published the theory in a Genstat Newsletter article if that is
of any interest.  If this IS relevant I can run a sample set of data
through our procedure to give you an idea of what the results look
like.

All the best,

Phil Brain


*********************************************************************

You're looking for a single change-point, with an additional
feature p=Prob(indicates N | it is N) and q=Prob(indicates D | it is
D). 1-p and 1-q are the probabilities of an error.  (the vertical line
| can be read as "if").

  You have to estimate p and q.  You also have to estimate the 
change-point, n[i],  for each patient i.  Let jth observation for ith
individual be z[i][j].  You model could be:

       Likelihood (z[i][1],...,z[i][m] | n[i], p,q) = 
                      P(observe z[i][1] | it is N)....P(observe
                      z[i][n[i]]
| it is N)
                      P(observe z[i][n[i]+1] | it is D)....P(observe
z[i][m] | it is D)

       This will be a function of p, 1-p, q and 1-q terms.

  For all individuals, the result is the product of likelihoods for
  each one
(assuming independence).  Solving for maximum likelihood is the big
thing. You have many variables, p, q and n[i] for each individual.  
EM algorithm is probably the best (just the name of a method used to
solve maximum likelihood problems).   Don't know if I can complete the
work without a larger investment of time.

   Noise (or error rate) would be related to 1-p (false observation of
   a D,
 when 
it should have been a N) and1-q (false observation of a N when it
should have been a D).


Pat

********************************************************************

There is a test for randomness in a distribution that looks 
for runs. In a binary sequence like the one you describe, 
it counts the number of runs of the same outcome, so your 
first example (NNNNNDDDDD) has 2 runs and your second 
example has 6 runs of size 1,1,2,2,1 and 3 respectively 
(NDNNDDNDDD). There is a test for randomness which tests 
whether or not the probability of each outcome occurs at 
random with constant probability throughout the sequence. 
There are tables for when this parameter reaches 
statistical significance. Thus the number of runs (in a 
fixed length sequence) may be some way of quantifying the 
variance.

Reference: the one-sample runs test for randomness, p58,
in Nonparametric statistics for the behavioural sciences, 
Sidney Siegel, N john Castellan. Mcgraw-hill internl 
editions.

-----------------------------------
Ms Hilary C. Watt
[log in to unmask]
St. Georges Hospital Medical School

*********************************************************************

You can treat this as a standard ROC curve, with 
observation number being the predictor & Normal/defective 
being the outcome.

Paul T Seed    MSc CStat   ([log in to unmask])     
Departments of Obstetrics & Gynaecology and Public Health Sciences,  
Guy's Kings and St. Thomas' School of Medicine, King's College London,


*********************************************************************

Your concern is that false test results are inhibiting your ability 
to diagnose the presence of disease.   It is probably reasonable to
assume that the probability of getting a false positive result is
independent of patient (such an assumption, of course, is much harder
to justify for false negative results, which is why it may be best to
approach the problem from this angle).  In which case, consecutive
tests on the same patient can be considered as independent binomial
trials under the Null hypothesis that the patient does NOT have the
disease.  

Let the probability that a positive test result is wrong be p.  The
probability of getting a particular series of results if the Null
hypothesis is true can then be computed from the formula for the
binomial distribution with parameter p.  

For example, suppose the probability of a patient without the disease
testing positive be 0.25.  The probabilities of getting only positive
results (i.e. no negative results) in a run of 1, 2 and 3 consecutive
tests are 0.25, 0.0625 and 0.0156 respectively.  So, using a
conventional 5% significance level, three consecutive positive tests
would be sufficient to reject the Null hypothesis and to diagnose the
presence of disease.

The probability of one of three tests coming up positive is 0.1406, so
the Null hypothesis is retained.  If the next test is positive, we now
have three out of four positive, the probability of which is 0.0469,
so it might now be reasonable to reject the Null hypothesis.  And so
on.

Probably too simplistic - but just a thought.

Dr. Brian Faragher
Senior Lecturer
Organisational Psychology and Health Group
Manchester School of Management
UMIST

*********************************************************************

Fit a logistic regression line in time to the data, and use the
regression coefficient on time as a sufficient statistic for the rate
of deterioration in each subject, weighted inversely as the square of
its standard error. The deviance is a crude measure of goodness of
fit.

Tim Cole

[log in to unmask]   Phone +44(0)20 7905 2666  Fax +44(0)20 7242
2723 Paed. Epid. & Biostats, Institute of Child Health, London WC1N
1EH, UK

*********************************************************************



---------------------------
Paul H Artes, MCOptom
Research Optometrist
University of Manchester

[log in to unmask]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager