Equations



Equations are a vital part of exact science. You therefore need to practice with them, also/especially as a computer science student. 


Intended for: BSc, MSc, PhD

Equations can be very challenging for some computer science students, but you really need them for both explanation and conceptual understanding: 

1. Write equation yourself in Latex (never copy-paste them from screenshots)

Example (below): Never screenshot an equation, and never put equations in figures (left). Never screenshot entire algorithms (Right), gives different font and notation. 


BAD:

2. Use symbols (not text) 

Always write symbols in your equations, never use full words, they make them very hard to read. 


Example (below): define symbols like $\alpha$  for learning rate (an not 'lr') and $\theta$ for the set of parameters. 

3. Introduce every symbol

The third common mistake is that people often use symbols without explaining what they mean. You need to tell the reader what every certain symbol represents. 

4. Write variables in Italic, operators in Roman

The most important convention of formulas is that variables are written in Italic, and other operators/labels are written in Roman (non Italic). 

BAD: variables after the max should appear in italic (like first part). 

BAD: operator (log) written as variable (use \log)

5. Stick to notational conventions

Make sure you stick to notational conventions, which makes it much easier to read your equations: 

6. Keep notation consistent

7. Practice!

Students that struggle with equations, often have the tendency to not practice with them, and ignore them as much as possible. However, in the long run this is a very bad tactic: it will make the problem worse and worse. Understanding and writing equations is really about practice, and you should start practicing both as soon as possible.