Dr. Weeks is a Professor of Human Genetics and Biostatistics at the University of Pittsburgh. His research focuses on statistical human genetics in the area of mapping susceptibility loci involved in complex human diseases. The content on this blog is for informational purposes only - use at your own risk!
Thursday, April 10, 2014
Thursday, February 6, 2014
Markov Chain Humor
Possible mascots for a program that uses Markov Chains in its computations:
Markov Man
"Look, it's a bird... no, it's a plane,... no, I forgot what it was."
Hidden Markov Man
the truly Forgetful Man
Markov Man
"Look, it's a bird... no, it's a plane,... no, I forgot what it was."
Hidden Markov Man
the truly Forgetful Man
Tuesday, October 29, 2013
Computers are useful?!
"A computer makes it possible to do, in half an hour, tasks which were completely unnecessary to do before" ~ Dave Barry.
Wednesday, August 14, 2013
Zero p-values in R
For the top hits from an R program, I was getting all zero p-values, which are not that useful for ranking or plotting.
Turns out that the R program was calculating the p-value in this manner:
1 - pchisq(71.12830,1)
But, according to the discussion here, in R
".Machine$double.eps is the smallest number such that 1+x can be distinguished from 1"
On my machine, we have that:
> .Machine$double.eps
[1] 2.220446e-16
So that is why this truncates to zero:
> 1 - pchisq(71.12830,1)
[1] 0
However, we can get a non-zero p-value if instead we compute it this way:
> pchisq(71.12830,1,lower.tail=FALSE)
[1] 3.347341e-17
Turns out that the R program was calculating the p-value in this manner:
1 - pchisq(71.12830,1)
But, according to the discussion here, in R
".Machine$double.eps is the smallest number such that 1+x can be distinguished from 1"
On my machine, we have that:
> .Machine$double.eps
[1] 2.220446e-16
So that is why this truncates to zero:
> 1 - pchisq(71.12830,1)
[1] 0
However, we can get a non-zero p-value if instead we compute it this way:
> pchisq(71.12830,1,lower.tail=FALSE)
[1] 3.347341e-17
Tuesday, October 23, 2012
knitr
I recently became aware of the kintr package http://yihui.name/knitr/ which is much more capable and easier to use than Sweave when creating dynamic 'reproducible research' reports that interweave LaTeX and R.
Monday, October 22, 2012
Quertle http://www.quertle.info/
I learned today about an amazing new program for searching the PubMed literature database plus full text documents - this is called 'Quertle' http://www.quertle.info/
I tried it out and quickly found an important and relevant paper that we hadn't found in an earlier more extensive conventional literature search.
I tried it out and quickly found an important and relevant paper that we hadn't found in an earlier more extensive conventional literature search.
Tuesday, October 18, 2011
Your genetic profile
Craig Venter said, in response to a question about the 'risks' of knowing one's genetic makeup:
"Understanding the genetic code is understanding probabilities. There is very little in your code that is yes/no."
"Understanding the genetic code is understanding probabilities. There is very little in your code that is yes/no."
Subscribe to:
Posts (Atom)