Mathematics for Beginners

Siraj Raval · Beginner ·🔢 Mathematical Foundations ·7y ago

Key Takeaways

The video demonstrates a 10-step process to understand any math equation, covering topics such as mathematics for beginners, mathematical dependencies, and language models, utilizing tools like LaTeX, Sympy, and Python.

Full Transcript

and that is the nature of reality any questions yes well this get me laid yes hello world it's Suraj and learning mathematics will enable you to truly understand not just artificial intelligence but every other scientific discipline as well I'm gonna show you a 10 step process that anyone regardless of their background can use to understand any math equation either in a blog post a textbook or a scientific paper no matter how difficult it may seem then we're gonna use that process to understand an equation that I find particularly interesting a language model capable of generating coherent texts which we can then use to create our own Twitter bot that offers therapeutic advice to people with anxiety if you're new to the channel welcome subscribe to get updated when I release new educational videos math is the science of patterns and we've subdivided it into many different categories for example arithmetic and number theory study patterns of numbers and counting geometry studies patterns of shapes calculus studies the patterns of motion logic studies patterns of reasoning probability it deals with patterns of chance do you see the pattern here meta AF stem stands for science technology engineering and mathematics these topics are all related when we discover mathematical laws be that in physics or in artificial intelligence through the scientific process we can then engineer new types of technology thus the reason we have all the technology we've come to know and love is because we now understand a portion of the consistent patterns in nature which allows us to build these systems be it a rocket a language translation app or a hearing enhancer so if you want to build any new type of technology business or get a job in the field knowing math is crucial and because the language of mathematics is used across every discipline understanding it will help you jump into an entirely new field much faster for example the same techniques from calculus used find the growth rate of bacteria can also be used to find the direction to learn for neural nets and the acceleration of a moving object the calculus is my city it's become so easy to build generic apps and services these days that it's hard to differentiate yourself but if you implement AI in your service in some way something not every programmer knows how to do you can provide your customers with more personalized more accurate and more effective services so let's go through my 10 step process to read any math equation together remember math is a foreign language so we're going to need to work at it to gain literacy the ability to read and write it step one is to find a math equation that sparks joy within us we shouldn't try to read an equation that we don't care about or we won't be able to sustain the motivation necessary to understand it for example when I took some time to study physics the equation I wanted to understand the most was Schrodinger's equation because it caused so much controversy in the physics community around the nature of reality a challenge to so many long-held beliefs but it ultimately ended up becoming a very useful tool to make later discoveries and create all sorts of technologies once we find an equation we care about we need to define its objective what is the equation trying to say what does it represent how is it being used read it in the context of how its presented be it in an article a scientific paper a video or a textbook chances are that there will be some English text before and after the equation that describes it once we've done that it's time to understand the dependencies equations are written with a specific audience in mind be it computer scientists biologists or even laymen we need to ensure that were the intended audience or be willing to do what it takes to become the intended audience all math is cumulative almost everything we do in math will depend on subject we've previously learned for example even the most simple equations from calculus will be difficult to understand unless we've first understood its major dependency algebra the source text that were reading the math equation from will usually mention the math topic involved and if not we can Google some of the mathematical terms it's using to try to discern what branch of mathematics that term is from once we know what branch or branches of math an equation is using we'll write them down then literally Google what math topic do I need to learn X the answers to that question will be spread across sites like Quora and Stack Exchange the upvote functionality on these websites helps us ensure the validity of the answers consider it crowd sourced accreditation once we've understood the mathematical dependencies and have written them down we know exactly what we'll need to learn to understand the equation but are we gonna pause our analytical process to learn these subjects in their entirety no this brings us to the next step pull up the related formula sheets I have several formula sheets that I use for each math subject they condense the entire subject into one or a few pages they're like cheat sheets I went ahead and compiled all of them into a list for you the link to it will be in the video description we're gonna pull up the related formula sheets in two separate tabs on our computer that we can use to help decipher the equation we're trying to understand to truly understand an equation passively staring at it is pretty much worthless we're gonna need to investigate question and probe that brings us to our next step write it out we can use either a pencil pen or whiteboard unlike English the language of math is built to capture ideas perfectly we say things precisely once later sentences will presuppose perfect comprehension of earlier ones so reading it demands our full attention we'll need to fill in the missing steps every variable every symbol needs to be fully understood before moving on to the next one we'll rewrite the equation in our own handwriting then make marks around it to help us describe it in further detail the simple act of writing it with our hands helps ingrain it in our minds much more efficiently and this is backed by several studies the formula sheets will help us roughly piece together what an equation is saying and we can use these pieces to translate the whole thing into the English language which is the next step in the process long ago mathematicians agreed to follow a set of rules when doing calculations and we call this the order of operations these are components like add subtract and divide if it's not a number it's probably an operation the order is parentheses exponents multiplication division addition and subtraction we can remember this using the acronym PEMDAS using this ordering and the description of symbols we'll get from the related formula sheets we can verbalize an equation in the English language and this will help improve our understanding the next step is to translate the equation into Python code sometimes the equation we view will be in latex format and sometimes it will just be an image if it's an image we'll use the tool I found called image to latex to convert the image of the equation into latex format once it's in latex we'll use this tool I found called latex to symp I which converts the latex format into symbolic Python Python is great because it helps make equations more human readable and also allows us to plug in different variables to see how the equation works in different contexts with instant results right to the command line all hail the green snake the next step is to visualize it there are many tools to help with this simpie has a built-in plotting module which is an easy first step there's also the Wolfram Alpha website input an equation and it will create all sorts of graphs to help us further in grain or understanding of it another is google image search and another that's less well known is google's animation search sometimes an equation describes a continuous process thus animations are even better than images for understanding once we translated it into different mediums it's time to apply it to problems we find interesting math is abstract it's applied to our lives find examples of problems that it's usually applied to and use the Python version of the equation to try to solve a problem in that direction it's important to be patient here it's not unusual to spend an hour or several trying to use a single equation to solve a problem and develop a complete understanding around the entire process remember whoever's work you're reading didn't write it out in a split second they spent lots and lots of time and energy to come up with those solutions so be patient and forgiving with yourself putting the hard mental work now to reap the benefits later that which tastes bitter at first will taste like nectar in the end and the last step in this process is also perhaps the most important one to ensure you've truly understood the equation explain it to another human being able to explain a concept is the true measure of your understanding of it write a blog post join a study group start a study group call up Microsoft support I don't know or slack channel is a great resource to find humans to explain things to everyone is enthusiastic about learning and teaching make the equation your own paraphrase it put it into your own words and if you can do that I promise you you will understand it now let's use this process in practice to understand a simple language model called the unigram model language models assign probability values to sequences of words when you're typing something on your phone those three words that appear right above the keyboard on your phone that try to predict the next word you'll type are all outputs of a language model in this example we're going to go through a book called speech and language processing which is freely available on the web in Chapter three we come upon this equation labeled a unigram model if we can understand this we can use it to implement our own Twitter therapist bot from the textbook it seems like this equation helps predict the next word in a sentence using that prediction over and over again word by word it can help generate an entire sentence that would be in the style of whichever text data set we use it on say a data set of logs from human to human therapeutic conversations there are some terms here like Markov and chain rule and probability that all seem to be related to the field of probability theory so we'll pull up our probability formula sheet and behold each of these terms is in it will now write out this equation by hand and make notes as to what each of these terms mean it's using the chain rule apply to compute the joint probability of words in a sequence it's leveraging something called the markov property that says that the probability distribution of future states of the process depend only upon the present state not on the sequence of events that preceded it in this context that means the probability of the next word can be estimated given only the previous k number of words for example if k equals 1 the probability of the word depends only on the probability of the previous word this Markov assumption lets us formally define n gram models the simplest one would be defined as a unigram model where k equals 1 this can be extended to become a bigram model where k equals 2 or a trigram model and so on using our Python tools we can convert this into Python code pretty easily Google Image Search can help us find a nice visualization of this concept as well and we'll go ahead and apply it to a real world problem by using the Twitter API to create a simple chat bot in a few lines of Python as for the last part of this process the explanation that's everything I've said throughout this video plot twist now we can move on to more cutting-edge language models that involve deep neural networks like what open a I demonstrated recently with its GPT to model the formula sheets are going to be in the video description and there are three things to remember from this video math is the science of patterns and it's useful across every scientific discipline you can use my 10 step technique to understand any math equation and language models play a central role in natural language processing systems what's an equation you want to learn more about let me know in the comments section and please subscribe for more educational videos for now I've got to learn simulated annealing so thanks for watching

