How do I represent the following sum of products using summation notation?
$$P = p_1 q_1 + p_2 (q_1+q_2) + p_3(q_1+q_2+q_3) + \dots $$
Here is my attempt: $P$ = $\sum_{i=1}^{n}{\{p_i\sum_{i=1}^{i}{q_i}\}}$
where $i = 1,2,...n$
Thanks
Note: what I am trying to capture in my equation is the sum of the product of a function 1 (p) with the cumulative sum of function 2(q) such that they both have the same number of elements