Could optimal account risks depend on what kind of returns the future will bring according to your trade plan?
Simple theoretical logic:
If the future provides great profit opportunities with 100% certainty, the most proftable bet is to not use stop loss at all, so as to not lose any of the profitable positions underway.
If the future provides bleak profit opportunities with 100% certainty, the most profitable bet is to abstain, or at least switch trade plan entirely.
Everything in between should be dictated by personal preference for risk, market opinion, trade plan and realistic execution.
What is optimal depends on your criterions for optimization and what the future will bring, eg. your perspective on the overall trend. IOW, your personal preference for overall risk vs reward and opinion on the market beyond what can be known in advance.
You mention expectancy, but this is only the historical returns, and future results are prone to change, especially if you start changing trading parameters. Optimize too aggressively based on historical returns at your financial peril, right up to the climax!
Kelly Criterion is based on the same, or on assumptions about expectancy, so same goes for that. Additionally Kelly Criterion seems to be about overall diversification in the portfolio allocation rather than individual position risk to account. I doubt many people really need that kind of real-time portfolio optimization for their retail trading. Number of positions in portfolio would then depend more on how many can you handle effectively.
CAPM and Efficient Frontier is predicting, and not really about position risk to account either.
In practice, risking 1-3% of account per instrument is comfortable trading. Beyond that, and you really ought to know what you're doing. There may be people using advanced formulas to find optimized position risk to account sizes, but wether they're really winning or losing might then also be more a product of luck and timing with large account risks. Then they'll never know until it's too late and meet their own personal Black Swan. Some advanced traders even go quite below 1% account risk, allowing for larger positions with the same account risk.
This is all a bit too theoretical.
Practically, you would want to simplify, and build from something working, rather than complicating and risking too much, which can be phsycologically and financially devastating.
So I'd conclude with what has been said many times before, this depends more on your personal preferences for risk and opinions about the market. Since the future is unknown, the real optimal settings are unknown until after the profit opportunities, and threats(!), have passed. In all the optimizing activity based on externals, don't forget yourself and your personal situation in the equation!
Rather than depending too much on unknowns and changing important trade parameters in real-time, many losses are due to simple trading mistakes. That's a kind of risk to really focus on. You'll have concrete facts available each and every time it happens. It'll be much more concrete and practical work. A little here and a little there do add up over time. Just mentioning this for those types who like complicated formulas and theoretical gains more than doing the practical necessary grunt-work.