---
title: "Affan Hamid (@affanhamid) | Hashnode"
description: "Affan Hamid (@affanhamid) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@affanhamid"
---

@affanhamid

# Affan Hamid

@affanhamid · London, UK · Joined August 2025

[Website](https://www.affanhamid.com/)

### [Basic guide to simple linear regression](https://blogs.affanhamid.com/basic-guide-to-simple-linear-regression?utm_source=hashnode&utm_medium=feed)

We've all been taught the classic equation of a straight line: \\(y=mx+c\\). But there's an application of this equation that has revolutionized the fields of economics, psychology, and many other scientific fields. Today we're going to learn about lin...

8 min read · [blogs.affanhamid.com](https://blogs.affanhamid.com/basic-guide-to-simple-linear-regression?utm_source=hashnode&utm_medium=feed)

[Aug 11, 2025](https://hashnode.com/posts/basic-guide-to-simple-linear-regression/689a21b2e24abb56968857fc)

### [Probability: The Probability Measure](https://blogs.affanhamid.com/probability-the-probability-measure?utm_source=hashnode&utm_medium=feed)

This is a continuation of Probability: Introduction to Measure Theory — Part of my probability theory. Today we’ll focus on how probability is defined through measure theory and how we can derive all the axioms of probability through the axioms of me...

4 min read · [blogs.affanhamid.com](https://blogs.affanhamid.com/probability-the-probability-measure?utm_source=hashnode&utm_medium=feed)

[Nov 28, 2024](https://hashnode.com/posts/probability-the-probability-measure/6896fb49295ef33bb86c688a)

### [Probability: Introduction to Measure Theory](https://blogs.affanhamid.com/probability-introduction-to-measure-theory?utm_source=hashnode&utm_medium=feed)

Probability has always been this mysterious idea in mathematics. It’s definition has changed and evolved over the years to now a very abstract way of thinking about uncertainty. In this article, we begin with an introduction to the rigorous backgroun...

5 min read · [blogs.affanhamid.com](https://blogs.affanhamid.com/probability-introduction-to-measure-theory?utm_source=hashnode&utm_medium=feed)

[Nov 19, 2024](https://hashnode.com/posts/probability-introduction-to-measure-theory/6896fb6b4b694abd9c2185af)

### [How to use RAISE and CRUD clauses in the same case trigger in SQLite](https://blogs.affanhamid.com/how-to-use-raise-and-crud-clauses-in-the-same-case-trigger-in-sqlite?utm_source=hashnode&utm_medium=feed)

I recently had to build a trigger for the return management system for an eCommerce website. Essentially we had two tables: RETURN and RETURN\_ITEM. I had to make a trigger on insert on RETURN\_ITEM, which raises an error and deletes a RETURN entity. L...

1 min read · [blogs.affanhamid.com](https://blogs.affanhamid.com/how-to-use-raise-and-crud-clauses-in-the-same-case-trigger-in-sqlite?utm_source=hashnode&utm_medium=feed)

[Nov 12, 2024](https://hashnode.com/posts/how-to-use-raise-and-crud-clauses-in-the-same-case-trigger-in-sqlite/6896fb4f295ef33bb86c688c)

### [A comprehensive guide to database normalization](https://blogs.affanhamid.com/a-comprehensive-guide-to-database-normalization?utm_source=hashnode&utm_medium=feed)

Designing database is an integral part of any data application — one that will determine how secure, reliable, and easy to use your entire database application is. To help us design good databases, we have classes of rules we must follow. These class...

15 min read · [blogs.affanhamid.com](https://blogs.affanhamid.com/a-comprehensive-guide-to-database-normalization?utm_source=hashnode&utm_medium=feed)

[Oct 18, 2024](https://hashnode.com/posts/a-comprehensive-guide-to-database-normalization/6896fc12030e4c26508c635a)
