Skip to content

Commit

Permalink
feat(time-series): update exercise 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nprimo committed Nov 24, 2023
1 parent 0a665ad commit 1905906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subjects/ai/time-series/audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1905906

Please sign in to comment.