<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Man Bui (DATA - HCM) on Medium]]></title>
        <description><![CDATA[Stories by Man Bui (DATA - HCM) on Medium]]></description>
        <link>https://medium.com/@manbnm?source=rss-e1a3a7d6ea8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZOVbZnY3N_j78dE_.jpg</url>
            <title>Stories by Man Bui (DATA - HCM) on Medium</title>
            <link>https://medium.com/@manbnm?source=rss-e1a3a7d6ea8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 05:14:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manbnm/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Do you correctly understand p-value?]]></title>
            <link>https://medium.com/@manbnm/do-you-correctly-understand-p-value-325564736c86?source=rss-e1a3a7d6ea8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/325564736c86</guid>
            <dc:creator><![CDATA[Man Bui (DATA - HCM)]]></dc:creator>
            <pubDate>Tue, 21 Jan 2020 08:00:00 GMT</pubDate>
            <atom:updated>2020-02-05T08:22:48.956Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Decision making based upon some hypotheses in a startup company is crucial. According to <a href="https://www.forbes.com/sites/neilpatel/2015/01/16/90-of-startups-will-fail-heres-what-you-need-to-know-about-the-10/#966974c66792">Forbes</a>, 90% of startup fail and one reason is “They make products no one wants”. We have many ideas and many assumptions to our core production. And we want to know if customer wants our product. By making quick and reliable decision, decisions should not be made by gut feelings, rather is made by scientific approach. Statistics provides LOGIVAN the means to do that.</blockquote><blockquote>Naturally, we want to know that<br>1. Can this solution improve our business?<br>2. Will the new solution raise our profit?<br>3. Does a new algorithm work better than the current solution?</blockquote><blockquote>All of these questions can be answered throughout hypothesis testing.<br>One of the most common ways of doing this is to test a hypothesis with a p-value. Basing on the p-value, we will decide if we can reject the null hypothesis. However, many people have been misconstrued about the true meaning of p-value, which can lead to some misinterpreted decisions. Hypothesis testing is indeed very powerful but without understanding it properly, it can mislead decision-maker.</blockquote><blockquote>The American Statistical Association (ASA) ‘statement on p-value [5] made a list of some principles for p-values to improve the conduct or interpretation of quantitative science. This article is to discuss some misunderstandings about p-value to raise users’ awareness of this method of evaluating a hypothesis.</blockquote><blockquote>So we choose 2 common problems with p-value to explain: <strong>the misunderstanding of real meaning of p-value</strong> and <strong>p-hacking</strong>.</blockquote><h3>1. What is p-value?</h3><p>P-value is one of the most fundamental concepts that every statistics students must learn by heart if they wish to pass there exam. Indeed, p-value is so common that one can easily find P-value being used in many scientific papers of diversified fields like Physics, Statistics, Economics, Finance, Psychology, etc. So what is p-value?</p><blockquote>The p-value is the probability (under null hypothesis) of observing a value of the test statistic the same as or more extreme than what was actually observed. — Larry A. Wasserman, All of Statistics: A Concise Course in Statistical Inference, Chapter 10, section 10.2.</blockquote><p>If the definition above confused you, let’s consider an example of p-value in hypothesis testing. Assume that we want to test if eating one bar of chocolate a day leads to weight loss on a sample of 100 people. Accordingly, our null and alternative hypothesis are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*x3XtTCSKGd-RJWKAkRgmkg.png" /></figure><p>We then assign 50 participants to eat one bar of chocolate a day. The other group, on the other hand, has to abstain from the chocolate. Both groups are weighted before the experiment and then again after the experimental period, their weight changes are compared. The confidence level is 5%.</p><p>Assume that after the experimental period, we obtain a p-value of less than 0.05, which is lower than the confidence level, we then reject the H0 that eating chocolate does not affect your weight, statistically significant. In real terms, p-value of less than 0.05 meaning that there is less than 5 percent chance that you will observe data with a test statistics supporting “Eating chocolate does not affect your weight” when the null hypothesis is true. Therefore, informally, p-value illustrates how rare one event will happen assume that event is true.</p><p>Once you have the result of p-value, how do you interpret it? The interpretation of p-value should be treated with care<strong>. In statistics, the conclusion of the hypothesis testing is “There is enough evidence to reject/not reject H0”, not that “H0 is false/true”</strong>. We will reject H0 if p-value is lower than the predetermined threshold (which will be discussed in the next session) because according to our data, that event rarely happens. However, one must keep in mind that rejecting the null hypothesis is kind of like the “innocent until proven guilty” principle in legal trial<strong> </strong>[7]. The defendant first is considered innocent. After debating, if we cannot prove that the defendant is guilty, he/she will be innocent. In other words, this also means that if a criminal cannot be proved guilty, he/she will be innocent because of a lack of evidence. Hypothesis testing is no different. We do not reject the null hypothesis because we do not have enough evidence to reject the hypothesis, but that does not mean the null hypothesis is true.</p><h3>2. Statistically significant, or not …</h3><p>You might have encountered another word when reading about p-value, “statistically significant”, which illustrates how trustworthy the research seems to be. A threshold 0.05 is usually used by many scientists and statisticians to test if our hypothesis is significant or not. The result is statistically significant if its p-value is lower than the predetermined threshold. But why 0.05? Could it be some other numbers?</p><p>That threshold was proposed by Ronald Fisher, who emphasized that</p><blockquote>It is usual and convenient for experiments to take 5 percent as a standard level of significant, in the sense that they are prepared to ignore all the results which fail to reach this standard, and, by this means, to eliminate from the further discussion the greater part of the fluctuations which chance causes have introduced into their experimental results — <a href="https://en.wikipedia.org/wiki/P-value#CITEREFFisher1971"><em>Fisher 1971</em></a><em>, Section 7. The Test of Significance.</em></blockquote><p>However, Fisher also noted that while fixed levels such as 5%, 2% and 1% are convenient, the exact p-value can be used and the strength of evidence can and will be revised with further experimentation. Therefore, the use of a fixed level is a convenient choice, not a requirement.</p><h3>3. P-hacking</h3><p>In hypothesis testing, there are 4 possible outcomes when experimenting with a null hypothesis:</p><figure><img alt="Outcomes of hypothesis testing" src="https://cdn-images-1.medium.com/max/1024/1*Uz0ywG4Pa3poMpDLVH8aew.png" /><figcaption>Possible outcomes of hypothesis testing. Source: Crash course Statistics #30</figcaption></figure><p>1. The null hypothesis is true. We correctly fail to reject it.</p><p>2. The null hypothesis is true. We incorrectly reject it.</p><p>3. The null hypothesis is false. We incorrectly fail reject it.</p><p>4. The null hypothesis is false. We correctly reject it.</p><p>Any experiment is conducted with the high expectation to have result “<strong>4. The null hypothesis is false. We correctly reject it.</strong>” as some kinds of proof that the result will generate new knowledge. If an experiment does not lead to that result, it will be kind of frustrating as it means that “We do not have enough evidence to reject that hypothesis. Because we cannot reject the null hypothesis, we might accept the alternative hypothesis”. As the pressure on publishing is high, there is somewhat significant incentive for researchers to selectively pursue and selectively attempt to publish statistically significant research findings. That’s where p-hacking comes from.</p><p>P-hacking, also known as inflation bias or selective reporting, is playing with data to get the p-value that meet the significant thresholds required for publication. Or in other words, researchers might choose analyses, samples or data that make the p-value the most significant. How could it be done? Let illustrate this by an example in a story posted on xkcd.com. In brief, there is a hypothesis that “Jelly beans cause acne” so the scientists started their investigation journey. They first tested on general jelly beans and found that there is no evidence between jelly beans and acne. Without being discouraged, they kept investigating on different colors of jelly beans until finally they found out that the experiment with the green one has statistical significant result. Just like so, they concluded that green jelly beans are one of the reasons for causing acne. Well, is it? Let examine this story one again, the experiment was repeated over and over again 20 times until they can find a sample with a significant p-value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*IgmbwlLTYwpIdvV5wbg3eA.png" /><figcaption>Do green Jelly Beans cause acne?</figcaption></figure><p>You may think “What is the matter with that? Maybe the green one causes acne!”. We could use a little probability to think this through. Assume that jelly beans do not cause acne and you, a scientist, repeat a jelly beans experiment 20 times trying to show that the very opposite is true. The null hypothesis H0 is “Jelly beans do not cause acne”. Assume each experiment has a 95% probability not to be significant (not reject H0), only a 5% probability that the experiment is significant, which is “jelly beans cause acne”. The probability that “At least 1 in 20 experiments is significant” is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*JPr9Az8u1Fwy8Y4d4prmew.png" /><figcaption>The probability that an experiment is significant by chance</figcaption></figure><p>This means that if you conduct a similar experiment over and over again, it is with 64% that one result will be jelly beans cause acne, just by chance, and of course this should be far from statistically significant.</p><p>So how you could avoid getting into this situation if you have to repeat the experiment multiple times? One possible solution here is to use “Bonferroni correction”, which chooses a new significant level α, assuming α = 0.05, then the new significant level α when performing 20 tests should be 0.0025.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*IIj9AnrlqgArQhD5xjQFMA.png" /></figure><h3>4. Conclusion</h3><p>P-value is a powerful tool in Statistics and many theories use p-value as a statistical measure. However, if we misunderstand the p-value, the inference can be misleading. Because many people misunderstand the real meaning of p-value, the American Associate Statistician made a statement on p-value, about its limitation and introduce some other methods and approaches for statistical inference. In our opinion, the replacement of p-value may be unnecessary but users should be aware of the true meaning of p-value and use it with care.</p><p>This blog was written by Man Bui and Thy Nguyen, Data Scientists at LOGIVAN, under the guidance of Dr. Vu Anh, the lead of LOGIVAN Data Science team. I hope you guys will be in love with our blog. See more about us at</p><p><a href="https://medium.com/logivan">https://medium.com/logivan</a></p><p>or join us at <a href="https://www.logivan.com/en/hiring/">https://www.logivan.com/en/hiring</a>/.</p><p>See you guys in the next posts.</p><h3>References</h3><p>1. <a href="https://www.vox.com/latest-news/2019/3/22/18275913/statistical-significance-p-values-explained?fbclid=IwAR039aniJd0k_ygCtOWJKUEk1KvSmx7Az9QoghQqhj5Zo0IAtbe4H_GY8Qw">800 scientists say it’s time to abandon “statistical significance”</a></p><p>2. <a href="https://medium.com/@i.pamuditha/p-hacking-part-01-introduction-what-is-p-value-7b78d2b3484">P-Hacking — Part 01: Introduction / What is p-value?</a></p><p>3. <a href="https://medium.com/@i.pamuditha/p-hacking-part-02-issue-with-the-p-value-why-do-researchers-p-hack-69866058848f">P-Hacking — Part 02: Issue with the P value &amp; why do researchers p-hack?</a></p><p>4. <a href="https://www.youtube.com/watch?v=Gx0fAjNHb1M&amp;t">P-Hacking: Crash Course Statistics #30</a></p><p>5. <a href="https://amstat.tandfonline.com/doi/pdf/10.1080/00031305.2016.1154108">ASA Statement on Statistical Significance and P-Values</a></p><p>6. <a href="https://en.wikipedia.org/wiki/P-value">p-value — Wikipedia</a></p><p>7. Larry A. Wasserman, All of Statistics: A Concise Course in Statistical Inference</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=325564736c86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>