<?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 MAYANK KUMAR on Medium]]></title>
        <description><![CDATA[Stories by MAYANK KUMAR on Medium]]></description>
        <link>https://medium.com/@mayankkumar77952?source=rss-5d1d2e347ff4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nKBo2xct-YvMHB3i</url>
            <title>Stories by MAYANK KUMAR on Medium</title>
            <link>https://medium.com/@mayankkumar77952?source=rss-5d1d2e347ff4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:46:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mayankkumar77952/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[Basics of Machine learning]]></title>
            <link>https://medium.com/almabetter/basics-of-machine-learning-85c1d064cb99?source=rss-5d1d2e347ff4------2</link>
            <guid isPermaLink="false">https://medium.com/p/85c1d064cb99</guid>
            <category><![CDATA[artifi]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[unsupervised-clustering]]></category>
            <dc:creator><![CDATA[MAYANK KUMAR]]></dc:creator>
            <pubDate>Tue, 20 Jul 2021 19:51:11 GMT</pubDate>
            <atom:updated>2021-07-21T15:04:17.088Z</atom:updated>
            <content:encoded><![CDATA[<p>Breifing about AI,ML,DL and DS .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*yhobhSRopGdWs9yST-OMEQ.png" /></figure><p>Nowadays we hear these words more often such as Artificial Intelligence, Machine Learning, Deep Learning, and Data Science. Out of 10 people, I hear these words from 7–8 of them, and why not Data Science field is booming, and it has been considered as the sexiest job of 21st century. So, it’s obvious to hear those terms. But I see out of that 7–8 people, only 2–3 of them know the difference between Artificial Intelligence, Machine Learning, Deep Learning, and Data Science. So let&#39;s just go through each term and understand the difference between them and also later we will see Machine learning in-depth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*yhQh2oDoDe7NF_85yTk49A.png" /><figcaption><strong>who is subsetting whom</strong></figcaption></figure><h4><strong>Artificial Intelligence</strong></h4><p>Artificial Intelligence is computer programs that learn to perform tasks that require types of Intelligence that are usually performed by Humans. Basically, it tries to mimic Human Behaviour. According to the situation, the machine can take its own decision without human intervention. While creating AI app sometimes use Machine learning and deep learning within them.</p><p>Application of Artificial Intelligence</p><p>a)SELF DRIVEN CARS</p><p>b)Roomba -Roomba is a compact, computerized vacuum cleaner that automatically guides itself around your home. The latest Roomba, the 980 model uses true<strong> </strong>AI.</p><p>c)CHATBOT, ALEXA, SIRI</p><h4>Machine Learning</h4><p>It is a subfield of AI. It is the study that gives machines the ability to learn without being explicitly programmed. Basically, there is no exact definition of machine learning.ML gives us the statistical tools to deep-dive into the data.</p><p>Tom Mitchell defined ML as :</p><p>“A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.”</p><p>let&#39;s understand the above definition using an Example :</p><p>Suppose our Email program watches us which email we are marking or not marking as spam and based on that learning we will try to define E, P, and T. So, here the T(Task) Would be Classifying Emails as spam or not spam, E(Experience) would be watching us label emails as spam or not spam. and finally, the P(Performance) would be the number of emails correctly classified as spam /not spam.</p><p>Application of ML</p><p>a)Weather prediction</p><p>b)Handwriting recognition</p><p>c)Autonomous helicopter</p><h4>Deep Learning</h4><p>It is a subset of AI and ML it tries to mimic the human brain via a neural network. It requires a huge amount of DATA and Computational Power.</p><p>it has many techniques such as :</p><p>a)ANN-Artificial Neural Network</p><p>b)CNN-Convolutional neural network</p><p>c)RNN-Recurrent Neural Network</p><p>Applications:</p><ul><li>Voice Recognition</li><li>Video Recognition</li><li>Text Analytics</li></ul><h4>Data Science</h4><p>Data science not only comprises of AI, ML, DL but there is also one thing which is very essential if anyone wants to survive in the DS field is having ‘Business Knowledge’.Data science is a field that combines statistics, data analysis, scientific methods.</p><p>Data science’s primarily objective is to fetch meaningful information and insights from Data. That is only possible with the help of various mathematical and Machine Learning-based algorithms. Hence, Machine Learning is a key element of Data Science. Some of the types of data used in DS are image data, text data, video data, audio data, etc.</p><h4>Let us see more about Machine Learning</h4><p>Machine Learning has different techniques such as Supervised Learning, Unsupervised Learning, and Reinforcement Learning.</p><h4>Supervised Learning</h4><p>As the name suggests Supervised means nothing but being under the supervision of someone (Given the feature and target variables with output).In this, we have to teach the machine first how to perform the task, and then after several experiments machine performs the tasks by itself by observing the experience.</p><p>we have two types of Supervised Learning</p><ol><li>Regression</li><li>Classification</li></ol><h4>Regression</h4><p>It Predicts the continuous-valued output. That is, the output of the function is not categories, but is a continuous value.</p><h4>Classification</h4><p>It Predicts the discrete-valued Output (0 or 1 ,yes or no,etc).This is a process where the dataset is categorized into discrete values or categories.</p><p>Example</p><p>a) Regression - Given data set consists of weight and height try to predict the BMI for each weight and height data.BMI as a function of weight and height is a continuous output, so this is a regression problem, Future price of the stock market, predicting weather forecasting, etc</p><p>(b) Classification — Given a patient with a tumor, we have to predict whether the tumor is malignant or benign, Predicting monsoon will be normal next year, etc</p><h4>Unsupervised Learning</h4><p>These are called unsupervised learning because there is no one to supervise. In unsupervised learning we don&#39;t have any labels, it approaches problems with little or no idea about how our output might look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*1SeM833XL2Ncc1ZRarFyIQ.png" /></figure><p>Unsupervised learning problems can be further grouped into clustering and association problems.</p><ul><li><strong>Clustering</strong>: A clustering problem is where you want to discover the inherent groupings in the data. In this algorithm, we form different groups of the same feature(Same characteristics) where each group will be called a cluster.</li></ul><p>Application of Clustering :</p><ol><li>Google news — if a story or news is related or of the same context, it groups and shows it in one cluster. As we can see in the picture there are different stories but because of the same category, it&#39;s mentioned in one cluster. (There are 2 clusters shown in the picture)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*XFLjedOCnLKSNP65Un1hgg.png" /></figure><p>2.Social network analysis</p><p>3.Market Segmentation,etc</p><ul><li><strong>Non Clustering</strong>: In this Algorithm, it transforms or Alters the input/data. Let’s understand this by taking the famous example of <strong>the cocktail party algorithm</strong></li></ul><p>Application</p><p>A common non-clustering problem would be <strong>the cocktail party algorithm</strong>. Suppose that two people and two microphones are recording at two different locations at a gathering. Mic 1 is closer to Person 1, and Mic 2 is closer to Person 2. Both mics can devour the conversation, however, the voice of the closest person is louder. After putting the recording through the party Algorithm, the outputs would have separated the 2 voices. It allows you to seek out structure during a chaotic environment, and it’s transforming the info. Therefore this is able to be a non-clustering algorithm.</p><h4>Reinforcement Learning</h4><p>This learning algorithm is based on Reward and penalty policy. This is mainly inspired by behaviorist psychology. Suppose we have an agent in some environment. An agent performs any task in that environment and based on his performance we will either give reward or penalize. And based on this learning its accuracy increases.</p><p>Application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*HA6hezqy09_T2QkGXbnInQ.png" /></figure><p>Consider teaching a dog a new trick. For the above case, the dog will act as an agent, and based on his performance in that environment he will either get rewarded or penalized, and from his experience, his accuracy will be Improved.</p><p>That&#39;s all for now, I tried to cover the Basics of ML and also explained the difference between AI, ML, DL, and DS.</p><p>Thank you for your time.</p><p>Reference — Machine Learning by Andrew Ng(Course era).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85c1d064cb99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/almabetter/basics-of-machine-learning-85c1d064cb99">Basics of Machine learning</a> was originally published in <a href="https://medium.com/almabetter">AlmaBetter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hypothesis Testing]]></title>
            <link>https://medium.com/almabetter/hypothesis-testing-d5fd2040fa76?source=rss-5d1d2e347ff4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5fd2040fa76</guid>
            <category><![CDATA[math-for-data-science]]></category>
            <category><![CDATA[hypothesis-testing]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[MAYANK KUMAR]]></dc:creator>
            <pubDate>Mon, 05 Jul 2021 19:38:10 GMT</pubDate>
            <atom:updated>2021-07-07T19:36:32.073Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>The essential Test</blockquote><h3>What this article is about?</h3><p>If you are into Data Science it is very likely that you have or you will come across Hypothesis Testing. This article will give you an intuition about it.</p><h3>Prerequisites</h3><p>· Basic Statistics knowledge (Basic inferential statistics)</p><p>· Probability Theory Basics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GKnUXzp_7vZx26XlbROzA.png" /></figure><h4>Introduction</h4><p>we use samples to take any decision on population and in this process, we assume different population parameters, this assumption is called a statistical hypothesis. And to check the validity of it we use Hypothesis Testing.</p><p>Hypothesis testing is a standard procedure for testing a claim about a property of a population. It is a very important part of Inferential Statistics.</p><p>If we come up with any claim or any assumption like does the Higgs boson exist or has the unemployment rate in India changed in the last quarter? then it has to be statistically proved or else it doesn&#39;t make any sense.</p><p>The general idea behind hypothesis testing are:</p><ol><li>Making an initial assumption.</li><li>Collecting data that will work as a backup for the statement that we made (proofs).</li><li>Based on the available evidence or data, deciding whether to reject or keep the initial assumption.</li></ol><p>Every hypothesis test regardless of the population parameter involves the above three steps.</p><p>So we got to know that we have to test the hypothesis but before testing it we have to set it. So generally we set two Hypothesis :</p><ol><li>Null Hypothesis</li><li>Alternative Hypothesis</li></ol><p>Now the question that arises is what are these two Hypothesis, so let&#39;s see their meaning:</p><p>Null Hypothesis (<strong>H0</strong>) -In this, we basically pre-assume that the sample statistics and population parameters are the same and there is no difference between them. It&#39;s a statement on a population parameter that is assumed to be True until it is proven to be False.</p><p>Alternative Hypothesis(<strong>Ha or H1</strong>)-Any Hypothesis which is reciprocal of the Null Hypothesis.</p><p>Let us understand this with one example that how we set our Hypothesis :</p><p>Let us take an example of any manufacturing company which manufactures Mineral water. And they have claimed that on <strong>average</strong> every 500ml bottle is filled with 500ml of mineral water neither more nor less.</p><p>We have to test whether the fact given by the company is true or not. So in this case first we set our hypothesis.</p><ol><li>H0 → It is nothing but the same as what the company has claimed. so our H0 →μ=500ml</li><li>H1 or Ha →it is complementary of the Null Hypothesis.</li></ol><p>so, H1-&gt;μ≠500ml.(this is nothing but a two-tailed test)</p><p>If by any chance for H1 -&gt; μ&gt;500ml then this would have been nothing but a right-tailed test.</p><p>whereas for H1-&gt; μ&lt;500ml, this would have been a left-tailed test.</p><h4><strong>Computation of Test Statistic</strong></h4><p>After setting our Hypothesis, we have to find the value of the test statistic and also we have to check which test method can be applied among:</p><p>z-test,t-test,x²-test,f-test</p><p><strong>For example, </strong>→ z-test is applied when n≥30 and s.d is known</p><p>z=(x̄-μ)/s.d of mean ~N(0,1) whereas s.d of mean=σ/√n</p><p>Possible outcomes of the Hypothesis which we have set up above :</p><ol><li>Reject Null Hypothesis</li><li>Failed to Reject Null Hypothesis</li></ol><p><strong>We should be able to reject our Null Hypothesis to make our statistical test successful.</strong></p><h4><strong>Level of Significance(</strong>α)<strong>:</strong></h4><p>It tells us about the Probability of error in accepting or rejecting our null hypothesis. or we can also say that it tells us about the level of risk in rejecting a correct null hypothesis.</p><h4><strong>Level of confidence(C):</strong></h4><p>It is just the complimentary of Level of Significance.</p><p>so C+α=1 and if α=5% then c=0.95 or 95%</p><p>After setting the level of significance we have to see which type of test we can apply among :</p><ol><li>Two tailed(H1 ≠ )</li><li>One-tailed(H1 &gt; or &lt;)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*8XrzO-d_cIECrNaDD5WTiA.jpeg" /><figcaption>Two Tailed</figcaption></figure><p>In the above diagram, we have taken the level of significance as 0.05 and as its two-tailed, it will be divided into two parts and from this, we will get the critical value for both the shaded region. So as we had calculated the statistical value above now we just have to fit that in the graph and see where it belongs. If it is in the rejection region we will just say “<strong>Null Hypothesis is rejected</strong> “ else if it is in the acceptance region we can say that “<strong>we failed to reject the Null Hypothesis</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jYVpP-QewMw_teN2ZJhAsQ.jpeg" /><figcaption>Right and Left Tailed</figcaption></figure><p>The same concept can be applied to the Right and Left Tailed also.</p><h4><strong>Decision</strong></h4><p>a)If |Z| &lt; Zα whereas |Z| →calculated value of Z and Zα → tabulated value of Z at α.</p><p>In the above case, we will accept the H0.</p><p>b)If |Z| &gt; Zα, we will reject our H0 (This means the difference between a sample statistic and population parameter is significant.</p><h4>Type 1, Type 2 Error and Power of the test</h4><p>Whenever we are testing Null Hypothesis (H0) against Alternative Hypothesis (H1), we have four possibilities:</p><ol><li>H0 is accepted when H0 is true.[this is as per solution so this is Correct]</li><li>H0 is rejected when H0 is true.[Type 1 error]</li><li>H0 is accepted when H0 is False.[Type 2error]</li><li>H0 is rejected when H0 is False.[this is as per solution so this is Correct]</li></ol><p>Type 1 Error</p><p>It&#39;s nothing but we are<strong> rejecting</strong> the <strong>true null hypothesis.</strong></p><p>Type 1 Error probability →α=p(type 1 error)</p><p>α=p(reject H0|H0 is true)</p><p>Type 2 Error</p><p>In Type 2 Error, we are accepting the null hypothesis even though its value is False.</p><p>Type 1 Error probability →β=p(type 2error)</p><p>β=p(accept H0|H1 is true)</p><p>So basically now we have come to a point where we have done a mistake from which we got Type 1 and Type 2 error and by no chance, we can eliminate both the errors completely so we will try to minimize it as much as possible, but as both are dependent on each other we cannot minimize both at once(because if we minimize 1, probability of type 2 will increase and it won&#39;t be the best solution, vice-versa). we will minimize type 2 as its more serious than type 1</p><p>β=minimize</p><p>β=accept H0 when H0 is False.</p><p>1-β-&gt;probability of reject H0 when H0 is False (we have to somehow make this value as large as possible to minimize β)</p><p>1-β tells us how good or bad is our test(power of test)</p><p>if 1-β ~1 then the test is working quite well</p><p>if 1-β ~0 then the test is not working well</p><p><strong>1-β </strong>is nothing but it indicates our <strong>POWER OF TEST.</strong></p><p>This was my explanation of Hypothesis Testing also I am very new to statistics so if you find any mistake please put it in the comment.</p><p>THANK YOU for your time.</p><p>Reference :</p><p>Youtube and Almabetter study material</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5fd2040fa76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/almabetter/hypothesis-testing-d5fd2040fa76">Hypothesis Testing</a> was originally published in <a href="https://medium.com/almabetter">AlmaBetter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All About Random Variable]]></title>
            <link>https://medium.com/almabetter/all-about-random-variable-dcc83d0d0738?source=rss-5d1d2e347ff4------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcc83d0d0738</guid>
            <category><![CDATA[random-variable]]></category>
            <category><![CDATA[discrete-random-variable]]></category>
            <category><![CDATA[machie-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[MAYANK KUMAR]]></dc:creator>
            <pubDate>Tue, 29 Jun 2021 18:19:37 GMT</pubDate>
            <atom:updated>2021-07-07T19:36:21.798Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>All about Random Variables</strong></h3><blockquote><strong>Descriptive Statistics</strong></blockquote><h3>What this article is about?</h3><p>If you are into Data Science and Machine Learning it is very likely that you have or you will come across Random Variable and Probability Distribution. This article will give you an intuition about the Random variables and different Probability Distributions.</p><h3>Prerequisites</h3><p>· Basic Statistics</p><p>· Probability Theory Basics</p><p>Everyone might have studied this topic during their college time, but it will be totally different experience altogether when we go through the topic with their application in the real world.</p><p>The topics which will be covered are Random variables, Discrete Distributions, Continuous Distributions, and Joint Distributions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2nIflokpGOPQYCW7ePLyA.jpeg" /><figcaption><strong>Let’s Start!</strong></figcaption></figure><h3><strong>Random Variable</strong></h3><p>Random Variable is a function that maps the outcomes of any random experiment in numerical value, often called a Real number. By Random Variables we meant a real number that is associated with the outcomes of a random experiment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gev9F1GwO_7t6bbVqpuVg.jpeg" /><figcaption><strong>Basic Example of Random Variable.</strong></figcaption></figure><p>In the above example, Random variable X is associated with the outcomes of a random experiment.</p><p><strong>Random variable: set of all outcome →R(Real number)</strong></p><p>So, Basically, we can say that a Random variable is nothing but a real-valued function whose domain is sample space.</p><p>Examples:</p><p>Let Y =Number comes up when we roll a die → here Y can take 1,2,3,4,5,6 value.</p><p>Let Z=Height of randomly selected students in a class→ here Z can take any value between 0 to infinity.</p><h3>Notation</h3><p>We denote Random Variable by a capital letter and its values by small letter. Example-Let Z = Height of a randomly selected student in a class, then z∈ (0, infinity)</p><h3><strong>Types of Random Variables</strong></h3><ol><li><strong>Discrete Random Variables:</strong> Any Random Variable (X) is said to be Discrete if it assumes only a finite or countably infinite set of values. Examples-Number of students in a classroom.</li></ol><p>2. <strong>Continuous Random Variables:</strong> Continuos Random variables are a random variable where it can take infinitely many values. Examples-weight or height of any student in a class.</p><p>3) <strong>Mixed Random Variables:</strong> Mixed random variables are the ones that are a mixture of both continuous and discrete variables.</p><h3><strong>Probability Distribution Function of Discrete Random variables</strong></h3><p>The probability density function (PDF) of a Random Variable is a function that defines the probabilities of each event occurring.If for all the random values corresponding to Random Variable X ,we are able to find the probability for each random value .i.e; X={x1,x2,x3,…xn},for x1..xn, these are probability {P1,P2..Pn} then in general Pi=P(X=xi) where i=1..n and this Pi is called Probability mass function. whereas X is a Random Variable and x1,x2..xn are random values. It is only called PMF when these two conditions are fulfilled a)Pi≥0 and b) summation of Pi from i to n =1 and a combination of (xi,Pi) is called probability distribution function(PDF).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*S5bG6XwyWXK2_fPr1o4grQ.jpeg" /><figcaption><strong>Understanding of PDF and CDF</strong></figcaption></figure><h3>Cumulative Distribution Function of Discrete Random variables</h3><p>Cumulative means to sum up and Cumulative distribution function does the same.CDF of Random Variable X may be defined as the probability that the random variable X takes a value lesser than or equal to x. CDF:F(x)=P(X≤x).CDF for discrete is STEP Function. For Reference, you can look at the above Example.</p><h3>Probability Distribution Function of Continuos Random variables</h3><p>Let X be a Random Variable taking values between [a,b].A f(x) or P(x) is called to be probability density function if it satisfies the following properties: 1)P(x)≥0 for all x[a,b] 2)for al distinct c &amp;d in[a,b]-&gt; P(c≤x≤d) = Area under the curve b/w ordinate cut x=c &amp; x=d. 3)Total Area under the probability curve=1 P(a≤x≤b)=1.</p><h3>Cumulative Distribution Function of Discrete Random variables</h3><p>For any random variable X, the cumulative distribution function F_X​ is defined as F_X(x) = <em>P</em>(<em>X</em>≤x), which is the probability that X is less than or equal to x.which is nothing but the same as discrete.</p><h3>Mean of Random Variable</h3><p>E[X] is called the expected value of X, or mean of X, or an average of X, and is denoted by μ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*I2nmJDh1Ku-xa_ez6LEpbA.png" /></figure><h3>Variance of Random Variable</h3><p>Variance is nothing but it denotes the spread/dispersion of the distribution about its Mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*1x_qUyhmvSZlvvWK437k7w.png" /></figure><h3>Discrete Distributions</h3><h4>Uniform Distribution</h4><p>The uniform distribution defines equal probability over a given range for a continuous distribution. for example, if the random experiment is Rolling a dice we see a uniform distribution as the probability of each outcome is the same as 1/6.</p><p>Distribution:P(X=x)=1/n (x=1,2,3…n)</p><p>Mean=(k+1)/2 , Variance=(k²-1)/12</p><h4>Bernoulli Distribution</h4><p>A Random Experiment that has only two possibilities success or failure is called Bernoulli Trial.</p><p>Probability of success =P , Probability of failure=1-P</p><p>Distribution:P(X=x)=P^x * (1-P)^(1-x) whereas x=0,1,0&lt;P&lt;1</p><p>Mean=P, Variance=P(1-P)</p><h4>Binomial Distribution</h4><p>Why do we need Binomial Distribution?</p><p>when we have to find the probability of the outcome of n trials then we need binomial distribution.</p><p>Binomial Distribution has the following properties:</p><ol><li>The experiment consists of n identical and independent trials.</li><li>Each outcome should have only two possibilities Success or failure</li><li>Probability of success =P , Probability of failure=1-P</li><li>Random variable X is the number of successes in n trials.</li></ol><p>PDF of Binomial Distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*Qqt5Ydvjlj4AtZ0mzx-vZw.jpeg" /></figure><p>Mean=nP , Variance=nP(1-P) Whereas n = number of trials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*pK0yBht1Hp_ITb3Gs4uwAA.jpeg" /></figure><h4>Geometric Distribution</h4><p>It is the probability distribution of number X of Independent Bernoulli trials performed until a hit occurs, where the Bernoulli trial has a continuing<strong> </strong>probability of success P.</p><p>where Geometric distribution is Applicable:-</p><p>It is applicable to seek out the probability where we perform an experiment until a hit<strong> </strong>occurs.</p><p>Examples:</p><ol><li>Tossing a coin repeatedly until the first Head appears.</li><li>Throwing a die repeatedly until the first time a four appears.</li></ol><p>PDF of Geometric distribution is shown in the snap and also here p represents the probability of success and q is the probability of failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*7rLq-JIyR0gxwxi44-9wBA.jpeg" /></figure><p>Mean=1/p , V ariance=(1-p)/p²</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*yprwNkahinqUufxJYv3RLg.jpeg" /></figure><h4>Poisson Distribution</h4><p>It is a limiting case of a binomial distribution under the following condition:</p><ol><li>The number of experiments is infinite n →infinity</li><li>The probability of success is infinitely small,i.e.,p →0</li><li>np= λ</li></ol><p>Under the three conditions, the binomial probability function reduces to</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*iqSgs2cd2atkE4xuzwC2BQ.jpeg" /></figure><p>and its called the Poisson distribution function .whereas λ=Mean=Variance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*oBMpMmhdE2msSeyV3lA7tw.jpeg" /><figcaption>Example on Exponential Distribution.</figcaption></figure><h3>Continuous Distributions</h3><p>The continuous probability distribution<strong> </strong>is a type of distribution that deals with continuous types of random variables and it can take any value.</p><h4>Notation</h4><p>P(X=x)=0 always for a continuous distribution. Hence we use P(X≤x) or P(X&lt;x).</p><h4>Uniform Distribution</h4><p>The distribution describes a random experiment where there is an outcome that lies between certain limits(two specified numbers).</p><p>PDF</p><p>F_X(x)=1/b-a where as a&lt;x&lt;b</p><p>Mean=(a+b)/2 by symmetry , Variance=(b-a)²/12</p><h4>Normal Distributon</h4><p>PDF of Normal Distribution such that E[X]=Mean , Variance=σ²</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*dfnoMPyowkq5OH1EyLjofg.jpeg" /></figure><p>Normal distribution is also called Gaussian distribution or bell-shaped curve distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*M7K06yTMrylAVWsawmVLTw.png" /></figure><p>Properties of Normal Distribution:</p><ol><li>Mean=Median=Mode (all are equal)</li><li>The curve is symmetric about the Mean</li><li>The area under the curve is 1.</li><li>Area to the left about Mean=Area to the right about Mean=0.5(same)</li></ol><p>The empirical rule tells us what percentage of our data falls within a certain number of standard deviations from the mean:</p><ol><li>68% of the data falls within one σ of the mean.</li><li>95% of the data falls within two σ of the mean.</li><li>99.7% of the data falls within three σ of the mean.</li></ol><p>For normal distributed variable X-&gt;N(μ,σ²), the variable</p><p><strong>Z=(X-μ)/σ</strong> is called <strong>Standard Normal Variate</strong> and its PDF is :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*fgB-pTOZr9SDbhCcrNau9A.jpeg" /></figure><p>Mean of Z =0, Variance of Z=1</p><h4>Exponential Distribution</h4><p>It&#39;s a continuous probability distribution that<strong> </strong>is usually used to<strong> </strong>model the time between independent events, events that occur at a continuing<strong> </strong>average rate.</p><p>A continuous random variable X is said to be exponential distribution with parameter λ(rate parameter). if X has the PDF-:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*gaHLeafcdqJHcKlw5aOfvw.jpeg" /></figure><p>Mean=1/λ and Variance=1/λ²</p><p>CDF of exponential distribution :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*a7OooxYKQpWZVfpZWEKvBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkfuoFMwUoaRFjYeu6E30Q.jpeg" /></figure><h4>Gamma Function</h4><p>For α &gt;0, the gamma function Γ(α) is defined by :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*auhHqQFnEqtBmpeTaCz10g.png" /></figure><p>Important properties of gamma function are :</p><ol><li>for any α&gt;1, Γ(α)=(α-1).Γ(α-1)</li><li>For any positive integers n, Γ(n)=(n-1)!</li><li>Γ(1/2)=√π</li></ol><h4>Chi-square Distribution</h4><p>The square of standard normal variate is known as Chi-square variate with the degree of freedom as 1.</p><p>if X~N(μ,σ²) then Z=(X-μ)/σ ~N(0,1) and</p><p>Χ²(chi-square)=((X-μ)/σ)² is a Chi-square variate with 1 degree of freedom.</p><p>In general,</p><p>Χ²(chi-square)=<strong>∑</strong>((Xi-μi)/σi)² (summation from i to n) is a Chi-square variate with n degree of freedom.</p><p>Application of chi-square :</p><ol><li>chi-square test for goodness of fit.</li><li>chi-square test for independence of attributes.</li><li>To test if the population has a specified value of the variance σ²</li><li>To test the equality of several population proportions.</li></ol><h4>t-Distribution</h4><p>when should we apply t-Distribution:</p><ol><li>When the sample size is small(n &lt; 30)</li><li>Population standard deviation should be unknown.</li><li>The population from which sample is selected should be normally distributed</li></ol><p><strong>PDF of t-Distribution:</strong></p><p>f(t)=C(1+t²/ν)^-(v+1)/2 ,C=constant</p><p>v=degree of freedom=n-1 whereas n is sample size</p><p><strong>Properties of t distribution</strong></p><ol><li>The value of the t variable ranges from -∞ to +∞.</li><li>It is symmetrical about its mean.mean=0.</li><li>Variance=n/n-2,n&gt;2, and also it should be always greater than 1</li><li>t-distribution’s height is flatter at centre and higher in tails, more dispersion than standard normal distribution.</li><li>for each v degree of freedom, there is a different t curve.</li></ol><h4>F-Distribution</h4><p><strong>Properties of F distribution</strong></p><ol><li>The value of F ranges from 0 to +∞.</li><li>It has two parameters v1 and v2 (the no. of two degree of freedom)</li><li>It is a continuous distribution and never touches the x-axis.</li><li>For different v1 and v2 degrees of freedom, there will be different F distributions.</li><li>Positively skewed and as d.f increases curves become symmetric.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*PFr6W1mxzsc7x-t6MA5nUA.jpeg" /><figcaption>For a different degree of freedom,F distribution</figcaption></figure><p>PDF of F distribution where n1 and n2 are degrees of freedom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*SJy9oVuv600hf449NJbFtg.jpeg" /><figcaption>PDF of F distribution</figcaption></figure><h3>Joint Distributions</h3><h4>Jointly Distributed Random Variables</h4><p>We observed a pdf of individual random variables, but now we will see the relationship of pdf between two or more random Variables. Its also called a Two-dimensional Random Variable.</p><p>Let X and Y be random variable on a sample space S with respective image sets X= {x1,x2…xn) and Y ={y1,y2..yn} ,make a product set X x Y and denote it as an ordered pair (xi,yj) to the P(X=xi,Y=yj) .we write it as p(xi,yi).</p><p>Joint probability mass function of X,Y is</p><p>p(x,y)=p(X=x,Y=y)foa a value of (x,y) of (X,Y) and 0 otherwise .</p><p>For Discrete :</p><ol><li>p(x,y)≥0 and 2. <strong>∑∑</strong>p(x,y=1</li></ol><p>For Continuos:</p><ol><li>p(x,y)≥0 and 2. ∫ ∫p(x,y)dy dx=1</li></ol><p>Exmaple of Joint probability :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLZh0-ZYJ51ZkHJJoabqJQ.jpeg" /><figcaption>JOIN PROBABILTY</figcaption></figure><p><strong>Marginal Density Function</strong></p><p>For 2 discrete random variable X and Y ,</p><p>Marginal function of X,denoted by p(x) or Px is given as:</p><p>For Discrete :</p><p>p(x)=<strong>∑</strong>p(X=x,Y=y)(summation over y)</p><p>For Continuos:</p><p>p(x)=∫p(x,y)dy(integration over y)</p><p><strong>Conditional density Function</strong></p><p>The condition density function for X given Y ,denoted by p(X|Y) is defined as</p><p>p(X|Y)=(p(X=x,Y=y))/p(y) =&gt;p(x,y)/p(y) similarly we can find p(y|x)</p><p>where the numerator is nothing but Joint probability and denominator is marginal.</p><p>Discrete Case:</p><p>f(X|Y)=(f(x,y))/f(y) similarly we can find f(y|x) also.</p><p>Continuos Case:</p><p>P{X∈ A|Y =y}=∫f(x|y)dx for any set A</p><p><strong>Conditional Expectation</strong></p><p>For Discrete:</p><p>E(X|y)=∑xPx|y(x) similarly for Y|x we can write it as E(Y|x)=∑yPy|x(y)</p><p>For continuos:</p><p>E(X|y)=∫x .f(x|y)(x)dx integration from (-∞ to+∞)</p><p><strong>Example</strong> on Marginal Density Function and Conditional density Function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*2qCB7Jlo6zME6BdcLd_GKQ.jpeg" /><figcaption>Marginal Density Function</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*R5QEfY5UE463OqgK6foYXA.jpeg" /><figcaption>Conditional density Function</figcaption></figure><p><strong>Independent Random Variable</strong></p><p>Two Random Variable X and Y are said to be independent if</p><p>p(x,y)=p(x)p(y) for all (x,y)of (X,Y)</p><p>p(x)-Marginal function of X</p><p>p(y)-Marginal function of Y</p><h4>Covariance</h4><p>Covariance gives the relationship between two variables. (by relationship i meant how it is proportional to each other directly or inversely)</p><p>The covariance of two random variables X and Y is defined by</p><p>Cov(X , Y ) = E[(X − μx )(Y − μy )] whereas μx = E[X] and μy = E[Y] or cov(X, Y) = E[XY] — E[X]E[Y]</p><h4>Correlation</h4><p>Correlation measures the degree to which two variables move in relation to each other(basically the quantity by how much it differs or related)</p><p>Corr(X, Y) = Cov(X, Y)/√ Var(X )Var(Y )</p><p>I hope you liked the descriptive content of Random variables and different distributions.</p><p>Thanks for reading</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcc83d0d0738" width="1" height="1" alt=""><hr><p><a href="https://medium.com/almabetter/all-about-random-variable-dcc83d0d0738">All About Random Variable</a> was originally published in <a href="https://medium.com/almabetter">AlmaBetter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>