<?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 Vitoria Willani on Medium]]></title>
        <description><![CDATA[Stories by Vitoria Willani on Medium]]></description>
        <link>https://medium.com/@vitoria.willani?source=rss-3f0b314ef685------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XlVFqnCnKwhTbdnzAzcsUw.jpeg</url>
            <title>Stories by Vitoria Willani on Medium</title>
            <link>https://medium.com/@vitoria.willani?source=rss-3f0b314ef685------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:44:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vitoria.willani/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[Using T-test in a quality analysis]]></title>
            <link>https://medium.com/@vitoria.willani/using-t-test-in-a-quality-analysis-eed0323e7f84?source=rss-3f0b314ef685------2</link>
            <guid isPermaLink="false">https://medium.com/p/eed0323e7f84</guid>
            <category><![CDATA[t-test]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[quality-analyst]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[hypothesis-testing]]></category>
            <dc:creator><![CDATA[Vitoria Willani]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 12:02:59 GMT</pubDate>
            <atom:updated>2024-04-24T12:02:59.319Z</atom:updated>
            <content:encoded><![CDATA[<p>Let us consider the following business problem:</p><p><strong>You accept responsibility for ensuring the quality of the water distributed by a business. This company has a reservoir, and you must ensure that the water is safe for consumption. The regulations require an average pH of 6 to 9, and after collecting 100 samples, you found an average pH of 5.8 with a standard deviation of 1.4. Should the water distribution be suspended?</strong></p><p>To determine whether or not to suspend the distribution, we must first determine whether the average pH measured using 100 samples is statistically equal or inferior to 6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*guhm0kBlKzT7VB9dfNgkvA.png" /></figure><p>To ensure that a T-test is appropriate, it is necessary to determine whether the pH distribution is similar to a normal distribution. As shown in the histogram below, the distribution is reasonably close to a normal distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*lTxjL1KEzCESuJPTFDVd2g.png" /></figure><h3><strong>Step 1. Establish the hypotheses</strong></h3><p>H0: The reservoir pH is equal to 6.</p><p>H1: The reservoir pH is lower than 6.</p><h3><strong>Step 2. Calculate the T-statistic</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*hBQkw-HopN8wzUs0ja9cWw.png" /></figure><h3>Step 3. Calculate the P-value</h3><p>The T-statistic has a probability distribution called t-Student with n-1 degrees of freedom. The Excel T.DIST function makes it simple to calculate.</p><p>=T.DIST(-1.43;99;TRUE) = 0.078</p><h3><strong>Step 4. Check the statistical significance of P-value</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*LFJrKJyglC38Pt18xqKcUA.png" /><figcaption>Source: <a href="https://analythical.com/blog/understanding-p-values">https://analythical.com/blog/understanding-p-values</a></figcaption></figure><p>When we compare our P-value to the scale, we see that we have weak evidence against H0, so we do not need to halt water distribution once the average pH in our reservoir is 6, as the regulations require.</p><p>As you can see, this is a simple example of using a T-test to solve a real-world business problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eed0323e7f84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cuidado ao interpretar gráficos]]></title>
            <link>https://medium.com/@vitoria.willani/cuidado-ao-interpretar-gr%C3%A1ficos-cb5ad9026199?source=rss-3f0b314ef685------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb5ad9026199</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Vitoria Willani]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 23:57:57 GMT</pubDate>
            <atom:updated>2024-03-06T23:59:55.399Z</atom:updated>
            <content:encoded><![CDATA[<p>Em um mundo onde os dados são a moeda mais valiosa, a interpretação correta das visualizações torna-se uma habilidade crítica. No entanto, um simples olhar para um gráfico pode nos levar a conclusões precipitadas e, por vezes, perigosas, especialmente quando não consideramos o contexto completo por trás dos números apresentados.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmfhUQiS4nCRMJXxRyybuw.png" /></figure><p>O que você concluiria analisando o gráfico acima?</p><p>À primeira vista, essa representação visual pode induzir à crença de uma crise no mercado de engenharia de dados. No entanto, a verdade reside nos detalhes muitas vezes ocultos: esses dados são derivados de uma pesquisa sobre salários, não representando a totalidade do mercado de engenharia de dados. É essencial compreender que um gráfico é apenas uma representação visual dos dados subjacentes e que a interpretação precisa depende da compreensão do conjunto completo de informações. Neste caso específico, a queda no número de engenheiros de dados pode ser explicada pela variação na participação dos profissionais na pesquisa de salários, em vez de uma tendência real de mercado.</p><p>Essa questão nos leva a um segundo a refletir sobre os perigos das ferramentas de visualização autônomas, como o Power BI, quando utilizadas por indivíduos sem uma formação analítica sólida. Embora essas ferramentas possam ser poderosas em mãos habilidosas, sua utilização indevida pode resultar em gráficos enganosos e, consequentemente, em decisões empresariais equivocadas.</p><p>É fundamental promover uma cultura de análise crítica e contextualização de dados em todas as esferas, incentivando a busca pela transparência e pela compreensão completa do contexto por trás das visualizações. Somente assim podemos evitar as armadilhas da interpretação superficial e utilizar os dados de forma eficaz para embasar decisões informadas e responsáveis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb5ad9026199" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combinatorial analysis isn’t ChatGPT’s strong suit]]></title>
            <link>https://medium.com/@vitoria.willani/combinatorial-analysis-isnt-chatgpt-s-strong-suit-7194ae1806ec?source=rss-3f0b314ef685------2</link>
            <guid isPermaLink="false">https://medium.com/p/7194ae1806ec</guid>
            <dc:creator><![CDATA[Vitoria Willani]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 19:59:38 GMT</pubDate>
            <atom:updated>2024-03-05T19:59:38.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*ECf3UiwfzS3KYYFwkXUe4A.jpeg" /></figure><p>This morning, I started playing with some questions that had previously been used in data science hiring processes. This is something I usually do to avoid forgetting basic concepts and to practice my math skills.</p><p>After answering some questions, I started with this specific one:</p><p>“A certain company sells teas in nature, in bags, and in five flavours: Darjeeling, Earl Grey, Chamomile, Mint, and Boldo. The company packages the tea in boxes that contain either 100g of tea of the same flavour and shape or 100 g of tea of 4 different flavours and the same shape. If the order in which each flavour is packed does not matter, how many different types of packages are possible?”</p><p>Immediately following my completion of the question, I had the following two thoughts:</p><p>1. &quot;In nature&quot; and &quot;in bags&quot; enhance the cases by twofold, which I am willing to bet the majority of individuals are unaware of.</p><p>2. The term &quot;different&quot; is an essential component of this question. By omitting the word &quot;different,&quot; the resulting solution will be entirely distinct.</p><p>I then had the following thought: Could ChatGPT possibly comprehend the subtlety of this variation? More specifically, could he resolve this ostensibly straightforward question? I thus tried!</p><p>What ChatGPT responded with is detailed below.</p><blockquote><em>“To determine the different types of packages possible, we need to consider two scenarios:</em></blockquote><blockquote>1. <em>Packages with 100g of tea of the same flavor.</em></blockquote><blockquote>2. <em>Packages with 100g of tea in 4 different flavors.</em></blockquote><blockquote><em>Let’s calculate each one separately:</em></blockquote><blockquote>1. <em>Packages with 100g of tea of the same flavor:</em></blockquote><blockquote>· <em>There are 5 different flavors available.</em></blockquote><blockquote>· <em>Therefore, there are 5 different types of packages with 100g of tea of the same flavor.</em></blockquote><blockquote>2. <em>Packages with 100g of tea in 4 different flavors:</em></blockquote><blockquote>· <em>Choosing 4 flavors out of 5 available is a combination.</em></blockquote><blockquote>· <em>The formula to calculate the combination is given by</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/140/0*L8oVqfv4jG5wtZfB.png" /></figure><blockquote><em>where n is the total number of elements and k is the number of elements to be chosen.</em></blockquote><blockquote>· <em>So,</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/168/0*bUeThPcEVr2bd3md.png" /></figure><blockquote><em>Thus, there are 5 different ways to choose 4 flavors out of the 5 available.</em></blockquote><blockquote><em>Therefore, the total number of different types of packages possible is the sum of the two scenarios:</em></blockquote><blockquote><em>Total = Packages with 100g of tea of the same flavor + Packages with 100g of tea with 4 different flavors Total = 5 + 5 = 10</em></blockquote><blockquote><em>Thus, there are 10 different types of packages possible.”</em></blockquote><p>In light of the fact that we must multiply the possible box configurations by two in order to accommodate boxes containing tea in bags or in nature, my initial assumption was accurate: GPT was incapable of discerning that the correct answer is 20. An adapted version of the incorrect solution by ChatGPT is displayed above:</p><p>1. Packages with 100g of tea of the same flavor:</p><p>· There are 5 different flavors and 2 ways to organize these flavors available (in nature or in bags). Using the multiplicative principle, we have 5 x 2 = 10.</p><p>2. Packages with 100g of tea in 4 different flavors:</p><p>· Choosing 4 flavors out of 5 available is a combination.</p><p>· The formula to calculate combination is given by</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*L8oVqfv4jG5wtZfB.png" /></figure><p>where n is the total number of elements and k is the number of elements to be chosen.</p><p>· So,</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*bUeThPcEVr2bd3md.png" /></figure><p>· There are 5 different combinations of flavors and 2 ways to organize these flavors available (in nature or in bags). Using the multiplicative principle, we have 5 x 2 = 10.</p><p>Applying the additive principle, we have 10 + 10 = 20 different packages of tea.</p><p>I ultimately omitted the word &quot;different&quot; and retried. Prepared to be surprised? ChatGPT provided an identical response. I will explain why this minor modification will have such a profound effect on the solution, in case you were unaware.</p><p>If it is no longer necessary to include four distinct flavors in a single package, we must employ a combination with repetition rather than a simple combination formula. Although this may be perplexing for some people, we must accept examples with repeated flavors because the taste criteria were not limited to mandatory distinct flavors.</p><p>To return to our question, the appropriate resolution for the iteration of our problem that ChatGPT was unable to provide is as follows:</p><p>1. Packages with 100g of tea of the same flavor:</p><p>· There are 5 different flavors and 2 ways to organize these flavors available (in nature or in bags). Using the multiplicative principle, we have 5 x 2 = 10.</p><p>2. Packages with 100g of tea in 4 flavors, every flavor with 25g:</p><p>The answer will be constructed in the absence of formulas. How I solved this question is illustrated in the subsequent image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kB-8tvMSPWq7yDhh1EEeMg.jpeg" /></figure><p>Using the additive principle, we have 10 + 140 = 150 different packages of tea.</p><p>Hence, the accurate reply is 150; nevertheless, ChatGPT provides a value of 10, which is hardly an approximation. This briefly demonstrates how a straightforward mathematical problem can trick an LLM model. It is not advisable for a data scientist to place unwarranted trust in ChatGPT or any other LLM. Undoubtedly, these models can be of great assistance; however, a solid foundation in mathematics and statistics is imperative to prevent the application of erroneous solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7194ae1806ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>