Bias Vector in LaTeX (\mathbf{b})

b\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.

z=Wx+b, b∈Rm\mathbf{z} = \mathbf{W}\mathbf{x} + \mathbf{b}, \ \mathbf{b} \in \mathbb{R}^m
\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

All التعلم الآلي والذكاء الاصطناعي →

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.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث