Sets, shapes and definitions

i≠ji \neq j Not equal

The two sides are different.

In ML papers

a≠ba \neq b says aa and bb are not equal. Under a sum it skips an index: ∑j≠i\sum_{j \neq i} adds every term except j=ij = i, as in contrastive losses that sum over the negatives, or self-attention variants that leave out a token's own position.

How to type it

LaTeXShows
\neq≠\neq
\ne≠\ne

A worked example

∑j≠2xj=x1+x3=1+5=6for x=(1,4,5)\sum_{j \neq 2} x_j = x_1 + x_3 = 1 + 5 = 6 \quad \text{for } \mathbf{x} = (1, 4, 5)

The term x2=4x_2 = 4 is left out.

Common confusions

Related

∑i=1Nxi\sum_{i=1}^{N} x_iSummationV∖{y}\mathcal{V} \setminus \{y\}Set differencef≡0f \equiv 0Identically equalE[f(x)]≈1N∑i=1Nf(xi)\mathbb{E}[f(x)] \approx \frac{1}{N}\sum_{i=1}^N f(x_i)Approximately equal

Decode this example →