<?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 Yuvineeraj on Medium]]></title>
        <description><![CDATA[Stories by Yuvineeraj on Medium]]></description>
        <link>https://medium.com/@yuvineeraj0?source=rss-3d8618e73c5d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MHtP-LLWXI8Edad75LbJEg.jpeg</url>
            <title>Stories by Yuvineeraj on Medium</title>
            <link>https://medium.com/@yuvineeraj0?source=rss-3d8618e73c5d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:45:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yuvineeraj0/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[Feature Transformation]]></title>
            <link>https://medium.com/@yuvineeraj0/feature-transformation-146e3a452bb6?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/146e3a452bb6</guid>
            <category><![CDATA[root-transformation]]></category>
            <category><![CDATA[box-cox-transformation]]></category>
            <category><![CDATA[log-transformation]]></category>
            <category><![CDATA[min-max-scaling]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 09:31:19 GMT</pubDate>
            <atom:updated>2024-03-24T09:31:19.751Z</atom:updated>
            <content:encoded><![CDATA[<p>→ It is a technique where the non normal distribution is converted to mostly a normal distribution.</p><p>→ The feature transformation techniques in machine learning which are used to transform the data from one form to another form, keeping the essence of the data.</p><h4>Types of Feature Transformation:</h4><h4>1.Min Max Scaling-</h4><blockquote>→ Rescaling the features to have a similar range, such as between 0 and 1, to prevent some features from dominating others.</blockquote><p><strong><em>In this the minimum value is 0 and maximum value is 1.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/0*rUcB2t2grD3ac7ch.png" /></figure><p>→ It eliminates the effects of the variation in the scale of the data sets, i.e., a data set with large values can be easily compared with a data set with smaller values.</p><h4>The way how I implement this transformation on a normal distribution:</h4><p>step 1: The original distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*Om8QtHMxcsQRusvXdepwqQ.png" /></figure><p><strong>Step 2</strong>:Applying the normalization formula .Creating a function and retriving the values from it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*3e8vCcNlZqzUR6XlPAU93Q.png" /></figure><p><strong>Step 3</strong>:The distribution has now the values between 0 and 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*N6fxlyNP_I1CMt_TNyTF6w.png" /></figure><h3>Mean Normalization:</h3><p>→ Mean Normalization is a way to implement Feature Scaling.</p><p>→ We are subtracting the mean from each observation and then dividing the result by the difference between the minimum and maximum values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*jgwZjjJsRrmW11kY.png" /></figure><p>→ This transformation results in a distribution centered at 0, with its minimum and maximum values within the range of -1 to 1.</p><p>→ In this the standard deviation is always 1 mean mean is 0.</p><h4>The way how I implement using mean transformation is:</h4><p><strong>Step1</strong>: The original distribution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*zyOfsScK8KXJgcFJK1mltg.png" /></figure><p><strong>Step 2:Creating a function and applying mean normalization on it .Then making the distribution bewteen the limits of 0 and 1.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*py3fgQXuqQt9JFTFvfjJJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*kbNNHgMtX6A6-0crAr9rIQ.png" /></figure><h3>Robust Scaling:</h3><p>→ 0Similar to normalization but it instead uses the interquartile range, so that it is robust to outliers.</p><p>→ The median and scales of the data are removed by this scaling algorithm according to the quantile range.</p><h4>When to use robust scaler</h4><p>→ Outliers can significantly affect statistics such as mean and standard deviation.</p><p>→ Therefore, you may want to avoid using the standard scaling when the input has outliers.</p><p>→ We should use robust scaling instead. It uses median and interquartile range (IQR) to scale input values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*n6SQ3w4BWxjk2xVL.png" /></figure><h4>The way how I implement using robust scaling transformation is:</h4><p><strong>Step 1</strong>:The original distributions of normal and right skewed distributions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*IVW-Dl-qMIGBy8L9hYXmSw.png" /></figure><p><strong>Step 2:Creating a function and applying this robust scaling on it</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*2m7zsmB-E7azwxPNpA8uZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*jYjym6vHHEZ7lZPW8e-5nw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*ZXvfwXresyLFvL63qn-A9Q.png" /></figure><h3>Max Absolute Scaling:</h3><p>→ The max-abs scaling is similar to the min-max scaling. Instead of taking the minimum and maximum value, only the absolute maximum value is used.</p><p>→ The approach normalizes each feature individually by the maximum absolute value.</p><p>The formula for max absolute scaling is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*_TBy52tOJrngOOeTwl3O2Q.png" /></figure><p>→ In this the values lies between -1 and 1 scales.</p><h4>The way how I implement the max absolute scalar technique is:</h4><p><strong>Step1:The original distribution of normal distribution.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*zyOfsScK8KXJgcFJK1mltg.png" /></figure><h4>After applying the max absolute scaling technique :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*U4SYgGbqdx0Iwu0XPhjVkg.png" /><figcaption>The code we used</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*3EuG-B2cuC47vBQ7smhYew.png" /><figcaption>The scaling is brought down to -1 and 1 from -400 to 400.</figcaption></figure><h3>Log Transformation:</h3><p>→ If we are having a left skewed data and want to make to more likely to a normal distribution then we use the log transformation technique.</p><p>→ Logarithmic transformations can reduce the impact of outliers by compressing the data’s range and bringing extreme values closer to the mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*8ura16FWWk3DGvOf" /></figure><p>→ Using log transformation formula and applying it on left skewed data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*2cOn0Wy70JqwGB38daqgAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*yF28qkObknimtF-8xv1dKw.png" /><figcaption>Applying log transformation on left skewed we got normal like distribution</figcaption></figure><h3>Root Transformation:</h3><p>→ Root transformation is a transformation with a moderate effect on distribution shape: it is weaker than the logarithm and the cube root. It is also used for reducing right skewness, and also has the advantage that it can be applied to zero values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*41fwkdVIb0lHBRrZ.png" /></figure><h4><strong>The way how I implement the root transformation is:</strong></h4><p><strong>Step 1:The original right skewed distribution.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*d6Xac2HKZrBa-AL8M9iAVQ.png" /></figure><p><strong>Step 2:Applying the formula and making the distribution to a normal distribution.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*hOb4KWFJDed8fYXoJWgmBg.png" /></figure><h3>Box Cox Transformation:</h3><p>→ Box-Cox transformation is a statistical technique that transforms your target variable so that your data closely resembles a normal distribution.</p><p>→ In this the lambda value is always in between -5 and 5.(even decimals is also possible.</p><p>→ The main drawback is it cannot be applied for negative values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*UmRycOSdceJYvvHu.png" /></figure><h4>The way how I implement the box cox transformation is:</h4><p>Using box cox for right skewed data and applying box cox transformation on it.</p><p>→ Applying the formula and using box cox transformation on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*byKp5-oHazAvb3nL3LHS2A.png" /></figure><p>→ After applying the box cox</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*HRPLJPEHDF2R9BZFeAY8kA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NCW5zA2mixgjAy7u.png" /></figure><h3>Yeo Johnson Transformation:</h3><p>→ The Yeo-Johnson family of transformations modifies and generalizes the Box-Cox family to handle data where the smallest value of y may be zero or negative.</p><p>→ For non-negative values of y, it finds the Box-Cox transformation of y+1. For negative values of y, it is the Box- Cox transformation of |y|+1 with parameter 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*z5uSJ9-v58rgcgps.png" /></figure><p>Applying the yeo johnson transformation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*WcrDDBe4xhRv7r4bJMFrew.png" /></figure><p>After applying the yeo johnson distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*Z1vCTy8zDKFV-AqUx4c3dw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=146e3a452bb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sampling Techniques]]></title>
            <link>https://medium.com/@yuvineeraj0/sampling-techniques-d67d7dd561f3?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d67d7dd561f3</guid>
            <category><![CDATA[random-sampling]]></category>
            <category><![CDATA[sampling-technique]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 18:54:22 GMT</pubDate>
            <atom:updated>2024-03-19T18:54:22.648Z</atom:updated>
            <content:encoded><![CDATA[<h3>Population:</h3><h4>→ An entire group on which you want to draw conclusion .A population will have characteristics.</h4><h4>→ The <strong>population</strong> is the entire group that you want to draw conclusions about.</h4><h3>Sample:</h3><h4>→ A small portion of population which preserves the characteristics of population.</h4><h4>→ The <strong>sample</strong> is the specific group of individuals that you will collect data from.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*F--nchIwf7_p1Bbu.jpg" /></figure><h4>→ Normally, statistical analysis are conducted on a sample and their findings are projected on to the population.</h4><h3>Sampling Methods</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/0*Hyprfy3RlNCfn5p2.jpg" /></figure><h4>Non-Random (Probability sampling)</h4><p>→ Non-probability sampling is<strong> a method that uses non-random criteria to select units from a population for research.</strong></p><p>→ These sampling techniques are used when the researchers have limited time and resources are in need to conduct a qualitative, first time ,exploratory analysis/research.</p><h4>1.Voluntary Sampling :</h4><p>→ Happens when the researchers put out a form or a survey(in person or virtually) to their subjects.</p><p>→ This sampling techniques is inexpensive to conduct /easy to conduct and we may get the passionate responses i.e., the people who respond for this surveys are generally care about the particular topic or thepurpose</p><p>→ This sampling technique is biased and affected by the volunteer diloma.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*pZlL7nrEMtFQc3HK" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OEnCxuE97juzUhap.jpg" /></figure><p>→ This sampling technique is not the correct representation of population.</p><h3>2.Convenience sampling :</h3><p>→ Researchers select the samplers from the population conveniently.</p><p>→ <a href="https://www.bing.com/ck/a?!&amp;&amp;p=42a383a3598a373eJmltdHM9MTcxMDgwNjQwMCZpZ3VpZD0yOGJjZDRiYi1iOTA5LTZiNDctMTk4My1jN2MyYjhlMTZhOGEmaW5zaWQ9NTc4Ng&amp;ptn=3&amp;ver=2&amp;hsh=3&amp;fclid=28bcd4bb-b909-6b47-1983-c7c2b8e16a8a&amp;psq=Conveinence+sampling&amp;u=a1aHR0cHM6Ly9zaW1wbHlwc3ljaG9sb2d5Lm9yZy9jb252ZW5pZW5jZS1zYW1wbGluZy5odG1sIzp-OnRleHQ9Q29udmVuaWVuY2UlMjBzYW1wbGluZyUyMGlzJTIwb2Z0ZW4lMjB1c2VkJTIwZm9y&amp;ntb=1">Convenience sampling is often used for <strong>qualitative research</strong>. Researchers use this sampling technique to recruit participants who are convenient and easily accessible.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*lapMEfgs_gT9uZ9M.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/0*ivK6hNcgcOSwiXyu" /></figure><h3>3.Consequtive Sampling:</h3><p>→ Researchers conduct research and find the insights from one group to next group in sequential manner until a certain condition is met .</p><p>→ Consecutive sampling is a non-probability sampling technique where the researcher selects a sample based on convenience, similar to convenience sampling, but with a slight variation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*M5zrywEcpwx15FM7" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*17v2RPbROLGEsq5K.png" /></figure><h3>4.Quota Sampling</h3><p>→ The researcher decides the selection of sampling based on some quota. In quota sampling, the researcher makes sure that the final sample must meet his quota criteria.</p><p>→ The sample obtained from a quota sampling method contains similar proportions of observations as the whole population with some known traits or characteristics. In quota sampling, the researcher selects from his/her judgement or some fixed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/0*jHhyeoPL5D7dZHoH.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/0*6w_Xb_rSCcx9UfkA" /></figure><h3>5.Snowball Sampling</h3><p>→ Researchers rely on snowball sampling when it is difficult to locate and recruit the perfect subject they also implement this when the sample size is small.</p><p>→ It can also be worked as referrals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*_on-XxwhVIlOzHUQ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*AUiiker5znw2GooA.jpg" /></figure><h3>Random Sampling Techniques(Probability)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_g6vYHgBaiOY23xK.jpg" /></figure><h4>1.Simple Random Sample</h4><p>→ Probability of choosing is uniform and random.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yfq9psoj_WOeUJSW.png" /></figure><h4>2.Stratified Sampling</h4><p>→ In this we get the proportionality of sample is similar to population.</p><p>→ This involves the division of population into smaller sub groups.</p><p>→This sub groups traits, charecteristics such as gender, age, group, preferences these sub groups are called as strata while the sample is taken the proportionality of strata sizes are maintained.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2U0GU5W3flVmCozh.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*aNel1pedRKzeqmsk.jpg" /></figure><h4>3.Cluster Sampling</h4><p>→ Population is divided into different clusters.</p><p>→ Clusters are based on distance(location).</p><p>→ The subjects will be chosen at random from the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/0*PE2cvSZJZE2aq7eO.png" /><figcaption>In this the proportionality may not be similar.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*_1fBS11ZiEBgjOxV.jpg" /></figure><h4>The main difference between the startified and cluster sampling :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*6aC0VWuECfvk2yMD.jpg" /></figure><h3>4.Systematic Sampling</h3><p>→ Every n th person or group is sample.</p><p>→ A probability sampling method where researchers select members of the population at a regular interval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/0*XaaAbPpkUQu5oGsy.png" /></figure><p>In this from 2 the third person is chosen as sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*c6yBorNL3ErQEY02.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d67d7dd561f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Probability Mass Function (PMF)]]></title>
            <link>https://medium.com/@yuvineeraj0/probability-mass-function-pmf-7071975b960a?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7071975b960a</guid>
            <category><![CDATA[bernoulli-distribution]]></category>
            <category><![CDATA[geometric-distribution]]></category>
            <category><![CDATA[negative-binomial]]></category>
            <category><![CDATA[binomial-distribution]]></category>
            <category><![CDATA[hypergeometric]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 15:48:46 GMT</pubDate>
            <atom:updated>2024-03-13T15:48:46.614Z</atom:updated>
            <content:encoded><![CDATA[<p>→ The<strong> probability mass function </strong>(PMF) is a mathematical function that describes a <strong>discrete </strong>probability distribution. It gives the probability of every possible value of a variable.</p><p>→ A probability mass function can be represented as an equation or as a graph.</p><h3>Bernoulli’s distribution</h3><p>→ Bernoulli Distribution is a type of discrete probability distribution where every experiment conducted asks a question that can be answered only in yes or no.</p><p>→ In other words, the random variable can be 1 with a probability p or it can be 0 with a probability (1 — p).</p><p>→ Such an experiment is called a Bernoulli trial. A pass or fail exam can be modeled by a Bernoulli Distribution.</p><p>→ Bernoulli Distribution can be used to describe events that can only have two outcomes, that is, success or failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*ur-60OYvKaHpKzWi" /></figure><h3>Binomial distribution</h3><p>→ Describes variables with two possible outcomes. It’s the probability distribution of the number of successes in <em>n</em> trials with <em>p</em> probability of success.</p><p>The binomial distribution function is calculated as:</p><blockquote>P( x : n , p ) = n C x p x ( 1 — p ) n — x</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*IMOjFHYtMGwEH-HZ.png" /></figure><p>Where:</p><ul><li>n is the number of trials (occurrences)</li><li>x is the number of successful trials</li><li>p is the probability of success in a single trial</li><li>n C x is the combination of n and x. A combination is the number of ways to choose a sample of x elements from a set of n distinct objects where order does not matter, and replacements are not allowed. Note that nCx = n! / r! ( n − r ) ! ), where ! is factorial (so, 4! = 4 × 3 × 2 × 1).</li></ul><p>→ <strong>Estimate of binomial distribution</strong> -np</p><p>→ Variance of binomial distribution -npq</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*bJL0akAvzMq3vlrh" /></figure><h3>Negative Binomial Distribution</h3><p>→ Negative binomial distribution talks about the final success which can be obtained, after a sequence of successes in the preceding trials. Negative binomial distribution refers to the r th success which has been preceded by n — 1 trials, containing r — 1 success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*8Ehbovd9-rOy8M-A.jpg" /></figure><h4>Estimate of negative binomial distribution — r/p</h4><h4>Variance of negative binomial distribution -r(1-p)/p2</h4><h3>Geometric distribution</h3><p>→ Geometric distribution is a type of discrete probability distribution that represents the probability of the number of successive failures before a success is obtained in a Bernoulli trial. A Bernoulli trial is an experiment that can have only two possible outcomes, ie., success or failure.</p><p>→ The probability of getting the first success in n number of trials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*juJ3uVCWenBGjUBb.jpg" /></figure><h3>Hyper geometric distribution</h3><p>→ The hypergeometric distribution is a discrete probability distribution that calculates the likelihood an event happens k times in n trials when you are sampling from a small <a href="https://statisticsbyjim.com/glossary/population/">population</a> without replacement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*tX5dtz0Xe1SJVdP2.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RYPKopUBdAEwM7lx.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7071975b960a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Probability]]></title>
            <link>https://medium.com/@yuvineeraj0/probability-f99c3ab73ece?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f99c3ab73ece</guid>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 13:55:17 GMT</pubDate>
            <atom:updated>2024-03-12T15:29:18.239Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><strong>Probability</strong> means possibility.</li><li>A measure which quantifies an event occuring or not(randomness).</li><li>The value is expressed from zero to one.</li><li><strong>The probability of all the events in a sample space adds up to 1.</strong></li></ul><h3>Formula for Probability:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*vRTOumNtUrdodLrTAq4zAQ.png" /></figure><h3>There are various terms utilised in the probability-</h3><h4><strong>→ Experiment</strong>- It is a process or observation that can result in different possible outcomes.</h4><h4>→Event- An event is a subset of the sample space, which is the set of all possible outcomes of an experiment. An event is a set of outcomes that we are interested in or want to observe from the experiment.</h4><h4>→ Sample Space-A sample space is the set of all possible results or outcomes of a random experiment.</h4><p><em>Example: If we have thrown a dice, randomly, then the sample space for this experiment will be all possible outcomes of throwing a dice, such as;</em></p><p><em>Sample Space </em>= { 1,2,3,4,5,6}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*K7ChVhPRsEzHR_W-.jpg" /></figure><h3>Empirical Probability:</h3><ul><li>Empirical probability is based on the ratio of the number of times an event occurs to the number of attempts made.</li><li>Empirical probability uses the number of occurrences of a given outcome within a sample set as a basis for <a href="https://www.investopedia.com/terms/c/copula.asp">determining the probability</a> of that outcome occurring again.</li></ul><h4>Example- you toss a coin three times looking for heads and get heads three times, the empirical probability of getting heads is 100% or 3/3=1000%.</h4><h3>Theoretical Probability:</h3><ul><li>Theoretical probability defines a desired outcome and then creates a ratio of the number of successful outcomes to the total of the possible outcomes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*niCGvitXSBbNhY25.png" /></figure><h3>How does the law of large numbers connect these concepts?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*9o1YgEZ-QXt_VZ9SDudWtA.png" /></figure><h3>Random Variables</h3><ul><li>It is a function which takes every occurances in sample space and assigns a real value.</li></ul><h4>Point to be remembered:</h4><p>→ It doesn’t mean that there will be unique values for every occurances in sample space.</p><p>→It is completely depending upon the experiment random variable will be assigned.</p><h3>The axioms of probability:</h3><blockquote>1. Probability can range from 0 to 1, where 0 means the event to be an impossible one and 1 indicates a certain event.</blockquote><h4>Mutually exclusive events:</h4><h4>Mutually exclusive is a statistical term describing two or more events that cannot happen simultaneously.</h4><blockquote>2. If A and B are said to be mutually exclusive events then the probability of an event A occurring or the probability of event B occurring that is P (a ∪ b) formula is given by P(A) + P(B), i.e., P (A Or B) = P(A) + P(B)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3ro90GfzaV_pAg_W.jpeg" /></figure><blockquote>3. P(A∪B) formula is given as, P(A∪B) = P(A) + P(B) — P(A∩B), where P(A) is Probability of event A happening, P(B) is Probability of event B happening, and P(A∩B) is Probability of happening of both A and B.</blockquote><blockquote>4.Joint probability is the product of the individual probabilities of independent events. Mathematically, P(A and B) = P(A) x P(B). The probability of A times the probability of B equals the joint probability of A and B happening at the same time.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/0*-zflNcK7n-qyE8es.png" /></figure><blockquote>5. Conditional Probability:</blockquote><blockquote>Probability of an event occuring when other event has already happend.</blockquote><blockquote>For independent events the probablility is always the event itself</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/0*1Q77udaLr2x8_lR6.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f99c3ab73ece" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Z-Score]]></title>
            <link>https://medium.com/@yuvineeraj0/z-score-39552faeb47e?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/39552faeb47e</guid>
            <category><![CDATA[skewed-data]]></category>
            <category><![CDATA[z-score]]></category>
            <category><![CDATA[non-normal-distributions]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 19:28:03 GMT</pubDate>
            <atom:updated>2024-01-11T19:28:03.738Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>The z-score represents the number of standard deviations an observation is from the mean.</li><li>Z-scores are useful for comparing observations from different normal distributions.</li><li>It is calculated by subtracting the mean from an observation and dividing by the standard deviation.</li><li>The formula is:</li></ul><h4>z = (x — μ) / σ</h4><p>Where:</p><p>x = observation</p><p>μ = mean</p><p>σ = standard deviation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*boaChWWy9q1wfTKH.jpeg" /></figure><ul><li>Z-scores are useful for outlier detection, hypothesis testing, comparing distributions.</li></ul><h3>Skewed distribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*BjmhZTRken7Nfvwi" /></figure><h4>The Reason Behind Not Using Z-Scores in skewed distribution:</h4><ol><li>The reason why the z-score is not used in skewed distributions is because the z-score assumes a normal distribution.</li><li>Skewed distributions have asymmetry ,so the z-score wouldn’t accurately represent the data.</li><li>Instead, other measures like percentiles or skewness are used to analyze skewed distributions.</li></ol><h3>Examples of non-normal distributions-</h3><h4><strong>1.Exponential Distribution</strong>: It describes the time between events in a Poisson process, such as the time between phone calls at a call center</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*-BL1uQTtzEnbBxWA.jpg" /></figure><h4>2. <strong>Binomial Distribution</strong>:It represents the number of successes in a fixed number of independent Bernoulli trials ,like flipping a coin multiple times.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/0*jIKnFCnv3vVmNmyj.png" /></figure><h4>3. Poisson Distribution:It models the number of events that occur in a fixed number of events that occur in a fixed interval of time or space,such as the number of emails received per hour.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/0*aMTefWnMysCo9gws.png" /></figure><h4>4.Gamma Distribution:It is often used to model waiting times or durations.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/0*WIXxbATeId6oNMac.png" /></figure><h4>5.Pareto Distribution:It is also known as the 80/20 rule,where a small percentage of the population accounts a large percentage of the total.It is often used to describe income distribution or popularity of online content.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yvtTNAn-yfDcqzOS.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39552faeb47e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MISSING VALUES IN PANDAS]]></title>
            <link>https://medium.com/@yuvineeraj0/missing-values-in-pandas-dcba16b03659?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcba16b03659</guid>
            <category><![CDATA[fillna]]></category>
            <category><![CDATA[dropna]]></category>
            <category><![CDATA[replace]]></category>
            <category><![CDATA[handling-missing-values]]></category>
            <category><![CDATA[missing-data]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Wed, 10 Jan 2024 17:51:47 GMT</pubDate>
            <atom:updated>2024-01-10T17:57:14.431Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Missing data can occur when no information is provided for one or more items or for a whole unit.</li><li>It also refers to as NA(Not Available) value in pandas.</li></ul><p>Example:</p><p><em>Suppose different users being surveyed may choose not to share their income, some users may choose not to share the address in this way many datasets went missing. Especially ,woman feel insecured for sharing some personal details</em></p><h3>Missing data is represented by two values:</h3><h4>None :</h4><p>None is a python singleton object that is often used for missing data in python code.</p><h4>NaN:</h4><p>(Not A Number), a special floating point value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*PB7Cq6cWbiUtMrh9" /></figure><h3>What Can We Do?</h3><h4>-&gt; Either fill the null values with some values</h4><h4>-&gt; Drop such rows</h4><h4>-&gt; Replace them</h4><h3>Filling Null Values-</h3><p>Here we use the method called as <em>fillna()</em></p><ul><li>The <em>fillna() </em>method replaces the NULL values with a specified value.</li><li>The fillna() method returns a new DataFrame object unless the inplace parameter is set to True, in that case the fillna() method does the replacing in the original DataFrame instead.</li><li>The general syntax of fillna() is:</li></ul><h4>dataframe.fillna(value, method, axis, inplace, limit, downcast)</h4><p><strong><em>Parameters:</em></strong></p><ul><li><strong><em>value : </em></strong><em>Static, dictionary, array, series or dataframe to fill instead of NaN.</em></li><li><strong><em>method :</em></strong><em> Method is used if user doesn’t pass any value. Pandas have different methods like bfill, backfill, or ffill which fills the place with value in the Forward index or Previous/Back respectively.</em></li><li><strong><em>axis: </em></strong><em>axis takes int or string value for rows/columns. Input can be 0 or 1 for Integer and ‘index’ or ‘columns’ for String</em></li><li><strong><em>inplace: </em></strong><em>It is a boolean which makes the changes in data frame itself if True.</em></li><li><strong><em>limit : </em></strong><em>This is an integer value which specifies maximum number of consecutive forward/backward NaN value fills.</em></li><li><strong><em>downcast : </em></strong><em>It takes a dict which specifies what dtype to downcast to which one. Like Float64 to int64.</em></li><li><strong><em>**kwargs : </em></strong><em>Any other Keyword arguments</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*okvaGD_cV-_6PrWRuLqNWQ.png" /></figure><p>Now,Filling the NULL values with ‘0’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*glq3Mbj4v5_IApMXOkLN2g.png" /></figure><p>There are two types of filling the null values :</p><ol><li>bfill(backward filling)</li><li>ffill(forward filling)</li></ol><h3>bfill-</h3><ul><li>It fills the nan value with the next value</li><li><strong><em>Syntax:</em></strong><em> DataFrame.bfill(axis=None, inplace=False, limit=None, downcast=None)</em></li><li><strong><em>Parameters:</em></strong><em><br></em><strong><em>axis :</em></strong><em> ‘rows’ or ‘columns’<br></em><strong><em>inplace :</em></strong><em> boolean, default False<br></em><strong><em>limit :</em></strong><em> integer value, No. of consecutive </em><em>nan cells to be populated.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*Rbx90YMr33FUSx5kN5L2Bw.png" /></figure><p>Now ,we can fill the nan values with the next value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*M8AYdT_cdyWXKMqfeqX8ww.png" /></figure><h3>f fill-</h3><ul><li>Filling Null Values with the previous value</li><li><strong><em>Syntax:</em></strong><em> DataFrame.ffill(axis=None, inplace=False, limit=None, downcast=None)</em></li><li><strong><em>Parameters:</em></strong><em><br></em><strong><em>axis :</em></strong><em> ‘rows’ or ‘columns’<br></em><strong><em>inplace :</em></strong><em> boolean, default False<br></em><strong><em>limit :</em></strong><em> integer value, No. of consecutive </em><em>nan cells to be populated.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*dV1WO1ULB70yiCptQQSOww.png" /></figure><p>The NaN values are filled with the previous value:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*P-PSloUGReEChU7BT36ikQ.png" /></figure><h3>Dropna()</h3><ul><li>dropna() method allows the user to analyze and drop Rows/Columns with Null values in different ways.</li></ul><p><strong><em>Syntax:</em></strong><em> DataFrameName.dropna(axis=0, how=’any’, thresh=None, subset=None, inplace=False)</em></p><p><strong><em>Parameters:</em></strong></p><ul><li><strong><em>axis: </em></strong><em>axis takes int or string value for rows/columns. Input can be 0 or 1 for Integer and ‘index’ or ‘columns’ for String.</em></li><li><strong><em>how: </em></strong><em>how takes string value of two kinds only (‘any’ or ‘all’). ‘any’ drops the row/column if ANY value is Null and ‘all’ drops only if ALL values are null.</em></li><li><strong><em>thresh: </em></strong><em>thresh takes integer value which tells minimum amount of na values to drop.</em></li><li><strong><em>subset:</em></strong><em> It’s an array which limits the dropping process to passed rows/columns through list. </em><strong><em>inplace: </em></strong><em>It is a boolean which makes the changes in data frame itself if True.</em></li></ul><h4>Dropping the rows if any of the nan value is present in that row</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*c7MyijVabCgtJbbXdGmveg.png" /></figure><h4>Dropping the entire row if all the values in a row are nan values</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*N-4-FZ_DkHMPqfKmG1dEvQ.png" /></figure><h4>Dropping the entire column if any of the value is nan value</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rF9WvtI9_xWgwCzxnaKv7g.png" /></figure><h4>Dropping the entire column if all the values are nan values in a column</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJNysPg1tfH_N3ljUPSeWg.png" /></figure><h3>Replace()</h3><ul><li>This method is almost similar to fillna().But it has some extra functionalities</li></ul><p><strong><em>Syntax:</em></strong><em> DataFrame.replace(to_replace=None, value=None, inplace=False, limit=None, regex=False, method=’pad’, axis=None)</em></p><p><strong><em>Parameters:</em></strong></p><ul><li><strong><em>to_replace : </em></strong><em>[str, regex, list, dict, Series, numeric, or None] pattern that we are trying to replace in dataframe.</em></li><li><strong><em>value :</em></strong><em> Value to use to fill holes (e.g. 0), alternately a dict of values specifying which value to use for each column (columns not in the dict will not be filled). Regular expressions, strings and lists or dicts of such objects are also allowed.</em></li><li><strong><em>inplace :</em></strong><em> If True, in place. Note: this will modify any other views on this object (e.g. a column from a DataFrame). Returns the caller if this is True.</em></li><li><strong><em>limit : </em></strong><em>Maximum size gap to forward or backward fill</em></li><li><strong><em>regex :</em></strong><em> Whether to interpret to_replace and/or value as regular expressions. If this is True then to_replace must be a string. Otherwise, to_replace must be None because this parameter will be interpreted as a regular expression or a list, dict, or array of regular expressions.</em></li><li><strong><em>method : </em></strong><em>Method to use when for replacement, when to_replace is a list.</em></li></ul><p><strong><em>Returns: </em></strong><em>filled : NDFrame</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Kp8F6_pYglhbxuJC.png" /><figcaption>Here the value of ‘E’ is replaced by the ‘East’</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcba16b03659" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi indexing]]></title>
            <link>https://medium.com/@yuvineeraj0/multi-indexing-9833de23bec1?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9833de23bec1</guid>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Wed, 27 Dec 2023 18:33:53 GMT</pubDate>
            <atom:updated>2023-12-27T18:33:53.033Z</atom:updated>
            <content:encoded><![CDATA[<h3>Multi Indexing- Multiple levels of indexing in dataframe or series</h3><blockquote><strong>Steps for using multi-indexing-</strong></blockquote><blockquote><strong>* Creating a dataframe with the multiple levels of indexing.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvE_QdQtz4KXfH24BqvIhg.png" /></figure><blockquote><strong>* We can specify the levels of indexing by using<em> ‘set_index()’ </em>method.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1RUCypBBXwRQXeiwFUw4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/0*dKciE62AGRA5k5d7.png" /></figure><h3>Uses of Multi Indexing:</h3><h4>1.Slicing -</h4><p>Slicing dataframe Pandas, as the name suggests, separates the dataframe as required by our parameters. Dataframes can be sliced either by rows or columns.</p><h4>2.Grouping-</h4><p>We use it to split the data into groups based on predefined criteria, along rows (by default, axis=0 ), or columns ( axis=1 ).</p><h4>3.Aggregating data based on levels of indexing-</h4><ul><li>Sum — Adds together all the specified data to get a total.</li><li>Average — Computes the average value of the specific data.</li><li>Max — Displays the highest value for each category.</li><li>Min — Displays the lowest value for each category.</li></ul><p>4.If you have data that is organized into different categories and sub categories , you can use multi indexing to represent this hierarchical structure in data frame</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*nO09SUxepTiZr3DVVhyRVQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9833de23bec1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Descriptive Statistics]]></title>
            <link>https://medium.com/@yuvineeraj0/descriptive-statistics-e18a410677ea?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e18a410677ea</guid>
            <category><![CDATA[central-tendency]]></category>
            <category><![CDATA[descriptive-statistics]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Wed, 13 Dec 2023 17:57:36 GMT</pubDate>
            <atom:updated>2023-12-13T17:57:36.961Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>It describes the characteristics of a data set.</li><li>It consists of three basic categories of measures:</li></ul><ol><li>Measures of central Tendency</li><li>Measures of central Variability</li><li>Frequency distribution.</li></ol><blockquote><strong><em>Measures of central Tendency</em></strong></blockquote><ul><li>It represents the single value of the entire data set</li><li>It provides the accurate description of the entire data in the distribution</li></ul><h4>The properties of the data, the measures of central tendency are selected:</h4><ul><li>If you have a symmetrical distribution of continuous data, all the three measures of central tendency hold good. But most of the times, the analyst uses the mean because it involves all the values in the distribution or dataset.</li><li>If you have skewed distribution, the best measure of finding the central tendency is the median.</li><li>If you have the original data, then both the median and mode are the best choice of measuring the central tendency.</li><li>If you have categorical data, the mode is the best choice to find the central tendency.</li></ul><h4>Central Tendency consists of 3 main measures:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*N-Y3mZCpLmO-10nJ.png" /></figure><h3>Mean</h3><ul><li>The mean represents the average value of the dataset.</li><li>It can be calculated by the sum of all values to the total number of values.It is also known as the arithmatic mean</li></ul><blockquote><em>Some other measures of mean used to find the central tendency are as follows:</em></blockquote><ul><li>Geometric Mean</li><li>Harmonic Mean</li><li>Weighted Mean</li></ul><p>→ If all the values in the dataset are the same, then all geometric, arithmetic and harmonic mean values are the same. If there is variability in the data, then the mean value differs.</p><p>Formula for Mean:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*LRQ9AXEIyJuq_9Ex.png" /></figure><h3>Median</h3><ul><li>Median is the middle value of the dataset in which the dataset is arranged in the ascending order or in descending order.</li><li>When the dataset contains an even number of values, then the median value of the dataset can be found by taking the mean of the middle two values.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*RlRDYssz-_U9Dngc.jpg" /></figure><ul><li>If the total number of observations are odd, we find the median by picking the middle value.</li><li>If the total number of observations are even ,then we find the median by finding the mean of two middle values.</li></ul><h3>Mode</h3><ul><li>The mode represents the frequently occurring value in the dataset.</li><li>Dataset may contain multiple modes and in some cases, it does not contain any mode at all.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*ijXX40m2NSAewAEu" /></figure><h3>Measures of Variability</h3><p><strong>Measures of variability -</strong>Variability refers to how spread scores are in a distribution out; that is, it refers to the amount of spread of the scores around the mean</p><blockquote>They include the range, interquartile range, standard deviation and variance.</blockquote><ul><li>Range: the difference between the highest and lowest values.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*k9Cpao3LxbyjnNwK.png" /></figure><h4>Interquartile range: the range of the middle half of a distribution.</h4><ul><li>Quartiles are the values that divide a list of numerical data into three quarters. There are three quartiles, first, second and third, denoted by Q1, Q2 and Q3. Here, Q2 is nothing but the median of the given data.</li><li>Quartiles are three values that split sorted data into four parts, each with an equal number of observations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IUZ6Q_jOT4ze_tjX.jpg" /></figure><h4>Standard deviation: average distance from the mean.</h4><ul><li>A standard deviation (or σ) is a measure of how dispersed the data is in relation to the mean.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OIlSAJUjKOuFRxBm.png" /></figure><h4>Variance: average of squared distances from the mean.</h4><ul><li>Variance is a measure of how data points differ from the mean.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*UG_dfLT1n4FxQIEp.png" /></figure><h3>Frequency Distribution:</h3><ul><li>A frequency distribution is a representation, either in a graphical or tabular format, that displays the number of observations within a given interval.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*2wAiNWF8No6sIG1x.png" /></figure><blockquote>The frequency distribution are of 3 types:</blockquote><h4>* Categorical: A categorical frequency distribution is the tabulation of the number of times each category occurs in the data. …</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s99E_4lAJZ-MUh0C.png" /></figure><h4>* Grouped.:The grouped frequency distribution is the tabulation of the frequencies for grouped ranged of numerical data. …</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/0*r8pwip0gfdKyngVw.png" /></figure><h4>* Ungrouped.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/0*47RklQP1XCauy6nA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e18a410677ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Magic methods]]></title>
            <link>https://medium.com/@yuvineeraj0/magic-methods-a4c795d0dfa6?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4c795d0dfa6</guid>
            <category><![CDATA[magic-method]]></category>
            <category><![CDATA[special-methods]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 18:52:25 GMT</pubDate>
            <atom:updated>2023-11-24T18:52:25.422Z</atom:updated>
            <content:encoded><![CDATA[<h3>__abs__ magic method</h3><ul><li>__abs__() method returns the absolute value of the object and implements the built-in function abs()</li></ul><p><em>syntax-</em><strong><em>object.__abs__()</em></strong></p><h3>__add__ magic method</h3><ul><li>__add__ magic method is used to add the attributes of the class instance</li></ul><blockquote>syntax-object1.__add__(self,obj2)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iPT-EVIsQkuEAV-U.jpeg" /></figure><h3>__and__ magic method</h3><ul><li>It implements the bitwise &amp;operation</li></ul><blockquote>syntax-object.__and__(self,other)</blockquote><h3>__bool__magic method</h3><ul><li>This method returns a boolean value,True or False</li></ul><blockquote>syntax — object.__bool__(self)</blockquote><h3>__ceil__ magic method</h3><ul><li>This implements the behaviour of the math.ceil function</li></ul><blockquote>syntax- object.__ceil__(self)</blockquote><h3>__delattr__ magic method</h3><p>This takes an object and an attribute name as arguments and removes the attribute from object.</p><blockquote>syntax-object.__delattr__(self,name)</blockquote><h3>__dir__magic method</h3><p>This implements the functionality of dir()function</p><p>dir() returns all(function,object,or variable) names in a given scope</p><p>syntax- object.__dir__()</p><h3>__divmod__ magic method</h3><p>It returns a tuple containing the quotient and the remainder when argument (dividedend) divided by argument2(divisior)</p><blockquote>syntax-object.__divmod__(self, other)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DR-s0SOo5F1cQnk1.jpg" /></figure><h3>__doc__magic method</h3><p>Each Python object (functions, classes, variables,…) provides (if programmer has filled it) a short documentation which describes its features. You can access it with commands like print myobject.</p><blockquote>syntax- object.__doc__()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*uNySdVJ5AcKkDXj6Pj4oaA.png" /></figure><h3>__eq__ magic method</h3><p>The __eq__ method takes two arguments: self(object on the left-hand side of == operator ) and other(object on the right-hand side of == operator). __eq__ method always returns a boolean value(True or False). If it returns something else other than the boolean value it will lead to TypeError.</p><blockquote>syntax- object.__eq__()</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*zNeyUUwIqonEx-MP.png" /></figure><h3>__float__ magic method</h3><p>The Python __float__() method implements the built-in float() function. So, when you call float(x) , Python attempts to call x. __float__() . If the return value is not a float, Python will raise a TypeError.</p><blockquote>syntax- object.__float__(self)</blockquote><h3>__floor__magic method</h3><p>The Python __floor__() method implements the behavior of the <a href="https://blog.finxter.com/python-math-functions/"><strong>math.floor()</strong></a> function. For example, if you attempt to call math.floor(x), Python will run the x.__floor__() method to obtain the return value.</p><blockquote>syntax-object.__floor__(self)</blockquote><h3>__floordiv__magic method</h3><p>implements the integer division operation // called floor division — as opposed to the true division operation/</p><blockquote>syntax-object.__floordiv__(self, other)</blockquote><h3>__format__magic method</h3><p>The __format__() method is used by string. format() as well as the format() built-in function. Both of these interfaces are used to get presentable string versions</p><blockquote>syntax-object.__format__(self, spec)</blockquote><h3>__ge__magic method</h3><p>The __ge__ method is the magical method that gets invoked when the &gt;= operator is used and it returns True or False. The built-in str() function returns a string from the object parameter and it internally calls the __str__() method defined in the int class.</p><blockquote>syntax-x. __ge__(y)</blockquote><h3>__getattribute__magic method</h3><p>The __getattribute__ method is invoked every time you get an attribute from an instance. Even if this object exists or doesn’t exist</p><blockquote>syntax-__getattribute__(self, name)</blockquote><h3>__gt__ magic method</h3><p>syntax-__gt__(self,other)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4c795d0dfa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DECORATORS]]></title>
            <link>https://medium.com/@yuvineeraj0/decorators-ffd1197e1a91?source=rss-3d8618e73c5d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffd1197e1a91</guid>
            <category><![CDATA[usecase-of-dataclass]]></category>
            <category><![CDATA[python-dataclass]]></category>
            <category><![CDATA[decorators-in-python]]></category>
            <dc:creator><![CDATA[Yuvineeraj]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 17:41:23 GMT</pubDate>
            <atom:updated>2023-11-22T17:41:23.768Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Decorators in Python are a powerful feature that allows you to modify the behavior of functions or classes.</li><li>They are denoted by the @ symbol followed by the decorator name, which is then placed above the function or class definition.</li><li>Decorators can be used for various purposes such as adding functionality, logging, authentication, and more.</li><li>They provide a way to modify or enhance the behavior of existing code without directly modifying it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RyEEybghnhJOikol.jpg" /><figcaption>In this first the color of apple is ‘orange ‘ by using decorator we can change the color also in the concept of funtionality</figcaption></figure><ul><li>wrap = joining the functionality to another function</li></ul><h4>Decorators are in the form a design</h4><pre>***************<br>     Yuvi<br>***************</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*9ByTe74-YohToV_BIyl1_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*wfR5a8tD8FA0DPsttJ8d3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*3uD10AkF_fq1NCXW0rG5-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*TxHfVd0PbNApgX46FZy-Lg.png" /></figure><h3><strong>Dataclass</strong></h3><ul><li>A data class is a class that is designed to only hold data values.</li><li>They aren’t different from regular classes, but they usually don’t have any other methods.</li></ul><blockquote>They are typically used to store information that will be passed between different parts of a program or a system.</blockquote><h3>Usecase of Dataclass</h3><h4>They are typically used to store information that will be passed between different parts of a program or a system.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*87HsQSTKQg2J5iyn.jpg" /><figcaption>* Thus dataclass stores the information of field,typeand value in different parts of a program</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gXBfHBB_5Z-ArzA8.png" /></figure><h4>Here also the dataclass decorator stores the information in different parts of a program</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffd1197e1a91" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>