Markowitz

Markowitz perform optimization to the weights of a known portfolio through Modern Portfolio Theory (MPT). Added to the traditional MPT are Machine Learning models to predict stock returns and sentiment analysis adjust return expectations based on media outlook. Markowitz relies on ReturnPred, Sentiment, and Cache modules on the backend. None of the listed modules are user-facing.

__init__ Arguments

Attributes

Methods

optimize_return

Optimize the portfolio for a target return.

Parameters:

Returns:

optimize_volatility

Optimize the portfolio for a target volatility.

Parameters:

Returns:

efficient_frontier

Plot the efficient frontier.

Parameters: - target_input: Literal['return', 'volatility']: The target input for the efficient frontier. - n: int: Number of points to plot on the efficient frontier. - save: bool: Save the plot as a .png file.

Returns: - None