Original Description

Learning how to read math equations will enable you to truly understand not just Artificial Intelligence, but every other Scientific discipline. I’m going to demonstrate a 10 step process that anyone, regardless of their background, can use to understand any math equation, either in a blog post, a textbook, or a Scientific paper, no matter how difficult it may seem. We'll use my process to understand a language model, capable of generating text as a Twitter bot. Enjoy! Formula Sheets as a Github repository: https://github.com/llSourcell/Mathematics_for_Beginners Twitter bot that uses a unigram model: https://github.com/sudhanshusks/twitter_bot Want more education? Connect with me here: Twitter: https://twitter.com/sirajraval Facebook: https://www.facebook.com/sirajology instagram: https://www.instagram.com/sirajraval The 10 Step process (more details in the vid!): 1- Find an Equation that sparks joy 2- Define the Objective 3- Understand the dependencies 4- Pull up related formula sheets 5- Write it out 6- Translate it to English 7- Translate it to Code 8- Visualize it 9- Apply it to real-world problems 10- Explain it Formula sheets: Statistics http://web.mit.edu/~csvoss/Public/usabo/stats_handout.pdf Probability https://static1.squarespace.com/static/54bf3241e4b0f0d81bf7ff36/t/55e9494fe4b011aed10e48e5/1441352015658/probability_cheatsheet.pdf Calculus http://tutorial.math.lamar.edu/pdf/Calculus_Cheat_Sheet_All.pdf Differential Equations http://furius.ca/cqfpub/doc/diffequs/diffequs.pdf Combinatorics http://www.baskent.edu.tr/~tkaracay/etudio/ders/math/GenelMath/Combinatorics.pdf Linear Algebra https://www.souravsengupta.com/cds2016/lectures/Savov_Notes.pdf Number Theory https://www.docdroid.net/rAbDvxF/number-theory-cheatsheet.pdf Geometry http://mdk12.msde.maryland.gov/instruction/curriculum/hsa/geometry/math_reference_sheet.html Logic http://www.pitt.edu/~woon/courses/ps2703_logic.pdf ---------------------------------------------------------------
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Siraj Raval · Siraj Raval · 0 of 60

