<?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 Sneha Bhalerao on Medium]]></title>
        <description><![CDATA[Stories by Sneha Bhalerao on Medium]]></description>
        <link>https://medium.com/@sarabhalerao25?source=rss-40ba5e9392cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ExXKFdcQecmQUftj2wvsaw.jpeg</url>
            <title>Stories by Sneha Bhalerao on Medium</title>
            <link>https://medium.com/@sarabhalerao25?source=rss-40ba5e9392cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 15:25:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sarabhalerao25/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[Evaluating LLM Applications: Who Decides What “Good” Looks Like?]]></title>
            <link>https://medium.com/@sarabhalerao25/evaluating-llm-applications-who-decides-what-good-looks-like-8ba6c2828ab0?source=rss-40ba5e9392cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ba6c2828ab0</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[llm-metrics]]></category>
            <dc:creator><![CDATA[Sneha Bhalerao]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 13:16:19 GMT</pubDate>
            <atom:updated>2026-07-04T13:16:19.766Z</atom:updated>
            <content:encoded><![CDATA[<p>Challenges in Evaluating LLM Applications</p><p>Index</p><ul><li><strong>Evaluation Shift</strong></li><li><strong>Quality Definition</strong></li><li><strong>Judge Disagreement</strong></li><li><strong>Evaluation Scale</strong></li><li><strong>Context Dependence</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4XUxIN7fTrfK1RVm8fdzFA.png" /></figure><p><strong>Evaluation Shift</strong></p><p>Let us begin with a simple traditional machine learning setup. Suppose the ground truth is either 0 or 1, or one of ten predefined classes. Given an input record, the target belongs to one of these known classes. If the true label is available, evaluating the model is relatively straightforward: compare the predicted class with the expected class and measure performance across the dataset.</p><p>Now consider a generative AI setup.</p><p>Instead of predicting from a fixed set of labels, a Large Language Model generates natural-language responses. Language is inherently flexible: the same idea can be expressed in multiple ways, using different words, sentence structures, levels of detail, and styles, while still remaining correct.</p><p>LLMs add another layer to this complexity. Their outputs can vary across models and, depending on decoding settings, even across repeated runs of the same model for a given user input. Two responses may look very different at the surface level while conveying essentially the same meaning.</p><p>This is where the evaluation challenge begins.</p><p>Suppose we define one or two reference answers as ground truth and evaluate generated responses primarily through exact or lexical overlap. A valid response may use different wording from the reference while preserving the correct meaning. If the evaluation method cannot recognize that equivalence, we may incorrectly conclude that the LLM setup is underperforming when the real limitation lies in how we chose to evaluate it.</p><p>This changes the question we are asking.</p><p>Instead of simply asking: <strong><em>Is this LLM setup good or bad?</em></strong></p><p>we may first need to ask: <strong><em>Good or bad according to whom — or according to what?</em></strong></p><p>A static reference answer? An automated metric? A human evaluator? Another LLM acting as a judge?</p><p>This is the evaluation shift. For many generative AI applications, evaluation is no longer only about comparing a prediction against a fixed target. It is also about deciding what constitutes a good response, which dimensions of quality matter for the task, and which evaluator we trust to measure them.</p><p><strong>Quality Definition</strong></p><p>When we say that an LLM is performing at a “good quality,” it is important to first define what <em>quality</em> actually means for the application being evaluated.</p><p>Are we assessing whether the response is factually correct? Contextually relevant? Complete? Helpful? Well-written? Safe? Or some combination of these dimensions?</p><p>A single response may perform very differently across the identified dimensions. For example, an answer may be factually correct but incomplete, contextually relevant but poorly written, or helpful while containing claims that cannot be reliably verified.</p><p>Therefore, before choosing an evaluator or an evaluation method, we must first define what quality means for the specific LLM application. Without clearly defined quality dimensions, an evaluation score may appear precise while measuring something different from what actually matters.</p><p><strong>Judge Disagreement</strong></p><p>Once we have defined what quality means for an LLM application, the next question is — who evaluates it?</p><p>Consider the same LLM response being evaluated by a human, an automated scoring method, and another LLM acting as a judge. Would all of them evaluate the response in the same way? Not necessarily.</p><p>A human may find the response helpful and relevant, while an automated scoring method may assign it a lower score based on what it is designed to measure. Similarly, an LLM judge may arrive at a different evaluation based on the model used, the instructions provided to it, or the criteria against which it is asked to judge. Even two human evaluators may disagree based on their understanding, expertise, or expectations from the response.</p><p>So, even after defining what quality means, we still have another challenge to handle — different evaluators may judge the same response differently.</p><p>This leaves us with an important question: when the evaluators disagree, whose judgment should we trust?</p><p><strong>Evaluation Scale</strong></p><p>Now, if humans are good evaluators for LLM applications, can we really scale human evaluation to thousands or even millions of responses? Evaluating such large volumes manually would be extremely time-consuming and cost-inefficient.</p><p>On the other hand, automated evaluation methods can scale easily, are faster, and are generally more cost-efficient. However, they may be limited by what they are specifically designed to measure.</p><p>When LLM-based evaluation is considered, it offers scalability and flexibility, but also introduces an important challenge — how reliable is the LLM acting as a judge?</p><p>So, when evaluating LLM applications, there is often a trade-off. Human evaluation may provide better judgment and context but can be difficult to scale. Automated evaluation can be fast and cost-efficient but may be limited in what it captures. LLM-based evaluation can offer both scale and flexibility but brings questions around judge reliability.</p><p>Therefore, choosing an evaluation approach is not simply about finding the “best” evaluator. It is about understanding which trade-offs we are willing to accept for the LLM application being evaluated.</p><p><strong>Context Dependence</strong></p><p>Then again, we have yet another challenge — the definition of a “good” response changes depending on the LLM application at hand.</p><p>For instance, in creative writing, originality and innovative ideas may matter more. In a medical application, factual correctness and safety become critical. For a customer support application, successful resolution of the user’s issue may matter more than how creatively the response is written.</p><p>This means that the same evaluation criteria cannot be applied equally across all LLM applications. A metric that is useful for evaluating one application may fail to capture what actually matters for another.</p><p>This creates another layer of complexity when designing an evaluation approach. We not only need to decide how to evaluate an LLM response, but also which dimensions and metrics are meaningful for the specific application being evaluated.</p><p>Therefore, a single evaluation metric cannot be universally chosen for every LLM application. The evaluation strategy must be aligned with what “good” actually means in the context of the application at hand.</p><p><strong>Conclusion</strong></p><p>Evaluating an LLM application, therefore, is not simply about choosing a metric and measuring a score. As we have seen, the challenge begins with defining what a “good” response means, deciding who or what should evaluate it, understanding how reliable that evaluator is, handling the trade-off between quality and scale, and ensuring that the evaluation approach actually aligns with the application at hand.</p><p>A response considered good by one evaluator may not be considered equally good by another. An evaluation method that works well for one application may not capture what matters for another. And an approach that provides nuanced judgment may not always be practical when evaluation needs to scale to thousands or millions of responses.</p><p>This is why LLM evaluation is less about finding one universally correct metric and more about designing an evaluation strategy that fits the purpose, context, scale, and risk of the application.</p><p>So perhaps the question is not simply:</p><p><strong><em>“How good is this LLM?”</em></strong></p><p>but rather:</p><p><strong><em>“Good for what purpose, according to whom, and measured in what way?”</em></strong></p><p>That, in many ways, is where the real challenge of evaluating LLM applications begins.</p><h4>References</h4><p><a href="https://arxiv.org/html/2406.03339v2">The Challenges of Evaluating LLM Applications: An Analysis of Automated, Human, and LLM-Based Approaches</a></p><p><a href="https://arxiv.org/pdf/2310.19736">Evaluating Large Language Models: A Comprehensive Survey</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ba6c2828ab0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Credit Default Risk]]></title>
            <link>https://medium.com/@sarabhalerao25/home-credit-default-risk-a1a56ee66f35?source=rss-40ba5e9392cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1a56ee66f35</guid>
            <category><![CDATA[homecredit]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sneha Bhalerao]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 01:57:58 GMT</pubDate>
            <atom:updated>2022-03-17T01:57:58.345Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine Learning Project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*iVasqqrYdh59bHirpYxYoQ.png" /></figure><p>Index</p><ol><li>Introduction</li><li>Business Problem</li><li>ML Formulation of the Business Problem</li><li>Business Constraints</li><li>Dataset Details</li><li>Performance Metrics</li><li>Exploratory Data Analysis</li><li>Feature Engineering</li><li>Model Building</li><li>Comparison of models</li><li>Conclusion</li><li>Introduction:</li></ol><p>Banks manage the flow of money between people and businesses. They use the money deposited in the banks by their customers (people/institutions) to offer loans to clients (people/business/institutions). They charge an interest rate on the loans given and part of this interest rate is given to the money depositors in the bank keeping the rest with itself. They also charge money for the various products they offer to the clients. These two are the basic source of money input to the banks. Lending loans is therefore an essential part of the business.</p><p>2. Business Problem:</p><p>As the banks working depends on the interest earned from the loans, it is of utmost importance that the borrowers repay the loan timely else the banks will have to bear the huge losses. Therefore, it is important to calculate the risk associated with lending money to a borrower. So that banks can make better-informed decisions while lending money to the borrowers.</p><p>Terms:</p><p>Credit risk: It is the risk of a counterparty defaulting on payment obligations. Credit risk is split up into several “credit risk components” — Default risk, Migration risk, Exposure Risk, Loss given default, counterparty risk.</p><ol><li>Default risk: It is the risk that borrowers default, meaning that they fail to comply with their obligations to service debt.</li><li>Exposure Risk: Exposure commonly designates the magnitude of the amount subject to risk. For a loan, it would be equal to the amount due plus interest accrued.</li><li>LGD(Loss given default): the actual loss the bank bears in case of failure to make the repayments by the borrower.</li><li>Migration risk: The direct or indirect losses caused due to the internal/external ratings downgrade/upgrade as well as those that may arise from credit migration events.</li></ol><p>We will be looking at the credit default risk for this problem statement.</p><p>3. ML formulation of the business problem:</p><p>There are various factors in determining the credit risk of a borrower:</p><ol><li>Probability of default: the probability that borrower will not be able to make timely payments of installments</li><li>Loss given default: loss that the bank may have to bear in case the borrower goes bankrupt.</li></ol><p>These are calculated manually by the banks for every loan application and then the decision to lend money is made. We need to automate this process using machine learning models by looking at the various parameters from the history of loans of the borrower.</p><p>Objective: To predict if the borrower will default on the loan repayments.</p><p>4. Business constraints:</p><ol><li>No low latency requirements (10 sec to 2 mins is also fine): We can wait up to a day or so to analyze if the loan should be approved. Therefore there are no low latency requirements.</li><li>Interpretability is partially required: Since we are not dealing with the medical domain problem statement we are not much concerned with interpretability. We can give feature importance.</li><li>The probability of each class is required: Since it will give more insight into the probability of the applicant being a defaulter. For example, if we have two applicants with probability 0.56 and 0.45, even though the distance between them is low one is classified as a defaulter and the other is not with a 0.5 threshold which can be misleading. Hence if we give probability instead of 0/1 depending on some threshold and let the business come up with the thresholding logic it will aid in making more clear decisions.</li><li>Very low error: As errors can be costly (for example a borrower is given 1MUSD and he defaults the bank can go bankrupt in some cases. So errors can become very costly for the banks)</li></ol><p>5. Dataset Details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s6uRljTMIgyBCD1ok4gfrg.png" /></figure><p>a] application_{train|test}.csv: This is the main table, broken into two files for Train (with TARGET) and Test (without TARGET).Static data for all applications. One row represents one loan in our data sample.</p><p>b] bureau.csv: All client’s previous credits provided by other financial institutions that were reported to Credit Bureau (for clients who have a loan in our sample). For every loan in our sample, there are as many rows as the number of credits the client had in the Credit Bureau before the application date.</p><p>c] bureau_balance.csv: Monthly balances of previous credits in Credit Bureau.</p><p>d] POS_CASH_balance.csv: Monthly balance snapshots of previous POS (point of sales) and cash loans that the applicant had with Home Credit.</p><p>e] credit_card_balance.csv: Monthly balance snapshots of previous credit cards that the applicant has with Home Credit.</p><p>f] previous_application.csv: All previous applications for Home Credit loans of clients who have loans in this sample. There is one row for each previous application related to loans in this data sample.</p><p>g] installments_payments.csv: Repayment history for the previously disbursed credits in Home Credit related to the loans in our sample.</p><p>There is a) one row for every payment that was made plus,</p><p>b) one row each for a missed payment. One row is equivalent to one payment of one installment OR one installment corresponding to one payment of one previous Home Credit credit related to loans in our sample.</p><p>6. Performance Metrics:</p><p>Since our data is imbalanced we will have to use F1-score, AUC score, or log-loss. We will be using AUC (Area under the curve) as the performance metric.</p><p>7. Exploratory Data Analysis:</p><ul><li>TARGET Column: The target column tells if the client actually defaulted or not. The type of data it contains is 1s and 0s. 1 stands for defaulted and 0 for non-defaulter.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*tZLQIQQvCGgpJYKCL_S3HQ.png" /></figure><p>As seen from the snipped the target column is highly imbalanced. 8:92 ratio of imbalance is present.</p><ul><li>NAME_CONTRACT_TYPE Column: This column tells the type of contract between the bank and the client. It has two types: Cash Loans and Revolving Loans. The distribution of the loans according to contract type is as shown below. The left figure indicates 0/1(non-defaulter/defaulter ) in the customer base of the bank.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*4QSAZKGv9lXsRIiEB5E-rQ.png" /></figure><ul><li>CODE_GENDER Column: It tells about the gender of the client. It has three values: M- Male, F- Female, XNA- other/does not wish to specify.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*m7W0mpcXzw1izipaazlwJQ.png" /></figure><ul><li>Age: The Age field is given in terms of days elapsed. So we have feature engineered and created a column Age: Age in years. Below is the distribution of the column. As seen from the boxplot there are no outliers in the column as also this feature has some level of impact on the distribution when the TARGET column is considered. We have also printed the percentiles to see the variation in the column values from 75 to 99 percentiles.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*iQazVPjmCiOvE-SOPd2F4A.png" /></figure><p>HOUR_APPR_PROCESS_START Column: This column contains the time at which the process began. Therefore it contains values from 00 to 23. The distribution of data is as below. Most of the applications started from 9 to 16 times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*Q4wcXIz-dq-k7PjSNDzKvw.png" /></figure><p>We have made similar analysis on other Categorical and Numerical features.</p><ul><li>Interaction of numerical fields attributing the asset value. We have dropped the MAX, MEAN, MIN columns as they all will have high correlations. We have therefore retained only the median columns. The correlation of these retained columns is as below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*fw6hCStCfI-9W8KiWf3Q3A.png" /></figure><p>The Elevators_medi, Apartments_medi, LivingApartments_medi and livingArea_medi were highly correlated. So we have clubbed them to create a single column named: GRPAPT_MEDI as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElrVtpqADnD71NtIU9QNOA.png" /></figure><p>8. Feature Engineering<br>Contactinfoflag: Multiple flag type columns were aggregated and the total number of Yes flags count was captured in a single variable.</p><p>Total Income To Credit Ratio: The total income of the person was divided by the credit of the person. similar other columns were derived like Annuity to credit ratio.</p><p>The Aggregation of all the previous application files, installments, credit bureau files was done for the numeric type columns. The Median column of all the aggregated columns was retained to avoid correlation issues in the dataset.</p><p>9. Model Building:</p><p>The below models were built for the dataset:</p><ol><li>Logistic Regression</li><li>Decision Tree</li><li>RandomForest Classifier</li><li>AdaBoostClassifier</li><li>LightGBM</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*xdjnmawUrFfcG1t9VPEJeA.png" /><figcaption>Train-Test AUC plot</figcaption></figure><p>As observed from the figure the LightGBM performed very well compared to the other algorithms and was selected for the final model building with the final AUC score being 0.77.</p><p>Here Response encoded vectors were used for LightGBM, RandomForest, Adaboost, and Decision Tree Classifier. OneHotEncoded vectors were used for the Logistic Regression model.</p><p>Conclusion:</p><p>We can build a machine learning model to automate the Loan Approval process to some extent. This can be done using the LightGBM final model built for this case study. The Gradient boosting algorithms clearly out-perform the other algorithms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1a56ee66f35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types of Probability — Part II]]></title>
            <link>https://medium.com/@sarabhalerao25/types-of-probability-part-ii-9a4b5f52fbc8?source=rss-40ba5e9392cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a4b5f52fbc8</guid>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[Sneha Bhalerao]]></dc:creator>
            <pubDate>Sun, 26 Dec 2021 03:33:00 GMT</pubDate>
            <atom:updated>2026-01-07T10:04:56.903Z</atom:updated>
            <content:encoded><![CDATA[<h3>Types of Probability — Part II</h3><p>In the last blog we learnt about the basics of probability. You may refer the last blog <a href="https://medium.com/@sarabhalerao25/introduction-to-probability-part-i-9f9e0a7e1710">here</a>. In this blog we will dive deep into the types of probability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNRWcrym48atPAjlSKDTdg.jpeg" /><figcaption>Image by <a href="https://www.freepik.com/free-vector/white-3d-isolated-realistic-dice-casino-game-vector-icon-backgammon-lucky-cube-roll-with-1-6-two-dot-number-random-rolling-square-luck-choice-poker-gaming-entertainment-illustration_69988743.htm#fromView=search&amp;page=1&amp;position=3&amp;uuid=70690275-0bc9-490a-b4d7-10b7328b4b6e&amp;query=Dice+clipart">upklyak</a> on Freepik</figcaption></figure><h3>Types of Probability:</h3><ol><li>Classical</li><li>Empirical</li><li>Subjective</li><li>Axiomatic</li></ol><h4>Classical Probability</h4><p>In Classical approach we consider that every outcome of the experiment is equally likely. And therefore we deduce the probability of each of these outcomes to be (1/number of outcomes)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*metkTzpL5qaYZcVpaKXMRA.png" /></figure><p>Example:</p><p>Experiment: Rolling a fair dice</p><p>S= {1,2,3,4,5,6}</p><p>P(X=1)=1/6</p><p>P(X=5)=1/6</p><p>Classical probability is also called as a priori or theoretical probability.</p><h4>Empirical Probability</h4><p>Empirical probability we calculate the probability of each outcome by looking at the historical data, i.e. Given an experiment is performed “N” number of times and a outcome “m” has occurred 5 times then P(outcome m)=5/N</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*7N8VD5SeztTSIQArOjhbeQ.png" /></figure><p>Example</p><p>Experiment : Rolling a fair dice 10 times we get result set as below —</p><p>result set={2,3,4,5,6,1,2,4,2,5}</p><p>P(X=2)=3/10</p><p>Empirical probability is also called as experimental probability.</p><h4>Subjective Probability</h4><p>In Subjective approach the probability of an outcome occurring is based completely on the person’s belief system and experience.</p><p>Example</p><p>The stock market analyst takes decisions about the stokes based on his feelings and past experiences to release or hold the stocks. He is therefore using subjective probability.</p><h4>Axiomatic Probability</h4><p>In Axiomatic approach the probability is calculated considering the below 3 axioms.</p><ol><li>For any event/outcome the smallest probability is 0 and largest probability is 1 i.e. 0≤P(X)≤1</li><li>For event/outcome which is certain has a probability of 1.</li><li>The probability of the union of mutually exclusive events is the sum of the individual probabilities of those events. P(AUB)=P(A)+P(B) given A and B are mutually exclusive events.</li></ol><p>References</p><p>What is probability: <a href="https://web.ma.utexas.edu/users/mks/statmistakes/probability.html">https://web.ma.utexas.edu/users/mks/statmistakes/probability.html</a></p><p>Types of probability: <a href="https://www.indeed.com/career-advice/career-development/types-of-probability">https://www.indeed.com/career-advice/career-development/types-of-probability</a></p><p>Empirical probability: <a href="https://corporatefinanceinstitute.com/resources/knowledge/other/empirical-probability/">https://corporatefinanceinstitute.com/resources/knowledge/other/empirical-probability/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a4b5f52fbc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Probability — Part I]]></title>
            <link>https://medium.com/@sarabhalerao25/introduction-to-probability-part-i-9f9e0a7e1710?source=rss-40ba5e9392cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f9e0a7e1710</guid>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[basic-of-probability]]></category>
            <dc:creator><![CDATA[Sneha Bhalerao]]></dc:creator>
            <pubDate>Sat, 25 Dec 2021 06:11:32 GMT</pubDate>
            <atom:updated>2026-01-07T10:02:45.686Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Probability — Part I</h3><p>A brief introduction to probability basic concepts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vZmpZVQ6p1PeEykUmGTNQ.jpeg" /><figcaption>Image by <a href="https://www.freepik.com/free-vector/cartoon-dice_59539182.htm#fromView=search&amp;page=1&amp;position=0&amp;uuid=70690275-0bc9-490a-b4d7-10b7328b4b6e&amp;query=Dice+clipart">juicy_fish</a> on Freepik</figcaption></figure><h3>What is Probability</h3><p>When you do an experiment you get a certain set of outcomes. The certainty with which you can tell the possibility of getting a particular outcome is called Probability.</p><h3>What is an Experiment</h3><p>When you perform a certain procedure / task under controlled conditions which are always pre-planned then it is called an experiment.</p><p>Example :</p><ol><li>Experiment : Rolling a fair dice for 500 times</li><li>Experiment : Tossing three fair coins for 10000 times.</li></ol><h3>What is Sample Space</h3><p>When you perform an experiment you get some outcome. The set of all possible outcomes of an experiment is called Sample Space.</p><p>Example:</p><ol><li>Experiment : Rolling a fair dice</li></ol><p>Sample Space(S)={1,2,3,4,5,6}</p><ol><li>Experiment : Tossing three fair coins</li></ol><p>Sample Space(S) = {HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}</p><h3>What is an Event</h3><p>An event is defined as certain collection of outcomes of an experiment. It is also called the subset of the Sample Space.</p><p>Example:</p><ol><li>Experiment : Rolling a fair dice</li></ol><p>Event A : Getting an even numbered outcome from S. A = {2,4,6}</p><p>Event B : Getting a number divisible by 3 from S. B = {3,6}</p><p>2. Experiment : Tossing three fair coins</p><p>Event A : Getting at-least 2 heads in the outcome.</p><p>A={HHH,HHT,HTH,THH}</p><p>Event B : Getting all tails.</p><p>B= {TTT}</p><h3>What is AND vs OR Probability</h3><p>Lets step back and think of the logical AND and OR operators:</p><ol><li>Logical And : When the outcome satisfies both conditions at the same time.</li></ol><p>2. Logical OR : When the outcome satisfies either or both of the conditions in question at a given time.</p><p>Let us understand the relevance in Probability through an example:</p><p>Example</p><ol><li>Experiment : Draw a card from the deck of 52 cards.</li></ol><p>A] AND</p><p>Sample Space S= {Spades, Diamonds, Hearts, Clubs}</p><p>Event A = {Diamonds, Spades}</p><p>Event B = {Black colored cards} = {Spades, Clubs}</p><p>A and B = {Spades }</p><p>B] OR</p><p>Event A = {Diamonds, Spades}</p><p>Event B = {Black colored cards}</p><p>A OR B = {Spades, Clubs, Diamonds}</p><h4>References</h4><p>Basic Statistics : <a href="https://www.shmoop.com/study-guides/math/basic-statistics-probability/and-or-probability">https://www.shmoop.com/study-guides/math/basic-statistics-probability/and-or-probability</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f9e0a7e1710" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>