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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기