AI Blocks

Putting the blocks together

This is taking longer than expected.

Try againBrowse the library
AI Blocks · All skills by job · Minds · Mini tools · How it works · From a source · Apps

AI Blocks › Handle money and investing

Portfolio mix optimizer

Give it asset returns. Get the best mix by risk and return, with an efficient frontier chart.

Portfolio mix optimizer is a free AI skill for the job "Handle money and investing". Give the instructions to an AI assistant that supports the required files and tools, then review its output.

Free · No account · BSD 2 Clause licence · Made by MathWorks · Level: advanced

Made by MathWorks. See the original on GitHub; we copied it as it is, with its licence.

What it does

Find the mix of assets that gives the most return for the risk you accept, and see it on an efficient frontier chart. Works in MATLAB with the Financial Toolbox, which is a paid product. You provide the expected returns and covariances of your assets. The skill builds a Portfolio object and sets the limits you care about, such as weight bounds, group caps, turnover and number of holdings. It then solves for minimum risk, best Sharpe ratio or a target return, and draws the frontier. It insists on the built-in Portfolio tools instead of hand-coded solvers, and helps fix errors from the estimate methods.

You give it

You get

Use it when

How to use it

  1. Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
  2. Ask for the job in your own words. Your AI opens the skill when it fits.
  3. It works best when your AI can run MATLAB with the Financial Toolbox.

More for Handle money and investing

Every handle money and investing skill