Bias Vector in LaTeX (\mathbf{b})
- LaTeX command
\mathbf{b}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Bold lowercase b, the usual notation for a bias vector added after a linear transformation.
The bias shifts each neuron's pre-activation, as in \mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, and per-layer versions are written \mathbf{b}^{(l)}. Bold lowercase signals a column vector by convention. \mathbf gives upright bold; if you want bold italic vectors, as some physics journals do, use \boldsymbol{b} or \bm{b} instead. Be consistent about indexing: the i-th bias entry is b_i in plain italic, not bold, since it is a scalar. In linear models, the intercept is often written as b or w_0 rather than a bold vector.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Bias Vector: $\mathbf{b}$
\[ \mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, \ \mathbf{b} \in \mathbb{R}^m \]
\end{document}Related symbols
- Cross Entropy
H(p, q) - Weight Matrix
\mathbf{W} - Entropy
H(X) - Theta Star
\theta^* - Mutual Information
I(X; Y) - Theta
\theta
Frequently asked questions
- How do I write Bias Vector in LaTeX?
- Type \mathbf{b} in math mode, for example $\mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, \ \mathbf{b} \in \mathbb{R}^m$. It works in plain LaTeX without loading any package.
- Which package do I need for \mathbf{b}?
- None. \mathbf{b} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \mathbf{b} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathbf{b}$ in running text.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers