<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Jagdish Aneshwar</title>
        <link>https://paragraph.com/@jagdish-aneshwar-2</link>
        <description>undefined</description>
        <lastBuildDate>Sun, 23 Aug 2026 08:11:52 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Jagdish Aneshwar</title>
            <url>https://storage.googleapis.com/papyrus_images/1627d02a08ea621703bec848287aceab9ba8a3ea92231f55d64ba9af1fe486df.jpg</url>
            <link>https://paragraph.com/@jagdish-aneshwar-2</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[ACID Properties in DBMS | By Jagdish Aneshwar]]></title>
            <link>https://paragraph.com/@jagdish-aneshwar-2/acid-properties-in-dbms-by-jagdish-aneshwar</link>
            <guid>vVZh2ATOfCjPQt0Ghlnn</guid>
            <pubDate>Mon, 20 Nov 2023 06:53:42 GMT</pubDate>
            <description><![CDATA[Understanding ACID Properties: Building Trust in Digital TransactionsIn rapidly growing world of indi’s digital payment ecosystem. UPI(*Unified Payment Interface *— It is an instant payment system developed in india) has experienced unprecedented growth. In 2017, UPI has seen 100Mn transactions with value worth of 67 Bn INR. UPI has witnessed exponential surge in use. Fast forwarding to 2023, the total volume of UPI transactions made are 83.75 Billion with value worth in trillions. With thous...]]></description>
            <content:encoded><![CDATA[<h2 id="h-understanding-acid-properties-building-trust-in-digital-transactions" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Understanding ACID Properties: Building Trust in Digital Transactions</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6921eea60debb5ac652d17d291ba84af410fa2ac05f8329c801c12974ecb24d9.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In rapidly growing world of indi’s digital payment ecosystem. UPI(*Unified Payment Interface *— It is an instant payment system developed in india) has experienced unprecedented growth. In 2017, UPI has seen 100Mn transactions with value worth of 67 Bn INR. UPI has witnessed exponential surge in use. Fast forwarding to 2023, the total volume of UPI transactions made are 83.75 Billion with value worth in trillions. With thousands of transactions taking place everyday, it becomes important to ensure that each transaction that is taking place is reliable and consistent. Ensuring confidence of users in system.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/dcbd1d75a044a8a45fda21aa0ece759c537e3e3af4c8bb17d2ab11e1accef43d.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Source: National Informatics Centre(NIC)</p><p>ACID properties play a crucial role in upholding the consistency &amp; realibity of these transactions in this context. These ACID properties are <strong>Atomicity</strong>, <strong>Consistency</strong>, <strong>Isolation</strong>, &amp; <strong>Durability</strong>. Lets delve into each property along with an example.</p><ol><li><p><strong>Atomicity: Single Indivisible Unit</strong></p></li></ol><p>When first time using an online payment system have you ever pondered the scenario where funds are debuted from your acount but it’s not credited in recipient due of some error? To prevent such situation, atomicity dictates that every transaction must be treated as <em>single indivisible unit of work.</em></p><p>which simply means that, the transer of funds from one account to another will be treated as one transaction. However if you can see, this one transaction can be further broken down to more indivisible single process. The first transaction involves debiting funds from your account, and the second transaction would be crediting funds to recepient]s account. This breakdown highlights the very nature of atomicity, ensuring the execution of each individual step within the entire transaction process.</p><p><strong>So the system that follows the atomicity, should either commit entire transaction or no transaction will occur at all.</strong> In our case either both crediting &amp; debiting process will takes place or none of them will occur, ensuring no partial or incomplete operation.</p><p><strong>2. Consistency: Preserving the Integrity of the System</strong></p><p><strong>Consistency preserves the databases integrity by enforcing rules and constraints, thereby preventing any inconsistencies.</strong></p><p>In UPI, an individual can’t transfer funds more than 1 lakh Rupees in a day(it changes from bank to bank, but max limit is 1 lakh). this is a constraint placed inorder to protect user from possible threat of having big financial losses in case of compromised account or fraudulent activities.</p><p>if in case anyone attempts to transfer more than 1 lakh Rupees, inorder to protect the consistency of the database, the system must enforce the above mentioned rule. Consquently any such attempts of transfering funds more than 1lakhs Rupess must be terminated. This will result in maintaining the consistent state in the database, protecting against any deviations from predefined criteria.</p><p><strong>3. Isolation: Preventing Transaction Interference</strong></p><p><strong>Isolation ensures that concurrent transactions don’t interfere with each other and should remain independent, preventing potential issues like conflicting reads and updates.</strong></p><p>Daily thousands of transactions are made and it becomes important to isolate of each of the transaction. Lets understand it through a real world example. Consider your in the shop or the mall and there are numerous people who are engaged in shopping or paying for groceries. The shop has multiple QR code linking to one account. Now, imagine you have paid to shopkeeper after your shopping by scanning same QR code used by other. However your payment is not reflecting in the shopkeepers account.</p><p>This may happen because other customers simultaneously making payment to same account. The system is accessing and modifying simultaneously the same data i.e, shopkeepers account. This may lead to override of your transaction details before they are commited on shopkeepers account. This situation is occured because someone else is making a payment exactly at the same time as you do. In UPI the changes from one transaction won’t be visible to the other until they are committed, thereby avoiding anyconflicts and maintaining data consistency</p><p><strong>4. Durability: Ensuring Permanent Changes</strong></p><p><strong>Durability assures that once a transaction is committed, its changes are permanent and survive any system failures.</strong></p><p>Think that you received your monthly salary of 20k via UPI, that very day you decided host party and invited all of your collegues for party. You and your friends are enjoying the party and living your moments. Everything is going well until you attempted to make payment at the end of party, only to discover that transaction has failed because of insufficient balance. So you you check your balance and it is showing ZERO.</p><p>This is an example of Non-Durable system. In such system even after commiting transaction like you receiving your salary, they do not become permanent or these transactions mayn’t survive the system failure. In above example the record of your salary wasn’t retained for some reason, resulting in disappearnace of your funds.</p><p>In case of Durable system, once the transaction is committed successfully, it will retain it permanently. durability ensures that the changes are stored persistently and will not be lost for any reason, even if system is crashed.</p><p>The <strong>ACID</strong> properties form the bedrock of database systems, offering the necessary assurance of reliability, consistency, and data integrity, especially in managing multiple concurrent transactions. Understanding and implementing these principles is essential for maintaining a resilient and trustworthy database environment.</p><p>Thank you for taking the time to read the article. If you enjoyed the article, hit the “clap” button and stay connected with me by following me on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.linkedin.com/in/jagdish-aneshwar"><strong><em>Linkedin</em></strong></a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/JagdishAneshwar"><strong><em>GitHub</em></strong></a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@jagdish_aneshwar"><strong><em>Medium</em></strong></a>. <strong>Visit: </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://thejagdish.com/?utm_source=Mirror&amp;utm_medium=article&amp;utm_campaign=Mirror+Articles"><strong>thejagdish.com</strong></a>.</p>]]></content:encoded>
            <author>jagdish-aneshwar-2@newsletter.paragraph.com (Jagdish Aneshwar)</author>
        </item>
        <item>
            <title><![CDATA[Evaluation Metrics For Regression Model]]></title>
            <link>https://paragraph.com/@jagdish-aneshwar-2/evaluation-metrics-for-regression-model</link>
            <guid>nbgM3eynRNVi4PFRpj4x</guid>
            <pubDate>Fri, 03 Nov 2023 18:51:31 GMT</pubDate>
            <description><![CDATA[Photo by Fleur on UnsplashWhen we develop a ML model, it becomes important to measure the performance of the model. After measuring its performance and rebuilding the model to advance it, repeat the process until it becomes better and better. Here, **metrics **help us track the performance of our model. so that we can know if the change made to our model improves it or not.Metrics for RegressionMean Absolute Error(MEA)Mean Squared Error(MSE)Root Mean Squared Error(RMSE)Root Mean Squared Log E...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4e620f97c4648f9e9cb8a1ddc0d6d20a66b387dc9b94cdebab1d6f7c7e72960a.webp" alt="Photo by Fleur on Unsplash" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Photo by Fleur on Unsplash</figcaption></figure><p>When we develop a ML model, it becomes important to measure the performance of the model. After measuring its performance and rebuilding the model to advance it, repeat the process until it becomes better and better.</p><p>Here, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.investopedia.com/terms/m/metrics.asp#:~:text=Metrics%20are%20measures%20of%20quantitative%20assessment%20commonly%20used%20for%20comparing,internal%20managers%20and%20external%20stakeholders.">**metrics **</a>help us track the performance of our model. so that we can know if the change made to our model improves it or not.</p><h2 id="h-metrics-for-regression" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Metrics for Regression</h2><ul><li><p><strong>Mean Absolute Error(MEA)</strong></p></li><li><p><strong>Mean Squared Error(MSE)</strong></p></li><li><p><strong>Root Mean Squared Error(RMSE)</strong></p></li><li><p><strong>Root Mean Squared Log Error(RMSLE)</strong></p></li><li><p><strong>R-Squared or R²</strong></p></li><li><p><strong>Adjusted R²</strong></p></li></ul><h2 id="h-mean-absolute-errormae" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Mean Absolute Error(MAE):</h2><p>It is also called an “L1 error.” It calculates the average of the absolute difference between actual and predicted values. It only measures the magnitude of the error, not its direction.</p><p>The MAE value increases linearly with an increase in errors, and the input and output values have the same unit*.*</p><p>The MAE value is between 0 and infinity. where 0 indicates a good-performing model and higher values indicate a poor-performing model.</p><p>Following is the formula for mean absolute error:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b2f454d0139a44672ba385c694ab54af8c3b95673e2720ca4e3f3e9eae51c1c0.webp" alt="Formula of MAE" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Formula of MAE</figcaption></figure><p>Here, true value is the actual value of the data point, and prediction is the predicted value of that data point. In MAE, all individual errors have the same weight.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4f46e3a0877a6ec82ec9e1bfac718add9fd6cd236d81226ee8615dc93cc3ac81.webp" alt="Fig-1: Graph of actual and predicted data points" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Fig-1: Graph of actual and predicted data points</figcaption></figure><p>In the above graph, red dots are individual data points, the straight blue line is predicted values, and the green vertical line is the magnitude of the difference between the actual data point and the predicted data point.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/54fcc67403470aa8ee73687e1440a76ae1d8d97f75ecb142d511b6f3a7d6475f.webp" alt="Fig-2: MAE vs Prediction" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Fig-2: MAE vs Prediction</figcaption></figure><p><strong>When should MAE be used?</strong></p><ul><li><p>It is used because it is intuitive and simple to understand for the stakeholder’s.</p></li><li><p>MAE penalises the larger error.</p></li></ul><p><strong>Drawback of MAE:</strong></p><ul><li><p>As you can see from Fig. 2, the graph of MAE is not differentiable at 0.</p></li></ul><h2 id="h-mean-squared-errormse" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Mean Squared Error(MSE):</h2><p>MSE is one of the most common loss functions used for regression problems. It is the sum of the squared difference between actual and predicted values.</p><p>It is also known as <em>L2 loss</em>. Unlike MAE, the MSE value increases <em>exponentially with an</em> increase in error.</p><p>Here, all individual errors have <em>different weights</em>. Squaring the error yields a higher weight for the outlier (the larger error) and a lower weight for the smaller error.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/67c1c2d2ad8bfebcf06c430fb040712c9b849a587b0b8b29dfb47fc2e825b208.webp" alt="Formula of Mean Squared Error(MSE)" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Formula of Mean Squared Error(MSE)</figcaption></figure><p>Following graph shows the parabola. Beacuse MSE value is quadratic, therefore it is also called as <em>Quadratic loss</em>. Since it is a parabola, it has only <em>one global minima</em>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2575b0969af0698e2b9693e11b39086260a35214dd60bd075ac93154cd80fb8f.webp" alt="Fig-3: MSE VS Prediction" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Fig-3: MSE VS Prediction</figcaption></figure><p><strong>Benefits of MSE:</strong></p><ul><li><p>As it has only one global minima and doesn’t have any local minima, we can use it in gradient descent.</p></li><li><p>It is helpful for dealing with an outlier, as it penalises a larger error.</p></li></ul><p><strong>Drawbacks of MSE:</strong></p><ul><li><p>If our model has a single large error, the error value increases. because of squaring.</p></li><li><p>MSE is <em>scale-dependent</em>.</p></li></ul><h2 id="h-root-mean-squared-error-rmse" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Root Mean Squared Error (RMSE):</h2><p>It is nothing more than the source of MSE.It shows the standard deviation of prediction errors (i.e., residuals). It tells you how the data is scattered around the best-fit line.</p><p>It also penalises larger errors with a high weight, but comparatively less than MSE. Input and output data are stored in the same unit.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7dc1726bbcb75a1b7ce9dfb02254647c59b4fd025dd3ddd6d9d99943c2afc699.gif" alt="Fomula of Root Mean Squared Error" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Fomula of Root Mean Squared Error</figcaption></figure><p><strong>Benefits of RMSE:</strong></p><ul><li><p>Because the input and output data are in the same unit.It is very intuitive to understand.</p></li><li><p>It is differentiable, so we can use an optimization algorithm.</p></li></ul><p><strong>Drawbacks of RMSE:</strong></p><ul><li><p>Like MSE, RMSE is also scale-dependent.</p></li><li><p>It is not robust to outliers.</p></li></ul><h2 id="h-root-mean-squared-log-error-rmsle" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Root Mean Squared Log Error (RMSLE):</h2><p>Here we take the log of actual and predicted values in order to penalise errors in predictions of large values more than smaller values. It is used in problems where the target variable has a* skewed distribution* or when the model’s prediction is used on an <em>exponential scale</em>. It is not affected by the scale of the values being predicted.</p><p>It does not penalise high errors due to the log. Underestimation* *is penalised more than overestimation.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/c7048d1fa094f4a71a6de270d35e49a41073db0b5be88e5de087ee9e04cdf73b.webp" alt="Fomula of Root Mean Squared Log Error" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Fomula of Root Mean Squared Log Error</figcaption></figure><p><strong>Benefits of RMSLE:</strong></p><ul><li><p>It is also differentiable, which is good for an optimization algorithm.</p></li><li><p>It is scale-invariant, which means it is not affected by the scale of the values being predicted.</p></li></ul><p><strong>Drawbacks of the RMSLE:</strong></p><ul><li><p>There is a biassed penalty that gives more weight to underestimation compared to overestimation.</p></li></ul><h2 id="h-r-squarer" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">R-square(R²):</h2><p>It is also called the “coefficient of determination” or “goodness of fit.” The residual sum of squares (SSres) is compared to the total sum of squares (SStot). It defines to what extent the variance of independent variables explains the variance of the dependent variable.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/afb8864a97db5adb62e35478d8a36624535cbc1377deb3a6df1c3ab49792d568.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>It either increases or doesn’t change, but it never decreases when new data is added. which means we are not penalised for an unimportant feature. every time we add data to it. it increases, even if the variable is insignificant.</p><p>It is assumed that every independent variable explains variations in the dependent variable.</p><p>The R2 value ranges from 0–1. where 1 indicates that the independent variables explain 100% of the variation in the target variable and 0 indicates that the independent variables don’t explain any of the variation in the target variable.</p><p><strong>Drawback of R2:</strong></p><ul><li><p>As I said earlier, when a new variable is added to R2, it either increases or doesn’t change without detecting the significance of the newly added variable. which means an insignificant variable will also be added to the R2 value.</p></li></ul><h2 id="h-adjusted-radj-r" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Adjusted R²(adj-R²):</h2><p>It measures the proportion of variations explained by only those independent variables that really help explain the dependent variable.</p><p>Unlike R2, the adjusted R2 punishes you for adding such independent variables that don’t help in predicting the dependent variable. Adjusted R² is ≤ R².</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f0b54d917e3d6779ccf3633f4062080c9550789eda9ce0b27a1e0ed7add42906.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Where,</p><ul><li><p>N = no of observations</p></li><li><p>p = no of independent variable.</p></li></ul><blockquote><p>Note: R-squared has many flaws to consider before using it. I never use it to compare models or to determine the goodness of fit. So I suggest that you reconsider using it, and if you want to use it, then read these articles: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.displayr.com/8-tips-for-interpreting-r-squared/"><strong>“8 Tips for Interpreting R-Squared,”</strong></a> written by Tim Bock, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://data.library.virginia.edu/tag/clay-ford/page/5/"><strong>“Is R-Squared Useless?”</strong></a> written by Clay Ford.</p></blockquote><p>Thank you for taking the time to read the article. To get more updates following me on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.linkedin.com/in/jagdish-aneshwar"><strong><em>Linkedin</em></strong></a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/JagdishAneshwar"><strong><em>GitHub</em></strong></a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@jagdish_aneshwar"><strong><em>Medium</em></strong></a>. <strong>Visit: </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bit.ly/40spfz2"><strong>https://thejagdish.com</strong></a></p>]]></content:encoded>
            <author>jagdish-aneshwar-2@newsletter.paragraph.com (Jagdish Aneshwar)</author>
        </item>
    </channel>
</rss>