From c16d327b180ef4e9ddd1a8392bb33cf0ec9b0246 Mon Sep 17 00:00:00 2001 From: nprimo Date: Fri, 24 Nov 2023 15:15:14 +0000 Subject: [PATCH] feat(time-series): update exercise 4 --- subjects/ai/time-series/audit/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ai/time-series/audit/README.md b/subjects/ai/time-series/audit/README.md index ff80af5f0..8961f9e93 100644 --- a/subjects/ai/time-series/audit/README.md +++ b/subjects/ai/time-series/audit/README.md @@ -135,7 +135,7 @@ The first way to do it is to compute the return without for loop is to use `pct_ **My results can be reproduced using: `np.random.seed = 2712`. Given the versions of NumPy used I do not guaranty the reproducibility of the results - that is why I also explain the steps to get to the solution.** -###### For question 1, is the return computed as Return(t) = (Price(t+1) - Price(t))/Price(t) and returns the following output? Note that if the index is not ordered in ascending order the future return computed is wrong. The answer is also accepted if the returns is computed as in the exercise 2 and then shifted in the futur using `shift`, but I do not recommend this implementation as it adds missing values! +###### For question 1, is the return computed as Return(t) = (Price(t+1) - Price(t))/Price(t) and returns the following output? Note that if the index is not ordered in ascending order the future return computed is wrong. ```console Date