If I have some sum and subtract another why is the following relation true?
$$\sum_{h}^{n} \sum_{i}^{n} f(h,i) - \sum_{h \neq \theta}^{n} \sum_{i \neq \theta}^{n} f(h,i) = \sum_{i}^{n} f(\theta,i) $$
If I have some sum and subtract another why is the following relation true?
$$\sum_{h}^{n} \sum_{i}^{n} f(h,i) - \sum_{h \neq \theta}^{n} \sum_{i \neq \theta}^{n} f(h,i) = \sum_{i}^{n} f(\theta,i) $$
Copyright © 2021 JogjaFile Inc.
Let $[n] = \{1, 2, \ldots, n\}, \theta \in [n]$ and $N_\theta = [n] \setminus \{\theta\}$.
I am assuming
Then,
The difference includes all terms where $h=\theta$ or $i = \theta$, i.e. $$ \sum_{h\ne \theta} f(h, \theta) + \sum_{i\ne \theta} f(\theta, i) + f(\theta,\theta) = \sum_{h\ne \theta} f(h, \theta) + \sum_i^n f(\theta, i) $$
A slightly modified version of your expression would be true: $$\sum_{h}^{n} \sum_{i}^{n} f(h,i) - \sum_{h \neq \theta}^{n} \sum_{i}^n f(h,i) = \sum_{i}^{n} f(\theta,i) $$