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

Function to calculate stdevs from historical price or return data #566

Open
wayner9 opened this issue Nov 1, 2023 · 0 comments
Open

Function to calculate stdevs from historical price or return data #566

wayner9 opened this issue Nov 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@wayner9
Copy link

wayner9 commented Nov 1, 2023

PyPortfolioOpt will calculate historical return information and can generate a covariance matrix given prices or returns. It can also generate a covariance matrix given a correlation matrix and stdevs. But what about the stdevs? Is there a function to calculate stdevs from historical returns? I don't see this?

You could derive the stdevs taking the square root of the diagonal elements of the covariance matrix, but why not provide a direct function to calculate stdevs? It could be useful to generate a report for a bunch of assets showing the historical return and the stdev (aka volatility) for each asset.

@wayner9 wayner9 added the enhancement New feature or request label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant