Pratham Prasoon Profile picture
May 14, 2021 9 tweets 3 min read Read on X
What you see below is called "Sigma notation".

Something I've encountered frequently in the math for machine learning and number theory.

Here's how it works.
🧵 👇🏻
This weirdly shaped 'E' is the capital greek alphabet called 'Sigma' and it stands for summation.

Essentially what it allows us to do is represent equations where we add multiple items, let me show you what I mean.
Let's say we have to add squares of numbers from 1 to 10, you'd write it as an equation like this.

(The square of a number is basically multiplying the number by itself, like 2², read as 2 squared = 2 x 2 =4)
You can write the same equation using Sigma notation.

Doesn't it look cleaner and shorter?
I like to think of Sigma as a 3 step process (like a 'for' loop if you're a programmer), you start from the bottom and then go towards the top.
In this case:

1. You start with i=1 (on the bottom)
2. Square it
3. Add 1 to the previous value of i
4. Square it
5. Add this to the previous squared number
6. Repeat until i reaches the number on the top which is 10 here.
At times you will notice a number in front of sigma, this basically multiplies with the entire equation with that particular number.
I first encountered sigma in the RSME (root mean squared error) formula, a commonly used metric while training machine learning models.
Before we bring this thread to end, try solving this sigma equation.

If you like bite-sized content on math, machine learning and programming consider following me.

Until next time, peace out.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Pratham Prasoon

Pratham Prasoon Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @PrasoonPratham

Feb 26
Hey Twitter!

I’m really excited to share what we’ve been working on at Eclipse for the past few months.

Here’s an Eclipse Mainnet 101 🧵 Image
@EclipseFND In 2010 Bitcoin became the first public blockchain that allowed for the transfer of digital currency.

In 2014 came Ethereum which built on Bitcoin’s foundation and added programmability of this digital currency with smart contracts. This allowed for the creation of dApps.
These smart contracts are programs that live on the blockchain and can used for things like
- Defi: Lending, borrowing and exchange protocols
- Real World Assets: Physical or tangible assets like real estate, commodities that can be tokenized
- Identity systems like ENS
Read 10 tweets
Jan 22, 2023
Twitter, forget JavaScript for a second. Take a look at Rust.

Rust developers are paid up to $230,000/year. There's insane demand for this tech!

Here's why and how I'm learning this beast of a programming language in 2023🧵
Python and JavaScript/TypeScript are my go-to languages for building web apps, backends, ML models, and anything I want.

However, recently I've wanted to learn something that's more low-level and faster.

That's how I got to learning Rust.
Rust is called by many the modern replacement for C++.

It is designed for systems programming, with a focus on safety, performance, and concurrency.

Here are some features of Rust that make it incredibly nice to work with:
Read 12 tweets
Jun 25, 2022
ROC curves are a topic that you will encounter at some point in your machine learning journey.

They are one the most important metrics for evaluating a model.

Let's how they work and how to use them 🧵 👇🏻
A new disease 'X' has been identified in a region, fatal enough to kill a patient if not treated.

A team of engineers develop a machine learning model to predict if someone has this disease or not, surprisingly it caught every infected person!

But there's a big problem...
You see, this is a special disease that affects only a very small group of people and the victims show no symptoms.

It is caused by several factors such as the amount of fat in someone's body, muscle density, etc.
Read 37 tweets
Jun 22, 2022
Google spent $36,847 an hour for 40 days straight to train a machine learning model called AlphaGo.

Put simply, making these models is an expensive and lengthy process.

Here's how you can potentially train your models upto 2x faster with the magic of parallelization🧵
Training a machine learning model is typically a 3 step process called 'ETL', which stands for:

- Extraction
- Transformation
- Loading

Let's take a closer look at these phases.
1/ Extraction

This is start of the machine learning pipeline where the raw data is extracted from wherever it is stored.

This data needs to be processed before it is fed into the model.
Read 15 tweets
Nov 27, 2021
A couple of days ago I showed you how to mint NFTs on the blockchain with JavaScript in ~10 lines of code.

You can do the same thing with Python 🐍

Here's how it works🧵
Typically minting an NFT would require you to write code in this language called 'solidity' to create a smart contract which would then mint the nft.

It require lots of testing, security checks and remember, once code goes on the blockchain it cannot be changed.

This sucks.
What we'll do instead is use the thirdweb's Python library, and with ~10 lines of code we'll mint NFTs without any hassle.

I'll guide you through the entire process, let's go 👇🏻
Read 14 tweets
Nov 21, 2021
You make your own cryptocurrency on the blockchain with JavaScript in just these 9 lines of code.

Here's how it works🧵
We'll be using thirdweb's JavaScript sdk to make this happen.

To start you'll need to setup Metamask and store your private key, here's a guide that'll take you through the entire process.

🔗 thirdweb.com/portal/guides/…
Next head over to thirdweb.com/start, you will be guided through a setup process.

These steps are to get your metamask setup with the thirdweb interface.
Read 15 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(