Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis journal #64

Merged
merged 4 commits into from
Oct 25, 2023
Merged

Analysis journal #64

merged 4 commits into from
Oct 25, 2023

Conversation

Autoparallel
Copy link
Contributor

@Autoparallel Autoparallel commented Oct 24, 2023

Closes #62

To validate our strategies, we need to be able to simulate them.
This is done by creating a simulation environment that can be used to run the strategies and log the results.
Once they are simulated, we can analyze the results to see how well the strategies performed.
Simulation and analysis work together in tandem via the scientific method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big true

These are metrics that should be able to be tested across any strategy.

### Raw contract-level performance metrics:
- Gas costs for swaps, LP, maintenance.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is maintenance referring too here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintaining a target vol, for example. It will cost the LPs some to reweight the pool so we should track this.

- Sharpe ratio
- Volatility compared to external market
- Max drawdown compared to external market
- High water mark compared to external market
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like these, do you remember the one matt kept showing us the graph of on the aera vaults?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No but I'm sure he can share: @kinrezC

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should just do all of the graphs from the aera vaults and then some 😛

- Low to no dependence on the drift parameter

**Testing:**
- Generate a GBM with sweeps:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How fast can we have this one done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

today

- Run for 50 random paths for each parameter.
- Run each path for 100,000 steps over the course of 5 years.

#### Variable Volatility
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You and @kinrezC should cook on these


### Performance Metrics

#### Reweighting Speed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here i am curious about these results

@Autoparallel Autoparallel marked this pull request as ready for review October 24, 2023 23:48
Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@kinrezC kinrezC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lots of good stuff in here, we can probably convert a lot of these to tickets at some point

@0xJepsen 0xJepsen merged commit c768310 into main Oct 25, 2023
@Alexangelj Alexangelj deleted the analysis-journal branch October 31, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More information on priority of analysis tools and stats
4 participants