Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Don't Do Statistics If You Don't Really Undestand It

Lies, damned lies, and statistics.

As a statistician I'm very glad to see that statistics is being widely used in many areas. However, time after time I found that it is really dangerous for people who don't really understand statistics to use it. As we all know that there are …

Common Mistakes in C++ Code and Ways to Debug

Debugging

  1. gdb is a excellent command tool for debugging C/C++ code.

Syntax Mistakes

  1. Missing "}". When this happens, you usually get lots of error message when you compile your code. And these error messages are often hard to understand and seems not related to your code.

  2. Missing template arguments. This …

Power Settings in Linux with GNOME Desktop

Full control of the power settings in Linux with Gnome Desktop can be done through dconf-editor at org->gnome->settings-daemon->plugins->power. The default way to determine low battery, critical low battery and to carray out critical low action is by counting left battery time. You can change the way …

Estimation of False Discovery Rate using Sequential Permutation Pvalues

I wrote a paper on sequential permutation test with Tim Bancroft and Dan Nettleton. The paper "T. Bancroft, C. Du and D. Nettleton (2012). Estimation of False Discovery Rate Using Sequential Permutation P­Values." has been accepted by Biometrics. To illustrate ideas in the paper and make sequential permutation test …