<?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 sriram joshi on Medium]]></title>
        <description><![CDATA[Stories by sriram joshi on Medium]]></description>
        <link>https://medium.com/@sriramjoshi96?source=rss-3061c1614e29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MVgSwY0ZkG6_lvh0.</url>
            <title>Stories by sriram joshi on Medium</title>
            <link>https://medium.com/@sriramjoshi96?source=rss-3061c1614e29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:32:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sriramjoshi96/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[probability]]></title>
            <link>https://medium.com/@sriramjoshi96/probability-bc4650edff66?source=rss-3061c1614e29------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc4650edff66</guid>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[sriram joshi]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 06:52:40 GMT</pubDate>
            <atom:updated>2024-03-13T06:52:40.881Z</atom:updated>
            <content:encoded><![CDATA[<p>[(!) first what is probability and with example</p><p>PROBABILITY: Pprobability is a branch of mathematics deals of likehood or chance of events occurring . it is expressed as a number between 0 and 1,indicates and impossible event 1 indicates a certain event and values represent likehood on a of a happening .</p><p>The probability (P) of an event A is calculated using the formula:</p><p><em>P</em>(<em>A</em>)=Total number of possible outcomesNumber of favorable outcomes for A​/Total number of possible outcomes]</p><p>[example to probability</p><p>number of red candies:</p><p>count how many red candies are there in bag lets say they are 5 red candies in the bag.</p><p>total number of candies in the bag. regardless of colour they are 10 candies are total.</p><p>2)NOW IAM CALCULATEING PROBILITY:</p><p>now calculate the probability of getting red candies by dividing number of candies by total number of candies 5/10,</p><p>1/2 is Express as a Fraction or Decimal(0.5) the probability of getting red candy is 1/2 or (0.5),]</p><p>If the probability of getting a red candy is 1221​, it means that for every 2 candies you pick, 1 of them is expected to be red.</p><p>[*(3)Probability theory is widely used in various fields, including (a)statistics,(b) finance, © physics, and (d)computer science,(e) Medicine and Biology (f)Engineering(g)Economics(h)Weather Forecasting(i)Sports and Games(j)Quality Control and Manufacturing:</p><p>*(a)statistics:Probability forms the foundation of statistics. It helps statisticians make inferences about populations based on samples. Concepts like probability distributions, mean, standard deviation, and hypothesis testing rely on probability theory.</p><p>*(b)Finance:In finance, probability is used in risk management and investment decision-making. Financial analysts use probability to assess the likelihood of different market outcomes and determine the associated risks. example(stock market)</p><p>*©Physics:Quantum mechanics heavily relies on probability theory. The behavior of particles at the quantum level is often described using probability distributions, and the concept of probability amplitude is fundamental to understanding quantum phenomena.</p><ul><li>*(d)Computer Science:Probability is essential in algorithms and artificial intelligence. It is used in machine learning algorithms, game theory, cryptography, and random number generation. Probability models help computers make decisions and predictions.</li><li>*(e)Medicine and Biology:Probability is used in medical research to assess the effectiveness of treatments and predict the likelihood of certain health outcomes. In genetics, probability is employed to analyze the likelihood of specific traits or diseases occurring in individuals.</li><li>*(f)Engineering:Reliability engineering uses probability to assess the likelihood of system failures. Engineers use probability models to design reliable systems and predict their performance over time</li><li>*(g)Economics:Probability is applied in economics to model uncertainties and risks associated with economic decisions. It helps economists analyze and make predictions about market behavior and economic outcomes.</li><li>*(h)Weather Forecasting:Meteorologists use probability to create weather forecasts. They assess the likelihood of different weather conditions occurring based on historical data, current conditions, and sophisticated models.</li><li>*(i)Sports and Games:Probability is used in sports analytics to evaluate player performance, predict game outcomes, and optimize strategies. In games of chance, such as poker or casino games, probability is crucial for making informed decisions.</li><li>*(j)Quality Control and Manufacturing:Probability is applied in quality control to assess the likelihood of defects in a manufacturing process. It helps ensure products meet certain quality standards by understanding and managing variation.]</li><li>[NOW IAM EXPERMENT FOR PROBABILITY:</li><li>IAM PLAYING LUDO GAME IN LUDO GAME THE DICE IS EXPREMENT</li><li>ROLL THE DIE</li><li>in die there are 1,2,3,4,5,6 are outcome ,</li><li>Hypothesize:Make predictions about which numbers you think are more likely to appear and why. For example, is each number equally likely to occur.</li><li>Roll the Die:Roll the die multiple times. Record the result of each roll.</li><li>Count and Analyze:Count how many times each number appears. Create a tally or a table to organize your results</li><li>Calculate Probability:he formula is p = Number of favorable outcomes/total number of outcoms</li><li>Compare with Hypothesis:Compare your calculated probabilities with your initial predictions. Were there any surprises?</li><li>Repeat:Repeat the experiment several times to see if the probabilities stabilize with more trials.</li><li>*experiment allows you to explore the concept of probability through a hands-on activity, helping you understand how theoretical probabilities relate to actual outcomes in a real-world scenario.]</li><li>[EVENT :</li><li>(A)Simple Event:</li><li>Rolling a die and getting a 3.</li><li>Flipping a coin and it landing on heads.</li><li>Drawing a card from a standard deck and getting the ace of spades.</li><li>(B)Compound Event:</li><li>Rolling a die and getting an even number (2, 4, or 6).</li><li>Flipping a coin twice and getting heads on both flips.</li><li>Drawing two cards from a standard deck and getting a red card and a heart.]</li><li>SAMPLE SPACE:Tossing a Coin:</li><li>Sample space (�<em>S</em>): {Heads (H), Tails (T)}</li></ul><ol><li>Rolling a Six-Sided Die:</li></ol><ul><li>Sample space (�<em>S</em>): {1, 2, 3, 4, 5, 6}</li></ul><ol><li>Drawing a Card from a Deck:</li></ol><ul><li>Sample space (�<em>S</em>): {Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King} (for each suit)</li></ul><ol><li>Flipping a Coin Twice:</li></ol><ul><li>Sample space (�<em>S</em>): {(H, H), (H, T), (T, H), (T, T)} (each outcome is a pair representing the result of the first and second flips)]</li><li>(2)(A)Empirical Probability:Also known as experimental probability, it is based on actual observations and data obtained through experiments or real-world events. It is calculated by counting the occurrences of an event and dividing by the total number of trials.</li><li>(B)Theoretical Probability:This is the probability calculated using mathematical principles and assumptions. It is based on the assumption of equally likely outcomes in an idealized or theoretical situation.</li><li>Calculation:Empirical Probability: Based on observed frequencies. It is calculated as the number of favorable outcomes divided by the total number of trials conducted.</li><li>Theoretical Probability: Derived from the theoretical model of the experiment. It is calculated as the number of favorable outcomes divided by the total number of possible outcomes.</li><li>Reliability:Empirical Probability: Relies on actual data, making it applicable to real-world situations. It may vary depending on the specific events observed.</li><li>Theoretical Probability: Assumes ideal conditions and equal likelihood of outcomes, making it more applicable to theoretical or hypothetical scenarios.</li><li>EXAMPLE:Suppose you toss a fair coin 50 times, and you observe 30 heads. The empirical probability of getting heads is 3050=0.65030​=0.6.</li><li>The theoretical probability of getting heads in a fair coin toss is 12=0.521​=0.5.</li><li>Empirical Probability vs. Theoretical Probability:</li></ul><ol><li>Definition:</li></ol><ul><li>Empirical Probability: Also known as experimental probability, it is based on actual observations and data obtained through experiments or real-world events. It is calculated by counting the occurrences of an event and dividing by the total number of trials.</li><li>Theoretical Probability: This is the probability calculated using mathematical principles and assumptions. It is based on the assumption of equally likely outcomes in an idealized or theoretical situation.</li></ul><ol><li>Calculation:</li></ol><ul><li>Empirical Probability: Based on observed frequencies. It is calculated as the number of favorable outcomes divided by the total number of trials conducted.</li><li>Theoretical Probability: Derived from the theoretical model of the experiment. It is calculated as the number of favorable outcomes divided by the total number of possible outcomes.</li></ul><ol><li>Reliability:</li></ol><ul><li>Empirical Probability: Relies on actual data, making it applicable to real-world situations. It may vary depending on the specific events observed.</li><li>Theoretical Probability: Assumes ideal conditions and equal likelihood of outcomes, making it more applicable to theoretical or hypothetical scenarios.</li></ul><ol><li>Example:</li></ol><ul><li>Suppose you toss a fair coin 50 times, and you observe 30 heads. The empirical probability of getting heads is 3050=0.65030​=0.6.</li><li>The theoretical probability of getting heads in a fair coin toss is 12=0.521​=0.5.</li></ul><p>Law of Large Numbers:</p><p>The Law of Large Numbers states that as the number of trials or experiments increases, the empirical probability of an event approaches the theoretical probability. In other words, with a sufficiently large number of trials, the observed frequencies will converge to the expected probabilities.</p><ul><li>Empirical Probability and Law of Large Numbers:.</li><li>The Law of Large Numbers explains why empirical probabilities tend to converge to theoretical probabilities with more trials. As you conduct more experiments or trials, the observed frequencies become more representative of the underlying probabilities.</li></ul><p>.Theoretical Probability and Law of Large Numbers:</p><ul><li>The Law of Large Numbers supports the theoretical framework by indicating that, in the long run, observed frequencies will align with the expected probabilities under ideal conditions.</li></ul><p>(3)RANDOM VARIABLE:A random variable is a mathematical concept used in probability theory and statistics to represent and quantify uncertain outcomes of a random experiment or process. It assigns numerical values to each possible outcome in the sample space of an experiment, providing a way to model and analyze random phenomena.</p><p>THEY ARE TWO TYPES OF RANDOM VARIABLE :</p><p>A( discrete)Discrete Random Variable:</p><ul><li>Takes on a countable number of distinct values.</li><li>The probability distribution is described using a probability mass function (PMF).</li></ul><p>B( continuous.)Continuous Random Variable:Can take any value within a specified range.</p><ul><li>The probability distribution is described using a probability density function (PDF).</li><li>(PMF) probability mass function .</li><li>(PDF)probability density function.</li><li>Discrete Random Variable: example (The number of heads in three coin tosses, which can take values 0, 1, 2, or 3.)</li><li>Continuous Random Variable:example(The height of a person, which can take any value within a given range)</li><li>random variable typical denoted by capital letters X,Y,Z</li><li>EXAMPLE: xample: Consider the experiment of rolling a six-sided die. Let �<em>X</em> be the random variable representing the outcome of the die roll. The sample space is {1,2,3,4,5,6}{1,2,3,4,5,6}. The random variable �<em>X</em> could be defined as follows:</li><li><em>X</em>(outcome)=outcome</li><li>f the die shows a 3, then �=3<em>X</em>=3.</li><li>If the die shows a 6, then �=6<em>X</em>=6.</li><li>Probability Distribution:A probability distribution for a random variable specifies the probabilities associated with each possible value of the variable. For a discrete random variable, this is given by a probability mass function (PMF), while for a continuous random variable, it is given by a probability density function (PDF).</li><li>(4)WHAT ARE THE AXOIMS OF PROBALITY</li></ul><p>Non-negativity Axiom:For any event <em>A</em>, the probability of <em>A</em> is always greater than or equal to zero:<em>P</em>(<em>A</em>)≥0</p><ul><li>This axiom ensures that probabilities are non-negative values.</li><li>Normalization (Probability Mass Function) Axiom:The probability of the entire sample space (<em>S</em>) is equal to 1: ()=1<em>P</em>(<em>S</em>)=1</li><li>This axiom ensures that the sum of probabilities for all possible outcomes covers the entire range of possibilities.</li><li>Additivity Axiom (or Sigma Additivity):For any mutually exclusive events �1,�2,…<em>A</em>1​,<em>A</em>2​,…, the probability of the union of these events is equal to the sum of their individual probabilities:</li><li><em>P</em>(<em>A</em>1​∪<em>A</em>2​∪…)=<em>P</em>(<em>A</em>1​)+<em>P</em>(<em>A</em>2​)+…</li><li>This axiom ensures that probabilities combine appropriately for events that cannot happen at the same time.</li><li>These axioms provide a solid mathematical foundation for working with probabilities and form the basis for further development of probability theory. They help ensure consistency and coherence in the mathematical treatment of uncertain events.</li><li>PROVIDE EXAMPLES TO ILLUSTRATE THE FLLOWING TYPES OF PROBABILITY</li><li>(a)INDEPENDENT EVENTS</li><li>(b)DEPENDENT EVENTS</li><li>©mutually exclusive events</li><li>(d)conditional probability</li><li>(e)joint probability</li><li>(a)INDEPENDENT EVENTS:In probability theory, two events are considered independent if the occurrence of one event does not affect the occurrence of the other. In other words, the outcome of one event provides no information about the outcome of the other event. Mathematically, two events A and B are independent if the probability of their intersection (both events occurring) is the product of their individual probabilities.</li><li>he definition of independent events can be expressed as follows:</li><li>P(A∩B)=P(A)⋅P(B)</li><li>Multiplication Rule for Independent Events:</li><li>For independent events A and B, the probability of both events occurring is the product of their individual probabilities.</li><li><em>P</em>(<em>A</em>∩<em>B</em>)=<em>P</em>(<em>A</em>)⋅<em>P</em>(<em>B)</em></li><li>example :Tossing a Coin and Rolling a Die</li><li>A: Tossing a fair coin and getting heads.</li><li>B: Rolling a fair six-sided die and getting a 4</li><li>These events are independent because the outcome of tossing the coin doesn’t affect the outcome of rolling the die.</li><li>p(<em>A</em>∩<em>B</em>)=<em>P</em>(Heads)⋅<em>P</em>(Rolling a 4)=1\2.1\6=1\12</li><li>Example:</li><li>Consider the events:</li><li>A: Drawing an Ace from a standard deck of cards.</li><li>B: Drawing a King from the same deck.</li><li>These events are independent because the occurrence of drawing an Ace doesn’t impact the probability of drawing a King, and vice versa</li><li>p(<em>A</em>∩<em>B</em>)==<em>P</em>(Ace)⋅<em>P</em>(King)=1\13​⋅1\13​=169</li><li>Independence is often denoted as <em>A</em>⊥<em>B</em> orc<em>A</em>⊥⊥<em>B</em></li><li>Independence is a crucial concept in probability theory and statistics, and it plays a fundamental role in various probability calculations and statistical analyses.</li><li>(b)DEPENDENT EVENTS:In probability theory, events are considered dependent if the occurrence or non-occurrence of one event influences the occurrence or non-occurrence of another event. In other words, the outcome of one event provides information about the outcome of the other event. Mathematically, two events A and B are dependent if the probability of one event changes based on the occurrence or non-occurrence of the other.</li><li>The definition of dependent events can be expressed as follows:</li><li>p(<em>A</em>∩<em>B</em>)=<em>P</em>(<em>A</em>∣<em>B</em>)⋅<em>P</em>(<em>B</em>)</li><li>(b)Conditional Probability:For dependent events A and B, the probability of both events occurring is expressed in terms of conditional probability and the probability of the second event:</li><li><em>P</em>(<em>A</em>∩<em>B</em>)=P(A|B).P(B)</li><li><em>P</em>(<em>A</em>∣<em>B</em>) represents the probability of event A occurring given that event B has occurred</li><li>example: Consider the events:</li><li>A: Drawing an Ace from a standard deck of cards on the first draw.</li><li>B: Drawing a King from the same deck on the second draw without replacement.</li><li>These events are dependent because the probability of drawing a King on the second draw is influenced by the outcome of the first draw.</li><li><em>P</em>(<em>A</em>∩<em>B</em>)=<em>P</em>(Ace on the first draw)⋅<em>P</em>(King on the second draw∣Ace on the first draw)</li><li>=4/52.4/51</li><li>: Weather Events:</li><li>Consider the events:</li><li>A: Rain tomorrow.</li><li>B: Rain the day after tomorrow</li><li>These events might be dependent because if it rains tomorrow, it could influence the likelihood of rain the day after tomorrow.</li></ul><p>Understanding whether events are dependent or independent is crucial for accurately modeling and predicting outcomes in various fields, including statistics, finance, and decision-making scenarios.</p><ul><li>©mutually exclusive events:<strong>Mutually exclusive events, also known as disjoint events, are events that cannot occur at the same time. In other words, the occurrence of one event implies the non-occurrence of the other, and vice versa. Mathematically, two events A and B are mutually exclusive if their intersection is an empty set:</strong></li><li><em>A</em>∩<em>B</em>=∅</li><li>Intersection Rule:For mutually exclusive events A and B, the probability of the intersection of A and B is zero:<em>P</em>(<em>A</em>∩<em>B</em>)=0</li><li>A: Getting heads on a fair coin toss</li><li>B: Getting tails on the same coin toss</li><li>These events are mutually exclusive because it’s not possible to get both heads and tails on a single coin toss.</li><li><em>P</em>(<em>A</em>∩<em>B</em>)=0</li><li>understanding whether events are mutually exclusive is crucial when calculating probabilities because it affects how probabilities are combined. If events are mutually exclusive, the probability of either event occurring is the sum of their individual probabilities:</li><li><em>P</em>(<em>A</em>∪<em>B</em>)=<em>P</em>(<em>A</em>)+<em>P</em>(<em>B</em>)</li><li>(d)conditional probability:Conditional probability is the probability of an event occurring given that another event has already occurred. It is denoted by<em>P</em>(<em>A</em>∣<em>B</em>), which is read as “the probability of event A given event B.</li><li>the formala is conditional probability:</li><li><em>P</em>(<em>A</em>∣<em>B</em>)=<em>P</em>(<em>A</em>∩<em>B</em>)\P(B)</li><li><em>P</em>(<em>A</em>∣<em>B</em>): Conditional probability of event A given event B.​</li><li><em>P</em>(<em>A</em>∩<em>B</em>): Probability of both events A and B occurring.</li><li><em>P</em>(<em>B</em>): Probability of event B occurring.</li></ul><p>Interpretation:<em>P</em>(<em>A</em>∣<em>B</em>) represents the probability of event A happening given that event B has occurred.</p><p>Calculation:The conditional probability is calculated by dividing the probability of both events A and B occurring by the probability of event B occurring.</p><p>Example:Consider two events:</p><ul><li>A: Drawing an Ace from a deck of cards.</li><li>B: Drawing a red card from the same deck.</li><li>The conditional probability <em>P</em>(<em>A</em>∣<em>B</em>) is the probability of drawing an Ace given that the card drawn is red.</li><li><em>P</em>(<em>A</em>∣<em>B</em>)=<em>P</em>(<em>A</em>∩<em>B</em>)​\P(B)</li><li>p(A\B)=no of red aces/no of red cards</li><li>Multiplication Rule:The formula can be rearranged to give the multiplication rule for probability:<em>P</em>(<em>A</em>∩<em>B</em>)=<em>P</em>(<em>A</em>∣<em>B</em>)⋅<em>P</em>(<em>B</em>)</li><li>*Bayes’ Theorem:Bayes’ Theorem is a fundamental concept in probability theory named after the Reverend Thomas Bayes. It provides a way to update the probability of a hypothesis based on new evidence. The formula is expressed as</li><li><em>P</em>(<em>A</em>∣<em>B</em>)=<em>P</em>(<em>B</em>)<em>P</em>(<em>B</em>∣<em>A</em>)⋅<em>P</em>(<em>A</em>)​</li><li><em>P</em>(<em>A</em>∣<em>B</em>): Posterior probability — the probability of hypothesis A given the evidence B.</li><li><em>P</em>(<em>B</em>∣<em>A</em>): Likelihood — the probability of evidence B given that hypothesis A is true.</li><li><em>P</em>(<em>A</em>): Prior probability — the initial probability of hypothesis A before considering the evidence.</li><li><em>P</em>(<em>B</em>): Probability of the evidence B occurring.</li><li>Interpretation:Bayes’ Theorem allows us to update our belief in a hypothesis based on new evidence.</li><li>Prior Probability:</li><li><em>P</em>(<em>A</em>) represents our initial belief in the probability of hypothesis A before considering the evidence</li><li>Likelihood:<em>P</em>(<em>B</em>∣<em>A</em>) represents the probability of observing evidence B given that hypothesis A is true.</li><li>Posterior Probability:<em>P</em>(<em>A</em>∣<em>B</em>) represents the updated probability of hypothesis A given the evidence B.</li><li>Normalization:The denominator <em>P</em>(<em>B</em>) acts as a normalizing constant to ensure that the probabilities on the right side of the equation sum to 1</li><li>Hypothesis (A): It is a rainy day.</li><li>Evidence (B): Observing cloudy skies.</li><li>Now, let’s use Bayes’ Theorem to update our belief in the hypothesis that it’s a rainy day based on the observation of cloudy skies.</li><li><em>P</em>(Rain|Cloud)=<em>P</em>(Cloud)<em>P</em>(Cloud|Rain)⋅<em>P</em>(Rain)​</li><li><em>P</em>(Rain|Cloud): The updated probability that it is raining given the observation of cloudy skies.</li><li>(Cloud|Rain)<em>P</em>(Cloud|Rain): The probability of observing cloudy skies when it is raining (likelihood).</li><li>(Rain)<em>P</em>(Rain): The prior probability of it being a rainy day (before observing cloud cover).</li><li>(Cloud)<em>P</em>(Cloud): The probability of observing cloudy skies, irrespective of whether it’s raining or not.</li><li>(Cloud|Rain)=0.8<em>P</em>(Cloud|Rain)=0.8 (high likelihood of cloudy skies when it’s raining).</li><li>(Rain)=0.4<em>P</em>(Rain)=0.4 (prior belief that it is raining).</li><li><em>P</em>(Cloud)=0.6 (probability of observing cloudy skies).</li><li><em>P</em>(Rain|Cloud)=0.8*0.4/0.6=0.5333</li><li>this means that, based on observing cloudy skies, the updated probability that it is a rainy day is approximately 53.33%. Bayes’ Theorem helps us revise our belief in the hypothesis of rain given new evidence (cloudy skies) and our prior belief in the probability of rain.</li><li>(e)joint probability:Joint probability refers to the probability of the occurrence of two (or more) events at the same time. It is denoted as �(�∩�)<em>P</em>(<em>A</em>∩<em>B</em>), representing the probability that both events A and B occur together.</li><li>The formula for joint probability is</li><li>Joint probability refers to the probability of the occurrence of two (or more) events at the same time. It is denoted as �(�∩�)<em>P</em>(<em>A</em>∩<em>B</em>), representing the probability that both events A and B occur together.</li><li>The formula for joint probability is:</li><li><em>P</em>(<em>A</em>∩<em>B</em>)</li><li><em>P</em>(<em>A</em>∩<em>B</em>): Joint probability of events A and B occurring together.</li><li>If events A and B are independent, the joint probability can be calculated using the multiplication rule for independent events:</li><li><em>P</em>(<em>A</em>∩<em>B</em>)=<em>P</em>(<em>A</em>)⋅<em>P</em>(<em>B</em>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4650edff66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>