<?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 Deniz Ağırdan on Medium]]></title>
        <description><![CDATA[Stories by Deniz Ağırdan on Medium]]></description>
        <link>https://medium.com/@denizagirdan?source=rss-eaeaa6146951------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IJ5x09ePvmrp_a40FENqbg.png</url>
            <title>Stories by Deniz Ağırdan on Medium</title>
            <link>https://medium.com/@denizagirdan?source=rss-eaeaa6146951------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:42:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@denizagirdan/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[Predict Probabilities/predict_proba(): The harms of class imbalance corrections]]></title>
            <link>https://medium.com/data-science-collective/predict-probabilities-predict-proba-the-harms-of-class-imbalance-corrections-3cb0105e230c?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cb0105e230c</guid>
            <category><![CDATA[brier-score]]></category>
            <category><![CDATA[class-imbalance]]></category>
            <category><![CDATA[oversampling-dangers]]></category>
            <category><![CDATA[predict-proba]]></category>
            <category><![CDATA[bayes-calibration]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 03:42:42 GMT</pubDate>
            <atom:updated>2025-09-12T06:03:47.419Z</atom:updated>
            <content:encoded><![CDATA[<p>You should be careful after applying imbalance correction if you need the original target distribution to predict true probabilities.</p><p>I have already mentioned <a href="https://medium.com/data-science-collective/predict-probabilities-predict-proba-calibration-ae6d37f90bed"><strong>here</strong></a> what the prediction calibration is and why the prediction calibration is important if you intend to use predict_proba().</p><p>For example, you may want to calculate the ROI (Return on Investment) of your campaign to determine whether it is worth bearing the cost. Let’s assume your average historic conversion rate is 10% (i.e., your target distribution), the cost of the campaign is $10, and the revenue per conversion is $90. Then, the expected ROI can be calculated as follows:</p><p><em>ROI = (Revenue × Conversion Rate) — Cost<br>ROI = (90 × 0.10) — 10= 9–10 = -1</em></p><p>So, the expected ROI is -$1.</p><p>However, after applying imbalance correction, your predicted conversion rate might be significantly higher than the actual one, as if 50% instead of 10%. This could lead to an inflated ROI calculation, such as:</p><p><em>ROI = (90 × 0.50) — 10 = 45–10 = 35</em></p><p>It may look like your action will generate a $35 profit, even though the real expected ROI should have been much lower. In reality, you’re being misled into thinking the campaign is profitable when it’s not.</p><p>To perform a meaningful calculation, you need true probabilities that reflect your business reality. After applying class imbalance correction, it’s essential to calibrate your predicted probabilities. This is because imbalance correction alters the original distribution of the target variable, which can lead to misleading probability estimates.</p><h3><strong>Bayesian calibration</strong></h3><p>Instead of blindly trusting the model’s predict_proba() output, we can correct the probabilities post-training using <strong>Bayesian calibration</strong>.</p><p>By applying Bayes’ theorem, we adjust the model’s predicted probabilities to reflect the <strong>true class priors</strong> in the real world:</p><pre># Bayesi Calibration Function<br>def bayes_calibration(p_model, p_real, p_train):<br>    &quot;&quot;&quot;<br>    p_model: model.predict_proba()[:, 1]<br>    p_real: original class distribution<br>    p_train: oversampling/undersampling distribution<br>    &quot;&quot;&quot;<br>    numerator = p_real * p_model<br>    denominator = numerator + (1 - p_real) * (1 - p_model) * (p_train / (1 - p_train))<br>    return numerator / denominator</pre><p>Where:</p><ul><li>P_model: predicted probability from model trained on balanced data.</li><li>p_real: true positive rate in the real population.</li><li>p_train: positive rate in the (possibly oversampled/undersampled) training data.</li></ul><p>This approach ensures your model’s confidence reflects real-world expectations, not artificial distributions.</p><h3>A Python Example</h3><p>In a recent example, I built a logistic regression model using SMOTE to balance a dataset with 10% positives. Without calibration, the model’s predicted probabilities were <strong>misaligned</strong>, as seen in the calibration curve below:</p><p>After <strong>Bayes calibration</strong>, the model’s probabilities matched the actual positive rate much more closely. The calibration curve also shifted closer to the diagonal line, indicating significantly improved probability estimates. This visual evidence is further supported by the drop in Brier Score. The lower the Brier Score, the more accurate the predicted probabilities.</p><p>🐍 You can directly access <a href="https://gist.github.com/denizagirdan/857b81480c078574bb548bb3fe7c8757"><strong>GitHub Link</strong></a> o get the Python code and run it on your PC.</p><pre>=== Uncalibrated Model ===<br>Accuracy : 0.75032<br>Precision: 0.31758773966695414<br>Recall   : 0.6853256979241231<br>F1 Score : 0.43403753740139633<br>ROC AUC  : 0.7896797067094922<br>Brier Score: 0.17233083199133026<br><br>Classification Report:<br>               precision    recall  f1-score   support<br><br>           0     0.9371    0.7609    0.8398     43015<br>           1     0.3176    0.6853    0.4340      6985<br><br>    accuracy                         0.7503     50000<br>   macro avg     0.6273    0.7231    0.6369     50000<br>weighted avg     0.8505    0.7503    0.7831     50000<br><br><br>=== Calibrated Model (Isotonic) ===<br>Accuracy : 0.75032<br>Precision: 0.31758773966695414<br>Recall   : 0.6853256979241231<br>F1 Score : 0.43403753740139633<br>ROC AUC  : 0.7896797067094922<br>Brier Score: 0.08908583488753316<br><br>Classification Report:<br>               precision    recall  f1-score   support<br><br>           0     0.9371    0.7609    0.8398     43015<br>           1     0.3176    0.6853    0.4340      6985<br><br>    accuracy                         0.7503     50000<br>   macro avg     0.6273    0.7231    0.6369     50000<br>weighted avg     0.8505    0.7503    0.7831     50000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*SxfUAfHI6qpWv7ZyCWsyxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*cSBOzcQFIfOztbqHqjjtsg.png" /></figure><h3>References</h3><p><a href="https://medium.com/data-science-collective/predict-probabilities-predict-proba-calibration-ae6d37f90bed">https://medium.com/data-science-collective/predict-probabilities-predict-proba-calibration-ae6d37f90bed</a></p><p><a href="https://arxiv.org/abs/2404.19494">The harms of class imbalance corrections for machine learning based prediction models: a simulation study</a></p><p><a href="https://www.researchgate.net/publication/373204758_Calibration_Methods_in_Imbalanced_Binary_Classification">https://www.researchgate.net/publication/373204758_Calibration_Methods_in_Imbalanced_Binary_Classification</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cb0105e230c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/predict-probabilities-predict-proba-the-harms-of-class-imbalance-corrections-3cb0105e230c">Predict Probabilities/predict_proba(): The harms of class imbalance corrections</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predict Probabilities/predict_proba(): Calibration]]></title>
            <link>https://medium.com/data-science-collective/predict-probabilities-predict-proba-calibration-ae6d37f90bed?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae6d37f90bed</guid>
            <category><![CDATA[score-calibration]]></category>
            <category><![CDATA[probability-calibration]]></category>
            <category><![CDATA[calibratedclassifiercv]]></category>
            <category><![CDATA[calibrated-probabilities]]></category>
            <category><![CDATA[brier-score]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 01:44:37 GMT</pubDate>
            <atom:updated>2025-07-23T04:50:34.934Z</atom:updated>
            <content:encoded><![CDATA[<p>If you intend to use predict_proba(), you should understand why calibrating predicted probabilities is especially important when you want to rely on predicted probabilities rather than just predicted classes.</p><p>In machine learning, we often focus on model accuracy, precision, or ROC-AUC. And while these metrics are important, they only tell part of the story. In many real-world scenarios, like fraud detection, medical diagnosis, or credit risk scoring, <strong>we don’t just want to know what class an instance belongs to, but how the model is confident about its probabilities. </strong>That’s where well-calibrated probabilities become important.</p><h3>🔍 <strong>What is calibration?</strong></h3><p>Calibration refers to how well a machine learning model’s output score aligns with the observed true probability. This is especially important in probabilistic classification models, where the goal is for the score, ranging from 0 to 1, to represent an estimate of the likelihood of observing the target class given the input, i.e., P(class|input).</p><p>For example, a model might say, “There’s a 90% chance this transaction is fraudulent.” But how do we know whether that 90% actually reflects reality?</p><p>In a <strong>well-calibrated model</strong>, among all the cases where the model predicts 0.9 probability, about 90% should be truly positive.</p><h3>🤔 Why Calibration is important</h3><p>The importance of calibration becomes evident when poorly calibrated models lead to serious consequences.</p><p><strong>Misinterpretation of Scores:</strong> It may cause users to incorrectly interpret what the model’s predicted scores actually mean.</p><p><strong>Misleading in Optimal Decision-Making</strong>: It can lead to incorrect decisions based on the model’s outputs. This is especially critical in cost-sensitive classification contexts. Think of a bank using a fraud detection system. Marking a normal transaction as fraud (a false alarm) doesn’t cost the same as missing real fraud. If the model gives a 0.95 fraud score, but only 40% of those are actually fraud, the bank could waste a lot of time and effort chasing fake threats. In other words, <strong>bad calibration leads to bad decisions</strong>.</p><p>Here are some use cases where well-calibrated probabilities are essential:</p><ul><li><strong>Healthcare</strong>: A 10% probability of cancer should truly mean “1 in 10” patients with similar results actually have cancer.</li><li><strong>Marketing</strong>: Knowing the real likelihood of a customer converting allows better budget allocation.</li><li><strong>Risk Modeling</strong>: In credit scoring, the probability of default (PD) must be calibrated to regulatory standards.</li></ul><h3>⚠️ When Should Calibration Be Used?</h3><p>Calibration is used to address the calibration problem, which happens when a model’s predicted outputs do not align with the observed true probabilities.</p><ul><li>Calibration is needed when a model’s <strong>predicted scores don’t match the actual likelihood</strong> of an event occurring.</li><li>Calibration is particularly important when using probabilistic classifiers in fields such as object detection, healthcare, and finance, where <strong>decisions rely on the confidence scores output</strong> by the model.</li><li>Calibration is important in <strong>imbalanced binary classification problems</strong>, where the number of negative class instances greatly exceeds that of the positive class.</li></ul><p>In summary, calibration is a critical step to improve the reliability of model predictions, optimize decision-making processes, and correct bias in model outputs, especially under imbalanced data conditions.</p><h3>🛠️ Common Calibration Methods</h3><p>There are two widely used calibration techniques, both supported in scikit-learn and other libraries:</p><h4>1. Platt Scaling (Sigmoid Calibration)</h4><p>Platt Scaling is an important parametric method used to calibrate the probabilistic outputs of binary classification models. Its effectiveness has been further improved by combining it with new frameworks, especially in cases involving imbalanced datasets and resampling techniques to reduce bias in model outputs.</p><h4>2. Isotonic Regression</h4><p>Isotonic Regression is a flexible and powerful calibration method that maps model outputs to observed true probabilities. It stands out for its adaptability, especially when working with imbalanced data and biased scores. However, it requires a sufficient amount of calibration data to perform well.</p><h3>📉 How to Measure Calibration</h3><p>Here are key metrics to assess calibration quality:</p><ul><li><strong>Brier Score</strong>: Measures mean squared error between predicted probabilities and actual labels. <strong>A lower Brier Score means your model’s probabilities are closer to the truth.</strong></li><li><strong>Calibration Curves</strong>: A visual plot that compares predicted probabilities with actual observed frequencies.</li><li>X-axis: predicted probabilities (grouped into bins, like 0.1–0.2, 0.2–0.3, etc.)</li><li>Y-axis: fraction of positive outcomes in each bin</li></ul><p>Ideally, the curve should follow the diagonal (y = x), meaning predicted probabilities match observed frequencies.</p><h3>💻 A Python Application</h3><p>As a simulation, this experiment showed that a model can score well on metrics like accuracy and ROC-AUC, but still give unreliable probability estimates. This is a big problem in areas like fraud detection, where we need trustworthy confidence scores to make good decisions.</p><p>🐍 You can directly access <a href="https://gist.github.com/denizagirdan/d77969852a846f76f3923a841976d7ed"><strong>GitHub Link</strong></a> o get the Python code and run it on your PC.</p><pre><br>########################################################################<br>######################## OUTPUTS/RESULTS ###############################<br><br>=== Uncalibrated Model ===<br>Accuracy : 0.89572<br>Precision: 0.8609865470852018<br>Recall   : 0.30236220472440944<br>F1 Score : 0.44755244755244755<br>ROC AUC  : 0.7857733202389572<br>Brier Score: 0.08709333494044227<br><br>Classification Report:<br>               precision    recall  f1-score   support<br><br>           0     0.8975    0.9921    0.9424     43015<br>           1     0.8610    0.3024    0.4476      6985<br><br>    accuracy                         0.8957     50000<br>   macro avg     0.8792    0.6472    0.6950     50000<br>weighted avg     0.8924    0.8957    0.8733     50000<br><br><br>=== Calibrated Model (Isotonic) ===<br>Accuracy : 0.89824<br>Precision: 0.8098660568441686<br>Recall   : 0.3549033643521832<br>F1 Score : 0.49352976308978697<br>ROC AUC  : 0.7857127064679457<br>Brier Score: 0.0847249898827787<br><br>Classification Report:<br>               precision    recall  f1-score   support<br><br>           0     0.9040    0.9865    0.9434     43015<br>           1     0.8099    0.3549    0.4935      6985<br><br>    accuracy                         0.8982     50000<br>   macro avg     0.8569    0.6707    0.7185     50000<br>weighted avg     0.8909    0.8982    0.8806     50000<br><br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*grXHI0aZf4MEs8hDjnMISQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*rDVyVI8zgsZF9yrXgaSvww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*17BwtNwwp8tECIMV8jbdsw.png" /></figure><h3>🎯 Results and Conclusion</h3><p>Interestingly, after calibrating the model, you might notice that precision actually <strong>decreased</strong> slightly.</p><p>This is expected: uncalibrated models often make overly confident predictions. They tend to only label examples as positive when they’re <em>very</em> sure, which artificially inflates precision but at the cost of <strong>recall</strong> and <strong>calibration quality</strong>.</p><p>Once calibrated, the model becomes more balanced and willing to classify borderline cases as positive, improving recall and calibration metrics like <strong>Brier Score</strong>, even if precision drops slightly.</p><p>After applying isotonic calibration, the model’s <strong>calibration curve aligned much more closely with the diagonal</strong>. This visual confirmation supports the quantitative improvements seen in Brier Score.</p><p><em>Calibration isn’t about maximizing precision — it’s about </em><strong><em>producing trustworthy probabilities</em></strong><em> that reflect reality.</em></p><h3>References</h3><p><a href="https://www.researchgate.net/publication/373204758_Calibration_Methods_in_Imbalanced_Binary_Classification">https://www.researchgate.net/publication/373204758_Calibration_Methods_in_Imbalanced_Binary_Classification</a></p><p><a href="https://arxiv.org/abs/2404.19494">https://arxiv.org/abs/2404.19494</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae6d37f90bed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/predict-probabilities-predict-proba-calibration-ae6d37f90bed">Predict Probabilities/predict_proba(): Calibration</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Driving Generative AI Strategy for Business Growth]]></title>
            <link>https://medium.com/data-science-collective/driving-generative-ai-strategy-for-business-growth-0190d66ab4a6?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/0190d66ab4a6</guid>
            <category><![CDATA[ai-strategy]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 01:41:56 GMT</pubDate>
            <atom:updated>2025-07-17T01:41:56.802Z</atom:updated>
            <content:encoded><![CDATA[<p>Generative AI (Gen AI) is rapidly changing the game for businesses worldwide. But building a truly successful Gen AI strategy isn’t just about jumping on the hype train. It requires a smart and well-structured approach that brings innovation to every part of the organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PlLKPcgyu0tY6q8I" /><figcaption>Photo by <a href="https://unsplash.com/@jasongoodman_youxventures?utm_source=medium&amp;utm_medium=referral">Jason Goodman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>1. Identify the strategic opportunities</h3><p>Gen AI can do a lot, but we shouldn’t try to do everything at once.</p><p>The first step is to identify a particular business area where Gen AI can deliver high impact and measurable value. Think big impact, not just incremental gains. Once you’ve proven its value in that initial space, you can confidently expand its reach across the organization. This focused approach means maximizing what you learn and ensuring the solutions scale effectively, bringing tangible business benefits. The trick is to pick use cases that are not only <strong>feasible</strong> and <strong>affordable</strong> but also promise a strong <strong>return on investment</strong>.</p><h3>2. Fostering a Culture of Discovery</h3><p>Gen AI is powered by curiosity and a willingness to experiment. Fostering that mindset across the team makes all the difference.</p><p>Creating an environment where employees feel empowered to experiment with Gen AI. This might mean hosting internal hackathons, workshops, providing dedicated time for brainstorming, or offering access to new tools. The goal is to foster a collaborative space where everyone can share their findings, insights, and best practices. This leverages the collective expertise and creativity of your entire workforce</p><p>Hands-on with different Gen AI tools and applications builds valuable insights into what the technology can do, and more importantly, what its limitations are. Sharing these findings with colleagues is crucial. If early experiments show promise, it’s time to bring those insights to leadership and advocate for broader initiatives.</p><h3>3. Resourcing: Fueling Your AI Ambitions</h3><p>No Gen AI initiative can succeed without the right foundation: data, tools, and people.</p><p>Need a robust <strong>data strategy</strong> to ensure teams have access to high-quality, relevant data for training and fine-tuning Gen AI models. It’s also about being smart with investments: leveraging existing tools and platforms rather than starting from scratch. Crucially, it means investing in your people, <strong>upskilling existing employees</strong> with AI knowledge and strategically hiring new talent with Gen AI expertise.</p><p>It’s about being resourceful. Look for existing datasets, tools, or platforms within your department that can be leveraged for Gen AI development. If your promising ideas or experiments hit a resource wall, don’t hesitate to build a strong business case for leadership, detailing the potential value and ROI of your Gen AI initiatives.</p><h3>4. Impact: Proving the Value</h3><p>Set goals from the start or risk building in the dark.</p><p>Setting clear goals and defining <strong>Key Performance Indicators (KPIs)</strong> to measure the tangible impact of Gen AI. This could range from increased sales and reduced customer complaints to faster product development cycles. Regularly communicating this progress to stakeholders is very important. It showcases the value being generated and justifies continued investment.</p><p>Articulating how your Gen AI initiatives contribute to the organization’s overall business goals helps align efforts with strategic priorities and proves the value you’re delivering. Define and track KPIs specific to your solutions. This data provides evidence of impact and helps refine your approach.</p><h3>5. Test and Learn</h3><p>You can’t just launch Gen AI and hope it runs forever. People’s needs change, data shifts, and models stop performing like they used to. The best teams stay hands-on and treat Gen AI like something that needs constant care and attention.</p><p>Continuous testing, measurement, and refinement are crucial. This means actively gathering user feedback and analyzing real-world performance data to ensure Gen AI solutions remain effective and valuable. Update your Gen AI solutions regularly based on new data and feedback to boost performance. Crucially, continue your own Gen AI education — stay curious, take courses, read articles, and keep experimenting.</p><h3><strong>6. AI Risks</strong></h3><p>Responsible AI isn’t optional or secondary. It’s part of the blueprint.</p><p>That means putting in place clear data policies, content review processes, and bias checks from day one. Think of it like plumbing, you don’t want to notice the leaks after everything’s painted and polished.</p><p>Responsible use of Gen AI starts with clear ethical guidelines and strong safety measures. Organizations must establish solid data governance practices that ensure privacy and compliance with relevant regulations. This includes implementing tools for automated data discovery, classification, and de-identification. It is equally critical to have a robust content moderation policy with human oversight for AI-generated outputs, especially in sensitive areas like customer communication or financial advice. Ongoing performance monitoring is essential to identify and mitigate unintended consequences or biases.</p><p>By integrating these approaches, organizations can build a robust Gen AI strategy that not only leverages cutting-edge technology but also fosters a culture of innovation, responsibility, and continuous growth.</p><p><strong>References</strong></p><p><a href="https://www.gartner.com/en/information-technology/topics/ai-strategy-for-business">https://www.gartner.com/en/information-technology/topics/ai-strategy-for-business</a>/</p><ul><li><a href="https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier">The economic potential of generative AI: The next productivity frontier</a></li><li><a href="https://intersog.com/blog/strategy/power-generative-ai-enhancing-business-strategies/">The Power of Generative AI: Enhancing Business Strategies</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0190d66ab4a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/driving-generative-ai-strategy-for-business-growth-0190d66ab4a6">Driving Generative AI Strategy for Business Growth</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bernoulli Distribution with Python from Scratch]]></title>
            <link>https://medium.com/data-science/bernoulli-distribution-with-python-from-scratch-89fda3c822b?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/89fda3c822b</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[scratch-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 20:05:25 GMT</pubDate>
            <atom:updated>2021-02-11T12:40:42.056Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to code bernoulli distribution from scratch for curious</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*StKg3rHVkDoS0cps" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To solve a problem, the common ready libraries are used but we don’t search the function how to work and how to serve our purpose. More importantly, if we need to modify a function, we don’t know how to do that.</p><p>So, the purpose of this article is how to code bernoulli probability distributions and their some properties in a simple way, without using ready libraries like “SciPy” and gain some basic skills from scratch.</p><p>The bernoulli distribution is a discrete distribution that is used when a random experiment is performed and only two results are obtained such as good-bad, positive-negative, success-failure. Those statements are used to describe the probabilities of an event. Bernoulli trial is the simple way to represent an experiment like the outcome of a coin heads or tails, the result of an exam pass or failure, etc.</p><h3>Probability Function</h3><p>If X is a random variable and p is a probability of an event with this distribution, then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*EKEeZ_lDDbyX2fEPZket5w.gif" /><figcaption>bernoulli probability mass function</figcaption></figure><p><strong>Python Code:</strong></p><pre>#bernoulli probability mass function:</pre><pre>def pmf(x,p):<br>    f = p**x*(1-p)**(1-x)<br>    return f</pre><h3>Mean</h3><p>The mean or expected value E(x) of Bernoulli random variable X is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*u7C6W_v18CDrV8xYd7w7mA.gif" /></figure><p><strong>Python Code:</strong></p><pre># expected value of x<br>def mean(p):<br>    return p</pre><h3>Variance and Standart Deviation</h3><p>The variance of random variable X is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*tYgey2J_eAE_TAq4Pm0Wdg.gif" /></figure><p><strong>Python Code:</strong></p><pre>#variance of x<br>def var(p):<br>    return p*(1-p)</pre><pre>#standard deviation is root of variance<br>def std(p):<br>    return var(p)**(1/2)</pre><h3>Generate Random Variates</h3><p>To generate random variates corresponding to Bernoulli distribution</p><p><strong>Python Code</strong></p><pre>import numpy as np</pre><pre>#size is a parameter that how many number generates<br>def rvs(p,size=1):<br>    rvs = np.array([])<br>    for i in range(0,size):<br>        if np.random.rand() &lt;= p:<br>            a=1<br>            rvs = np.append(rvs,a)<br>        else:<br>            a=0<br>            rvs = np.append(rvs,a)<br>    return rvs</pre><p>Let put them together</p><pre>import numpy as np</pre><pre>#created a bernoulli class<br> <br>class bernoulli():</pre><pre>    def pmf(x,p):<br>        &quot;&quot;&quot;<br>        probability mass function        <br>        &quot;&quot;&quot;<br>        f = p**x*(1-p)**(1-x)<br>        return f<br>    <br>    def mean(p):<br>        &quot;&quot;&quot;<br>        expected value of bernoulli random variable<br>        &quot;&quot;&quot;<br>        return p<br>    <br>    def var(p):<br>        &quot;&quot;&quot;<br>        variance of bernoulli random variable<br>        &quot;&quot;&quot;<br>        return p*(1-p)<br>    <br>    def std(p):<br>        &quot;&quot;&quot;<br>        standart deviation of bernoulli random variable<br>        &quot;&quot;&quot;<br>        return bernoulli.var(p)**(1/2)<br>    <br>    def rvs(p,size=1):<br>        &quot;&quot;&quot;<br>        random variates<br>        &quot;&quot;&quot;<br>        rvs = np.array([])<br>        for i in range(0,size):<br>            if np.random.rand() &lt;= p:<br>                a=1<br>                rvs = np.append(rvs,a)<br>            else:<br>                a=0<br>                rvs = np.append(rvs,a)<br>        return rvs</pre><h4>Example</h4><p>Suppose that a formula-1 racer has a 0.2 probability of having an accident. So that X = 1 if an accident occurs, and X = 0 otherwise. Find the expectation, variance and standart deviation of X and generate random variate 10 times.</p><pre>p=0.2 # probability of having an accident</pre><pre>bernoulli.mean(p) # return -&gt; 0.2<br>bernoulli.var(p) # return -&gt; 0.16<br>bernoulli.std(p) # return -&gt; 0.4</pre><pre>#each execution generates random numbers, so array may be change<br>bernoulli.rvs(p,size=10) <br>#return-&gt; array([0., 0., 0., 0., 1., 0., 1., 0., 0., 1.])</pre><p>I hope this article is useful and gives you a different perspective.</p><h3>References:</h3><p>Bernoulli Distribution <a href="https://www.wikiwand.com/en/Bernoulli_distribution">https://www.wikiwand.com/en/Bernoulli_distribution</a></p><p>Probability Distribution <a href="https://www.wikiwand.com/en/Probability_distribution">https://www.wikiwand.com/en/Probability_distribution</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89fda3c822b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/bernoulli-distribution-with-python-from-scratch-89fda3c822b">Bernoulli Distribution with Python from Scratch</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Probability: From Apple to Black Swan]]></title>
            <link>https://medium.com/data-science/probability-from-apple-to-black-swan-1a8c2c6b42c0?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a8c2c6b42c0</guid>
            <category><![CDATA[laplaces-demon]]></category>
            <category><![CDATA[butterfly-effect]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[chaos-theory]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 20:22:23 GMT</pubDate>
            <atom:updated>2020-11-04T21:09:59.324Z</atom:updated>
            <content:encoded><![CDATA[<h4>Do you think universe is always chaotic, hardly predictable and “estimation” is not useful in practice?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OJGyS9Y6QtOvg0j4" /><figcaption>Photo by <a href="https://unsplash.com/@hemersoncoelho?utm_source=medium&amp;utm_medium=referral">Hemerson Coelho</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Until the beginning of the 20th century, it was thought that the universe operated under certain rules. Most scientists defended the deterministic idea and thought everything was predictable. Many supportive ideas have been put forward on determinism that developed with Newton, which was perhaps never questioned until Einstein. One of them is a theory put forward by Pierre-Simon Laplace in the early 19th century.</p><p>Laplace says: “We may regard the present state of the universe as the effect of its past and the cause of its future. An intellect which at any given moment knew all of the forces that animate nature and the mutual positions of the beings that compose it, if this intellect were vast enough to submit the data to analysis, could condense into a single formula the movement of the greatest bodies of the universe and that of the lightest atom; for such an intellect nothing could be uncertain and the future just like the past would be present before its eyes”.</p><p>To explain with an example; The tail or head of a coin is the assumption that it can be found taking into account all the variables it will come to. These variables are the height of the money from the ground, the flipping speed of the coin, the angle of rotation, the friction force in the air, the direction and force of the wind, etc. If thousands of variables are calculated, it can be known whether the money will come to a tail or head. This theory would later be called the Laplace’s demon. These types of thought were common and accepted until Einstein’s physics.</p><p>As the new theories that came with Einstein’s physics, Newtonian physics became obsolete, in a manner of speaking, determinist approaches moved away from the opinion that everything is predictable and probabilistic views began to spread. In Schrödinger’s experiment, he developed by supporting the probabilistic approach with the expression “quantum cat can be both alive and dead, and in two places at once” in his famous words. However, a new era has entered and the foundations of science have changed.</p><p>The opinion that predicting the future is impossible in determinist approaches, but that the future is predictable with probabilistic approaches, has started to prevail. Probabilistic approaches have been used in many sciences and it has started to live its heyday. Towards the middle and the end of the 20th century, new arguments against the probabilistic approach started to show themselves.</p><p>It is the chaos theory that we hear the name frequently. Chaos theory maintains that the universe has an irregular (chaotic) structure. It is thought that it has its own order in this disorder, but it is impossible to find this order. This theory is closely intertwined with the butterfly effect; “The things that really change the world, according to Chaos theory, are the tiny things. A butterfly flaps its wings in the Amazonian jungle, and subsequently a storm ravages half of Europe”. It gained fame with this example.</p><p>The main point of chaos theory is that it tries to explain that the results may be unpredictable with very, very small deviations due to the probabilistic approach. He tries to point out that small mistakes that are ignored by the probabilistic approach are actually very important.</p><p>The book “The Black Swan: The Impact of the Highly Improbable” published by Nassim Nicholas Taleb in 2007, he strongly opposes the probabilistic approach and explains it with the example of the black swan. Until Australia was discovered, all swans were thought to be white. In short, the proposition that “all swans are white” was accepted. After the discovery of Australia, the proposition that all swans should be white, which had been accepted for centuries, was turned upside down. He argues that the future, which cannot be predicted with the past information, is completely uncertain. He wants to say that anything can happen at any moment, even the most improbable thing can happen. Of course, in doing so, he heavily criticizes the statisticians who develop the probabilistic approach and apply it to real-life problems, and even goes further, implying that there is no need for statisticians.</p><p>After making a general discussion from determinism to the black swan, I want to end with my own opinion. Of course, making a perfect forecast is statistically impossible. However, estimating approximate results is useful in practice. Because “life is the sum of similarities rather than identities, no observation alone is a perfect example of the general.” Each observation has its own characteristics independent of each other. However, statistics focus on similarities rather than differences and finds approximate results, in spite of a certain error.</p><p>Due to the future is uncertain and chaotic does not mean it cannot be predicted with acceptable error. In order to make some plans for the future, need to make a decisions from today. I want to end with a word of Isaac Asimov; “When people thought the Earth was flat, they were wrong. When people thought the Earth was spherical they were wrong. But if you think that thinking the Earth is spherical is just as wrong as thinking the Earth is flat, then your view is wronger than both of them put together ”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a8c2c6b42c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/probability-from-apple-to-black-swan-1a8c2c6b42c0">Probability: From Apple to Black Swan</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Göbek Bağı Bir: İstatistiksel Öğrenme vs Makine Öğrenmesi]]></title>
            <link>https://medium.com/deep-learning-turkiye/g%C3%B6bek-ba%C4%9F%C4%B1-bir-i%CC%87statistiksel-%C3%B6%C4%9Fenme-vs-makine-%C3%B6%C4%9Frenmesi-4931c08378aa?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/4931c08378aa</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistical-learning]]></category>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Wed, 04 Nov 2020 06:10:21 GMT</pubDate>
            <atom:updated>2021-03-24T09:31:57.696Z</atom:updated>
            <content:encoded><![CDATA[<h4>Veri bilimine yeni adım atanlar hatta veri bilimcilerin ve istatistikçilerin çoğu zaman karıştırdığı iki kardeş kavram. Biri ailenin saygılı, kurallara uyan büyük kardeş, diğeri ise ergen ve kural tanımaz küçük kardeş…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u2-QVZkj8KPMVWhL" /><figcaption>Photo by <a href="https://unsplash.com/@franki?utm_source=medium&amp;utm_medium=referral">Franki Chamaki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Akıllarda ki sorular; istatistiksel öğrenme ve makine öğrenmesi arasındaki farklar neler? Hangisi daha iyi? İstatistik ile istatistiksel öğrenme aynı şeyler mi? Bu ve buna benzer sorular aklınızı karıştırıyorsa, yazının sonunda taşlar biraz daha yerine oturacaktır.</h4><p><strong>İstatistik ile istatistiksel öğrenme aynı şeyler mi?</strong></p><p>Matematiksel olarak ifade edersek istatistik, istatistiksel öğrenmeyi kapsar. İstatistik; veri toplama, düzenleme, görselleştirme, analiz etme, çıkarsama, tahminleme ve betimleme gibi çok geniş kavramları kapsarken, istatistiksel öğrenme çok daha dar bir kavramı yani çıkarsama(inference) ve tahminlemeyi(estimation/prediction) içerir. Başka bir deyişle istatistiksel öğrenme, stokastik bir model kurma ve bu modeli geçerleme durumudur.</p><p><strong>İstatistiksel öğrenme;</strong></p><ul><li>Veriden öğrenir.</li><li>Bir dağılıma tabidir. (Normal, binom vs. gibi)</li><li>Varsayımları vardır. (Yansız olması, etkin olması, çoklu bağlantı olmaması vs. gibi)</li><li>Örnekleme teorisine dayanır. (Merkezi limit teoremi, büyük sayılar kanunu gibi)</li><li>Çıkarım (inference) yapar. (Parametre testi, Güven aralıkları tahmini, uyum iyiliği, Hata incelemesi vs. gibi)</li><li>Tahminleme(estimation) yapar.</li></ul><p>Matematiksel olarak ispatlanmış teoremlere dayanır. Çerçevesi ve sınırları bellidir. Varsayımları altında yansız ve etkin tahminleyicilerdir. Regresyon analizi, diskriminant analizi, lojistik regresyon ve cox regresyon gibi yöntemler istatistiksel öğrenmeye örnek verilebilir.</p><p><strong>Makine Öğrenmesi;</strong></p><ul><li>Veriden öğrenir.</li><li>Algoritmik modeller kullanılır.</li><li>Optimizasyon yöntemleri ön plana çıkar.(gradient descent, newton raphson gibi)</li><li>Yan ve varyans dengesi önemlidir.(Bias and variance trade off)</li><li>Tahminleme(estimation/prediction) yapar.</li><li>Çıkarım yapılamaz. Performans metriklerine bakılarak modelin gücüne karar verilir. (Confusion matrix: Accuracy, recall, sensitivity, roc-auc gibi)</li></ul><p>Algoritma temelli ve toplam hatayı belli kısıtlar altında minimize etmeye odaklıdır. Random Forest, Yapay sinir ağları, Derin Öğrenme, Boosting algoritmaları gibi yöntemler örnek verilebilir.</p><p>İstatistiksel öğrenme, makine öğrenmesinin amaçları çok benzese de aralarındaki en büyük fark <strong>çıkarımdan(inference)</strong> gelmektedir. istatistiksel öğrenme verideki değişkenler arasındaki ilişki ve açıklayıcılığı ile ilgilenirken, makine öğrenmesi <strong>tahminlemenin doğruluk oranı(accuracy)</strong> ile ilgilenmektedir. Ayrıca makine öğrenmesinde ki algoritma çeşitliliği, yan ve varyans dengesinin esnek olması ve çok yüksek boyutlu verilerde tahminleme gücünün yüksek olması gibi avantajları ile büyük veri dünyasında çok hızlı şekilde yerini almasını sağladı.</p><p><strong>Hangisi daha iyi?</strong></p><p>Bu soru karşılığında ilk öncelikle amaç ne diye sormak gerekir. Amaç çıkarım değil sadece tahminleme ve doğruluk başarı oranıyla ilgileniyorsanız makine öğrenmesi iyi bir seçim olabilir. Eğer amaç çıkarım yapmak, veride ki ilişkileri ortaya çıkarmak ise istatistiksel öğrenme daha iyi bir yaklaşım olacaktır.</p><p><em>Diğer yazıma aşağıdaki linkten ulaşabilirsiniz.</em></p><p><a href="https://datahunter.medium.com/olas%C4%B1l%C4%B1k-elmadan-siyah-ku%C4%9Fuya-eb131f7448f0">Olasılık: Elmadan Siyah Kuğuya</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4931c08378aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/deep-learning-turkiye/g%C3%B6bek-ba%C4%9F%C4%B1-bir-i%CC%87statistiksel-%C3%B6%C4%9Fenme-vs-makine-%C3%B6%C4%9Frenmesi-4931c08378aa">Göbek Bağı Bir: İstatistiksel Öğrenme vs Makine Öğrenmesi</a> was originally published in <a href="https://medium.com/deep-learning-turkiye">Deep Learning Türkiye</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Olasılık: Elmadan Siyah Kuğuya]]></title>
            <link>https://denizagirdan.medium.com/olas%C4%B1l%C4%B1k-elmadan-siyah-ku%C4%9Fuya-eb131f7448f0?source=rss-eaeaa6146951------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb131f7448f0</guid>
            <category><![CDATA[nassim-nicholas-taleb]]></category>
            <category><![CDATA[laplace]]></category>
            <category><![CDATA[olasılık]]></category>
            <category><![CDATA[siyah-kuğu]]></category>
            <category><![CDATA[istatistik]]></category>
            <dc:creator><![CDATA[Deniz Ağırdan]]></dc:creator>
            <pubDate>Mon, 02 Nov 2020 21:17:35 GMT</pubDate>
            <atom:updated>2020-11-02T21:17:35.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPZa7Ul6h9Vfvfk7ailAOw.png" /></figure><p>20. yy başlarına kadar evrenin belli kurallar içinde çalıştığı düşünülmekteydi. Çoğu bilimciler determinist görüşü savunmakta ve her şeyin tahmin edilebilir olduğunu düşünmekteydi. Newton ile gelişen determinizm Einstein’a kadar belki hiç sorgulanmamış üzerine bir çok destekleyici görüşler ortaya atılmıştır. Onlardan bir tanesi de Pierre-Simon Laplace’in 19.yy başlarında ortaya attığı bir kuramdır.</p><p>Laplace şöyle demektedir; “Evrenin şimdiki halini geçmişin sonucu ve geleceğin nedeni olarak ele alabiliriz. Bir an için evrenin tüm güçlerinin ve bunu oluşturan tüm varlıkların konumlarını anlayabilen bir canlı olduğunu düşünürsek, ve bunun bu verileri inceleyebileceğini de düşünürsek, aynı anda evrendeki en büyük varlıklardan en küçük atomlara kadar her şeyi hesaba katarak bir hesap yaparsa, hiçbir şey belirsiz değildir ve gelecek de, aynı geçmiş gibi, onun gözlerinin önündedir.”</p><p>Bir örnekle açıklamak gerekirse; bir madeni paranın yazımı yada turamı geleceği tüm değişkenleri hesaba katarak bulunabileceği varsayımıdır. Bu değişkenler paranın yerden yüksekliği, paranın atış hızı, dönme açısı, havada ki sürtünme kuvveti, rüzgarın esme yönü ve kuvveti vs. belki binlerce değişken hesaplanırsa paranın yazı mı tura mı geleceği bilinebilir. Bu kuram daha sonra laplace şeytanı olarak anılacaktı. Bu tür görüşler Einstein fiziğine kadar yaygın ve kabul gören fikirlerdi.</p><p>Einstein fiziği ile gelen yeni kuramların Newton fiziğinin tabiri caizse demode olmasıyla determinist yaklaşımlar her şeyin tahmin edilebilir olduğu görüşünden uzaklaşılıp olasılıkçı görüşler yaygınlaşmaya başladı. Schrödinger’in deneyinde ünlü deyişiyle “ kedi hem sağ hem ölü” ifadesiyle olasılıkçı yaklaşımı destekleyerek geliştirmiştir. Bununla beraber yeni bir döneme girilmiş bilimin temelleri değişmiştir.</p><p>Determinist yaklaşımlarda geleceğin tahmin etmenin imkansız olduğu fakat olasılıksal yaklaşımlarla geleceğin tahmin edilebilir olduğu görüşü ağır basmaya başlamış. Bir çok bilimde olasılıksal yaklaşımlar kullanılmaya başlanmış ve parlak dönemini yaşamaya başlamıştır. 20. yy ortaları ve sonlarına doğru ise olasılıkçı yaklaşıma karşı yeni savlar kendisini göstermeye başlamıştır.</p><p>Günümüzde de adını sık duyduğumuz kaos teorisidir. Kaos teorisi evrenin düzensiz(kaotik) yapıda olduğunu savunmaktadır. Bu düzensizlik içinde de kendi düzeni olduğunu fakat bu düzenin bulunmasının imkansız olduğu düşünülmektedir. Kelebek etkisi ile birebir iç içe olan bu kuram; “Amazon Ormanları’nda bir kelebeğin kanat çırpması, ABD’de fırtına kopmasına neden olabilir. Farklı bir örnekle bu, bir kelebeğin kanat çırpması, Dünyanın yarısını dolaşabilecek bir kasırganın oluşmasına neden olabilir.” örneği ile üne kavuşmuştur.</p><p>Kaos teorisinin asıl savunduğu nokta ise olasılıkçı yaklaşıma ithafen çok ama çok küçük sapmaların olması ile beraber sonuçların tahmin edilemez olabileceğini anlatmaya çalışmaktadır. Olasılıkçı yaklaşımla göz ardı edilen küçük hataların aslında çok önemli olduğuna dikkat çekmeye çalışmaktadır.</p><p>2007 yılında Nassim Nicholas Taleb tarafından yayınlanan “Siyah Kuğu Olasılıksız Görünenin Etkisi” adlı kitabında olasılıkçı yaklaşıma şiddetle karşı çıkmakta ve siyah kuğu örneğiyle açıklamaktadır. Avusturalya keşfedilene kadar bütün kuğuların beyaz olduğu düşünülüyordu. Kısaca “bütün kuğular beyazdır” önermesi kabul ediliyordu. Avusturalya keşfedildikten sonra yüz yıllarca kabul gören bütün kuğuların beyaz olması önermesi altüst oldu. Elde ki geçmiş bilgilerle geleceğin tahmin edilemeyeceği geleceğin tamamen belirsiz olduğunu savunmaktadır. Her şeyin her an olabileceğini en olasılıksız görünenin bile gerçekleşebileceğini söylemek istemektedir. Tabi bunu yaparken olasılıkçı yaklaşımı geliştiren ve gerçek yaşam problemlerine uygulayan istatistikçileri ağır şekilde eleştirmektedir ve hatta daha ileri giderek istatistikçilere ihtiyaç olmadığını ima etmektedir.</p><p>Determinizmden siyah kuğuya kadar genel bir inceleme yaptıktan sonra kendi fikrimi söyleyerek bitirmek istiyorum. Elbette kusursuz bir tahmin yapmak istatistiksel olarak imkansızdır. Fakat yaklaşık sonuçlar tahmin edilmesi pratikte yarar sağlamaktadır. Çünkü “yaşam özdeşliklerden çok benzerliklerin toplamıdır, tek başına hiçbir gözlem genelin mükemmel bir örneği değildir” Tek başına mükemmel örneği olmadığı gibi toplu olarak da mükemmel bir örneği değildir. Her bir gözlem birbirinden bağımsız kendine has nitelikleri vardır. Fakat istatistik farklılıklardan öte benzerliklere odaklanmaktadır ve belli bir hatayla da olsa yaklaşık sonuçlar bulmaktadır.</p><p>Geleceğin belirsiz ve kaotik olması kabul edilebilir hatayla tahmin edilemeyeceği anlamına gelmez. Gelecek hakkında bir takım planlar yapabilmek için bugünden kararlar alınması gerekmektedir. Isaac Asimov’un bir sözüyle bitirmek istiyorum; “İnsanlar dünyanın düz olduğuna inandıkları zamanlarda haksızdılar. Dünyanın küre şeklinde olduğunu düşündüklerinde de haksızdırlar. Fakat eğer dünyanın küre şeklinde olduğuna inanmanın, düz olduğuna inanmak kadar yanlış olduğunu düşünüyorsanız, sizin bakış açınız, bu kişinin toplamından daha yanlıştır”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb131f7448f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>