Generating Series by mathimatical expression.
Posted: Tue Oct 23, 2012 4:05 am
Hello everyone,
I wnat to generate a Series refering to the ''pefect foresight price'' of a stock index. The definition of this Price is as follows:
Let D and P be the Series of Real Dividends and Index Prices. Then the perfect foresight price of the strategy of holding the stock until the end of sample T, collecting the annual Dividends until T and selling it for the Price P_T (end of sample price) is sum_(j=0)^(T-t)(1/1+r)^(j+1)*D_(t+j) + (1/1+r)^(T-t)*P_T. sum_(j=0)^(T-t) menas in this case the sum of discounted dividends (r is the interest rate) from Observation t until the end of sample T. So for the first observation all dividends are included in this sum, for the second observation all dividends except for the first one and so on...
I have got two problems. First I don't know whether there is a sum operator in Eviews which computes for example in my case the sum of discounted dividends. Second, this sum is dynamic (different for every observation, since the holding periods become smaller and smaller for later observations since the time until the end of sample observation T decreases. Does anyone know the syntax for computing dynamic expressions like the one above?
I wnat to generate a Series refering to the ''pefect foresight price'' of a stock index. The definition of this Price is as follows:
Let D and P be the Series of Real Dividends and Index Prices. Then the perfect foresight price of the strategy of holding the stock until the end of sample T, collecting the annual Dividends until T and selling it for the Price P_T (end of sample price) is sum_(j=0)^(T-t)(1/1+r)^(j+1)*D_(t+j) + (1/1+r)^(T-t)*P_T. sum_(j=0)^(T-t) menas in this case the sum of discounted dividends (r is the interest rate) from Observation t until the end of sample T. So for the first observation all dividends are included in this sum, for the second observation all dividends except for the first one and so on...
I have got two problems. First I don't know whether there is a sum operator in Eviews which computes for example in my case the sum of discounted dividends. Second, this sum is dynamic (different for every observation, since the holding periods become smaller and smaller for later observations since the time until the end of sample observation T decreases. Does anyone know the syntax for computing dynamic expressions like the one above?