← Previous Next →
1 What is Bitcoin?
What is Bitcoin?
Siraj Raval
2 5 Ways to Use Bitcoin
5 Ways to Use Bitcoin
Siraj Raval
3 BTC Fever - Siraj [Music Video]
BTC Fever - Siraj [Music Video]
Siraj Raval
4 5 Reasons to Build Decentralized Apps
5 Reasons to Build Decentralized Apps
Siraj Raval
5 The Interplanetary File System
The Interplanetary File System
Siraj Raval
6 How to Build a Dapp in 3 min
How to Build a Dapp in 3 min
Siraj Raval
7 Life Before Smartphones
Life Before Smartphones
Siraj Raval
8 4 Ways to Use Smart Contracts
4 Ways to Use Smart Contracts
Siraj Raval
9 3 Dapps You HAVE to See
3 Dapps You HAVE to See
Siraj Raval
10 Char's Life as a BitTorrent Engineer
Char's Life as a BitTorrent Engineer
Siraj Raval
11 4 Reasons AlphaGo is a Huge Deal
4 Reasons AlphaGo is a Huge Deal
Siraj Raval
12 Build a Neural Net in 4 Minutes
Build a Neural Net in 4 Minutes
Siraj Raval
13 Sentiment Analysis in 4 Minutes
Sentiment Analysis in 4 Minutes
Siraj Raval
14 The Hackathon Life
The Hackathon Life
Siraj Raval
15 Your First ML App - Machine Learning for Hackers #1
Your First ML App - Machine Learning for Hackers #1
Siraj Raval
16 Build an AI Composer - Machine Learning for Hackers #2
Build an AI Composer - Machine Learning for Hackers #2
Siraj Raval
17 Build a Game AI - Machine Learning for Hackers #3
Build a Game AI - Machine Learning for Hackers #3
Siraj Raval
18 Build a Movie Recommender - Machine Learning for Hackers #4
Build a Movie Recommender - Machine Learning for Hackers #4
Siraj Raval
19 Build an AI Artist - Machine Learning for Hackers #5
Build an AI Artist - Machine Learning for Hackers #5
Siraj Raval
20 Build a Chatbot - ML for Hackers #6
Build a Chatbot - ML for Hackers #6
Siraj Raval
21 Build an AI Reader - Machine Learning for Hackers #7
Build an AI Reader - Machine Learning for Hackers #7
Siraj Raval
22 Build an AI Writer - Machine Learning for Hackers #8
Build an AI Writer - Machine Learning for Hackers #8
Siraj Raval
23 Build a Chatbot w/ an API - ML for Hackers #9
Build a Chatbot w/ an API - ML for Hackers #9
Siraj Raval
24 One-Shot Learning - Fresh Machine Learning #1
One-Shot Learning - Fresh Machine Learning #1
Siraj Raval
25 Generative Adversarial Nets - Fresh Machine Learning #2
Generative Adversarial Nets - Fresh Machine Learning #2
Siraj Raval
26 Tone Analysis - Fresh Machine Learning #3
Tone Analysis - Fresh Machine Learning #3
Siraj Raval
27 Generate Rap Lyrics - Fresh Machine Learning #4
Generate Rap Lyrics - Fresh Machine Learning #4
Siraj Raval
28 Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Siraj Raval
29 Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Siraj Raval
30 Build an Antivirus in 5 Min - Fresh Machine Learning #7
Build an Antivirus in 5 Min - Fresh Machine Learning #7
Siraj Raval
31 TensorFlow in 5 Minutes (tutorial)
TensorFlow in 5 Minutes (tutorial)
Siraj Raval
32 Build a Recurrent Neural Net in 5 Min
Build a Recurrent Neural Net in 5 Min
Siraj Raval
33 Build a Simulation in 5 Min
Build a Simulation in 5 Min
Siraj Raval
34 Build a TensorFlow Image Classifier in 5 Min
Build a TensorFlow Image Classifier in 5 Min
Siraj Raval
35 Tensorboard Explained in 5 Min
Tensorboard Explained in 5 Min
Siraj Raval
36 Generate Music in TensorFlow
Generate Music in TensorFlow
Siraj Raval
37 Build a Game Bot (LIVE)
Build a Game Bot (LIVE)
Siraj Raval
38 Deep Learning Frameworks Compared
Deep Learning Frameworks Compared
Siraj Raval
39 Introduction - Learn Python for Data Science #1
Introduction - Learn Python for Data Science #1
Siraj Raval
40 Build a Neural Network (LIVE)
Build a Neural Network (LIVE)
Siraj Raval
41 Twitter Sentiment Analysis - Learn Python for Data Science #2
Twitter Sentiment Analysis - Learn Python for Data Science #2
Siraj Raval
42 Recommendation Systems - Learn Python for Data Science #3
Recommendation Systems - Learn Python for Data Science #3
Siraj Raval
43 Predicting Stock Prices - Learn Python for Data Science #4
Predicting Stock Prices - Learn Python for Data Science #4
Siraj Raval
44 Pong Neural Network (LIVE)
Pong Neural Network (LIVE)
Siraj Raval
45 Deep Dream in TensorFlow - Learn Python for Data Science #5
Deep Dream in TensorFlow - Learn Python for Data Science #5
Siraj Raval
46 Visualizing Data with D3.js (LIVE)
Visualizing Data with D3.js (LIVE)
Siraj Raval
47 Genetic Algorithms - Learn Python for Data Science #6
Genetic Algorithms - Learn Python for Data Science #6
Siraj Raval
48 Enter Siraj [Music Video]
Enter Siraj [Music Video]
Siraj Raval
49 Build a Web Scraper (LIVE)
Build a Web Scraper (LIVE)
Siraj Raval
50 Why is P vs NP Important?
Why is P vs NP Important?
Siraj Raval
51 How to Make a Neural Network (LIVE)
How to Make a Neural Network (LIVE)
Siraj Raval
52 How to Make an Amazing Tensorflow Chatbot Easily
How to Make an Amazing Tensorflow Chatbot Easily
Siraj Raval
53 How to Make an Amazing Video Game Bot Easily
How to Make an Amazing Video Game Bot Easily
Siraj Raval
54 How to Make a Tensorflow Neural Network (LIVE)
How to Make a Tensorflow Neural Network (LIVE)
Siraj Raval
55 How to Make a Simple Tensorflow Speech Recognizer
How to Make a Simple Tensorflow Speech Recognizer
Siraj Raval
56 Joel Shor - Really Quick Questions with an Awesome Google Engineer
Joel Shor - Really Quick Questions with an Awesome Google Engineer
Siraj Raval
57 How to Make a Path Planning Algorithm Easily (LIVE)
How to Make a Path Planning Algorithm Easily (LIVE)
Siraj Raval
58 The Best Way to Prepare a Dataset Easily
The Best Way to Prepare a Dataset Easily
Siraj Raval
59 Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Siraj Raval
60 How to Make a Tic Tac Toe Neural Network Easily (LIVE)
How to Make a Tic Tac Toe Neural Network Easily (LIVE)
Siraj Raval

This video teaches beginners how to read and understand math equations, which is crucial for understanding artificial intelligence and other scientific disciplines. It covers a 10-step process and utilizes various tools like LaTeX and Python.

Key Takeaways
  1. Find a math equation that sparks joy
  2. Define the objective of the equation
  3. Understand the dependencies of the equation
  4. Write out the equation to investigate and probe
  5. Use the order of operations (PEMDAS) to verbalize the equation in English
  6. Translate the equation into Python code
  7. Apply the chain rule to compute the joint probability of words in a sequence
  8. Leverage the Markov property to estimate the probability of the next word given the previous k number of words
💡 Understanding math equations is crucial for understanding artificial intelligence and other scientific disciplines, and can be achieved by following a 10-step process and utilizing various tools.

Related Reads

Up next
Solve Any Math Problem Step by Step — Free (Type or Snap a Photo)
Zariga Tongy
Watch →