Mathematical Notation to Represent Cumulative Sum

13.3k Views Asked by At

If I have a vector $x$

$$ x = [x_1, x_2, x_3, \ldots, x_N]$$

Is there any proper mathematical notation that best represents the cumulative sum?

$$ y = [x_1, x_1+x_2, x_1+x_2+x_3, \ldots, x_1+x_2+x_3+\ldots+x_N]$$

6

There are 6 best solutions below

1
On

Consider an infinite-dimensional vector that is trivial after some N. Then y is considered S_n the sequence of partial sums.

0
On

Each component will be of the form

$y_k=\sum_{i=1}^k x_i$.

0
On

If you use $a[i]$ to mean the $i$th element of a vector $a$, then you could define $y$ as:

$$y[i] = \sum_{k=1}^i x[k], \text{ for } i=1, 2, \dots, N$$

2
On

$$y = \begin{bmatrix} y_1 \\ \vdots \\ y_N\end{bmatrix}$$

where for $i \in \{ 1, \ldots, N \}$,$y_i = \sum_{j=1}^i x_j$.

0
On

One possible way to define it is: if $\mathbf v:=\langle v_1,v_2,\ldots,v_n\rangle$ is a vector (in an $n$-dimensional space) where the canonical projections are defined by

$$\pi_k(\mathbf v):=v_k$$

then you can define de vector $\mathbf w$ as

$$\mathbf w:=\left\langle \pi_1(\mathbf v),\pi_1(\mathbf v)+\pi_2(\mathbf v),\ldots,\sum_{k=1}^n\pi_k(\mathbf v)\right\rangle$$

0
On

$y=Ax$ where \begin{equation} A= \begin{bmatrix} 1&0&0&...&0&0 \\ 1&1&0&...&0&0 \\ 1&1&1&..&0&0 \\ \vdots&\vdots&\vdots&\vdots&\vdots&\vdots \\ 1&1&1&...&1&0 \\ 1&1&1&...&1&1 \end{bmatrix} \end{equation}