<?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 Fatma Benli on Medium]]></title>
        <description><![CDATA[Stories by Fatma Benli on Medium]]></description>
        <link>https://medium.com/@fatmabenli?source=rss-5246b61dd77f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Fatma Benli on Medium</title>
            <link>https://medium.com/@fatmabenli?source=rss-5246b61dd77f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:37:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fatmabenli/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[Is it possible to predict the future with a Galton box?]]></title>
            <link>https://medium.com/@fatmabenli/is-it-possible-to-predict-the-future-with-a-galton-box-4f9e6401d32d?source=rss-5246b61dd77f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f9e6401d32d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Fatma Benli]]></dc:creator>
            <pubDate>Sat, 17 Feb 2024 11:03:58 GMT</pubDate>
            <atom:updated>2024-02-17T11:03:58.425Z</atom:updated>
            <content:encoded><![CDATA[<p>The world is full of uncertainties and people often have difficulty predicting the future. However, mathematics and statistics provide us with powerful tools to deal with these uncertainties. Statistics is an important discipline used to understand random events and predict the future. The Galton Box, invented by Sir Francis Galton, is one of the tools used to predict the future. Before discussing whether the Galton box can predict the future or not, “What is the Galton Box?” Let’s start with the question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/0*bVIXiTiA17Wr36pv" /></figure><p><strong>WHAT IS A GALTON BOX?</strong></p><p>The Galton box is an experiment and teaching tool designed by the famous English statistician Francis Galton (1822–1911). Its purpose is to practically demonstrate the errors rule and normal distribution. Galton gave this device the ironic name “quincunx”, and it is also referred to as the “bean machine” by some people. The Galton box is an upright board with balls waiting to be released in a container and with nails arranged on top so that the balls can point to the right or left. The released balls fall into the compartments at the bottom of the board. The direction each ball goes in is completely random, and the journey of each ball occurs independently of the others. But interestingly, similar results are obtained when the experiment is repeated several times. By mathematical laws, most balls are attracted towards the center, while the number of balls towards the edges is reduced. This distribution of balls in the Galton box can be explained by a simple reason: the Central Limit Theorem. This theorem states that as the number of samples increases, the average of the collected data generally shows a distribution like a bell curve. So, when you have a large sample, the way your data is spread out will generally resemble a normal distribution. The Galton Box is used to illustrate one of the fundamental principles of the Central Limit Theorem. The experiment gets closer to the results of the Central Limit Theorem with each iteration. In other words, the Galton Box experiment visually represents the accumulation of random variables and demonstrates the validity of the Central Limit Theorem. In this context, it would not be wrong to comment that the Galton Box is a visual representation of the Central Limit Theorem.</p><p><strong>How Does a Galton Box Work?</strong></p><p>Many people are astonished by the fact that randomly thrown balls line up in a similar manner each time. How can such an inherently random process produce such consistent results? As a result, each ball is completely independent of what came before. So it is free to take any path to reach the bottom. So how does this happen? To observe this, let’s do the Galton box experiment through a simulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qR3Ljp7mI1qtzObt2WP7eQ.gif" /></figure><p>As can be seen in the experiment, 570 ball shots are made and there are 15 compartments. After the balls are released, more balls accumulate in the compartments in the center, while as you move away from the center, the number of balls in the compartments gradually decreases and the arrangement of the balls takes the shape of a bell curve.</p><p><strong>What is the Galton box used for?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*fJdGF0Kxh2iIlQ-8HVqEeg.jpeg" /></figure><p>The Galton box allows us to effectively “predict the future” by visually representing the possible outcomes of future events. Therefore, the principles that lead to a normal distribution support our predictive ability in many situations. Whether the group we want to study is an event or a test result, in many cases a shape similar to a normal distribution is seen. For example, let’s say an electronic device manufacturer wants to predict the lifespan of its products. It is important for the manufacturer to predict how long a mobile phone can operate without problems and when it may malfunction. The manufacturer analyzes the lifespan of the products, taking into account various factors that affect the lifespan of the products. These factors include component quality, manufacturing process, usage conditions and environmental factors. Generally, the lifespan of products shows a pattern similar to a normal distribution. While some products work smoothly for a long time, others may fail in a shorter time. However, the lifespan of most products is distributed around a certain average. By analyzing historical product performance data and creating prediction models based on normal distribution, the manufacturer can more accurately predict the lifespan of products. This provides the manufacturer with valuable guidance to improve quality control processes and increase the durability of their products. Therefore, at the very beginning of the article, “Is it possible to predict the future with the Galton box?” The answer to the question will be yes.</p><p><strong>Demonstration of galton box simulation and normal distribution in Python</strong></p><p><strong>Step 1:</strong> NumPy and matplotlib libraries are used for scientific calculations and visualizations. “scipy.stats” is used for statistical calculations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*ZL2n_yvFlKMaCEX5W8hEGA.png" /></figure><p><strong>Step 2:</strong> A function named “galton_box_simulation” is defined. This function simulates a Galton box for a given number of balls and number of slots. In a Galton box simulation, where each ball will land is randomly determined and the results are recorded in an array. An array named “results” is created and initialized with an array whose all elements are zero. This array is used to store the number of balls in each slot. The loop rotates for the specified “number of balls (ball_count)” and a position is determined for each ball. Each ball moves randomly from one slot to the next and the results are recorded in the “results” array. The function returns results. Two variables named “top_count” and “slot_count” are defined. These variables specify the number of balls and the number of slots to be used for the Galton box simulation. The Galton box simulation is run and the results are assigned to the “results” variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*u9gxd1TkFZMElY27JdOc0w.png" /></figure><p><strong>Step 3:</strong> x values are calculated for the normal distribution curve. These values represent slot numbers. Y values are calculated for the normal distribution curve. These values represent the expected number of balls for each slot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*rv7xQ37d88E2OcMRlqjM2g.png" /></figure><p><strong>Step 4:</strong> The results are visualized with the Galton box simulation and normal distribution curve. The bar() function plots the Galton box simulation results as a bar graph, while the plot() function plots the normal distribution curve. Finally, the title, axis labels, and a description are added to the chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*P6MOVtqOGHLA6XJ74TdhVA.png" /></figure><p>FATMA BENLİ</p><p>Business Administration &amp; Econometrics student</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f9e6401d32d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IS STATISTICS A DECEPTIVE SCIENCE?]]></title>
            <link>https://medium.com/@fatmabenli/is-statistics-a-deceptive-science-c5480f32cf50?source=rss-5246b61dd77f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5480f32cf50</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Fatma Benli]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 13:34:26 GMT</pubDate>
            <atom:updated>2024-02-14T14:02:32.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*x3ey_eI8j8zLsdpr.jpg" /></figure><p>Firstly, to discuss whether a fact is a lie or not, we need to know what that fact is. So, let’s start with the question, “What is statistics?” Statistics is a branch of science that involves the processes of data collection, organization, analysis, and interpretation. These methods are used to make inferences about the general characteristics of specific events. Statistics works with quantitative data, expressing information using measures such as numbers, percentages, or ratios. The analyses aim to summarize data sets, examine relationships, and predict future events.</p><p><em>Mark Twain once said, “There are three kinds of lies: lies, damned lies, and statistics.”</em></p><p>Statistics has its roots in mathematics and attempts to explain complex events using mathematical principles. It’s important to note that while mathematics expresses precise results, statistics does not always deal in absolute conclusions. Things considered definite under the umbrella of science don’t raise suspicion, but the fact that statistics doesn’t provide absolute judgments is a source of doubt for many, as evident in Mark Twain’s famous quote.</p><p>Statistics can sometimes be misleading, but the fact that statistics can be misleading doesn’t necessarily mean it tells lies. Misleading statistics often result from errors in data analysis or presentation and may not necessarily have a deliberate intention to deceive. Mistakes can arise from carelessness, inadequate controls, errors in sample selection, or data manipulation. Therefore, approaching statistics with a critical mindset and understanding how data is collected, analyzed, and presented is crucial.</p><p>Statistics should be evaluated not only as numbers but also through context and methodology. To illustrate this, imagine ten people sitting in a middle-class restaurant. Each earns $35,000 annually, making the average income of this group $35,000. Now, let’s say a person with a yearly income of one billion dollars joins and sits in the eleventh chair. If we calculate the average income of these eleven people, it would be $91 million. While this statement is statistically and mathematically correct, it can be misleading because the initial ten people didn’t suddenly become wealthy, and the restaurant is not a place frequented by multimillionaires; it’s a place for a relatively lower-income group. Therefore, when interpreting numerical data, considering context is crucial.</p><p><em>“Statistics makes inferences about the unknown world from the known world.”</em></p><p>Statistics is a valuable tool for making predictions about the future using existing data. In other words, statistics make inferences about the unknown world from the known world. Let’s explain this with an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*xkazhpMrfoCw-Tm9.jpeg" /></figure><p>Suppose the table above represents data on the age and salary variables of customers of a business. Let’s say the company is trying to determine the factors that influence customers to purchase their product. Let’s focus on sales in Turkey. According to the table, a person aged 55 with a salary of 72,000 TL does not buy the product, while individuals aged 35 and 30, with salaries of 32,000 TL and 33,000 TL respectively, purchase the product. A data scientist, when presented with such a dataset, could infer that younger customers are more likely to buy the product compared to older individuals. Using this information, they could make predictions about whether a 33-year-old person in Turkey with a salary of 35,000 TL would buy the product. (Of course, in reality, businesses have much larger datasets, but for simplicity, only three data points are used here.) So, how do they make these predictions? Data scientists can make predictions and decisions based on the trust they have in the data. There’s one crucial word here: Trust. No one can trust information that is a lie. If data scientists can make predictions, analyze data, and make decisions, it’s because statistics, when based on accurate data collection, doesn’t mislead us.</p><p>Looking at the examples above, it’s clear that statistics is not a lie. What if statistics were a lie? If statistics were a lie, serious and extensive problems would arise. For example:</p><ul><li><strong>Loss of Scientific Knowledge:</strong> In the scientific world, statistics is a critical tool for analyzing experiment results and testing hypotheses. If statistics were a lie, scientific progress would become difficult, and obtaining solid scientific results would be challenging.</li><li><strong>Health Issues:</strong> Statistics is used in the health sector for disease control, epidemiological research, and drug testing. The loss of reliability in statistics would complicate the assessment of health risks and disease control.</li><li><strong>Economic Uncertainty:</strong> In economics, statistics are used to monitor and analyze important economic indicators such as growth forecasts, unemployment rates, and inflation. If statistics were a lie, making economic policies and managing economic uncertainty would become more challenging.</li><li><strong>Legal and Judicial System:</strong> Statistics play a significant role in the legal field, from presenting evidence in court to monitoring crime rates. If statistics were untrue, fair trials and ensuring justice would become more complex.</li><li><strong>Business and Finance:</strong> In the business world, marketing strategies, risk management, and quality control rely on statistical analysis. If statistics were a lie, businesses would face serious challenges in data analysis and decision-making processes.</li></ul><p>In summary, statistics is a branch of science that involves the processes of data collection, analysis, and interpretation. These methods are used to make inferences about the general characteristics of specific events. Statistics works with quantitative data, expressing information using measures such as numbers, percentages, or ratios. However, as alluded to in Mark Twain’s famous quote, statistics can be misleading at times. Misleading statistics are often the result of errors in data analysis or presentation, which may not necessarily have a deliberate intention to deceive. Still, the fact that statistics can be misleading does not mean they are lies. When used with accurate and reliable data, statistics serve as a crucial tool in various fields such as science, economics, health, and more. Understanding and evaluating statistics correctly enhance their reliability and broaden their applications.”</p><p>FATMA BENLİ</p><p>Business Administration &amp; Econometrics student</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5480f32cf50" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>