Learn from doing
1. Formular to represent a dataset
This is about a dataset that “n” number of tuples (x,y) with “x” exists in “p” dimension space while “y” has value either 1 or 0.
1 2 |
[latex]\mathcal{D} = \{ (\mathbf{x}_i, y_i)\mid\mathbf{x}_i \in \mathbb{R}^p,\, y_i \in \{-1,1\}\}_{i=1}^n[/latex] |
- \mathcal: this is for calligraphic font built into LaTeX
- \mathbf: bold font
- \mathbb: dsfont reference
- \mathscr: script letters
- \mathfrak: for Fraktur (old German letters)
- \mathtt: for typewriter font
- \mathrm: for roman font
- _: underscore is to denote subscripts
- ^: superscripts
- \mid: draw the middle line separator
- \in: exists in
- ()[] \{ \}: parenthese
2. Summation and fraction
1 2 |
\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} |
- subscript with superscript right after
- use bracket to group
3. Sums and integrals
1 2 |
\sum \int \sum_1^n. \sum_{i=0}^\infty i^2 \prod \bigcup \bigcap \iint |
4. Common symbols
1 2 3 4 5 6 |
* [latex]\lt \gt \le \ge \neq[/latex] * [latex]\times \div \pm \mp [/latex] * [latex]\cup \cap \setminus \subset \subseteq \supset \in \notin \emptyset[/latex] * [latex]\to \rightarrow \leftarrow \Rightarrow \Leftarrow \mapsto[/latex] * [latex]\ldots \cdots[/latex] |
- \(\lt \gt \le \ge \neq\)
- \(\times \div \pm \mp \)
- \(\cup \cap \setminus \subset \subseteq \supset \in \notin \emptyset\)
- \(\to \rightarrow \leftarrow \Rightarrow \Leftarrow \mapsto\)
- \(\ldots \cdots\)
Connect with us