<p>I hope you are asking about the approach of portfolio structuring rather than the measurement of returns. The former is more interesting because any level of &quot;return&quot; is achievable with leverage, which should incentivize you to incorporate the idea of risk into your problem.</p>
<p>This is a core problem of financial economics, so there is plenty of literature to explore in regards to &quot;clever ways&quot; of doing this. To help get you started, here is a quick intro (most of which you already have the intuition of):</p>
<ol>
<li>At time <span class="math-container">$t$</span>, each stock <span class="math-container">$i$</span> has a price <span class="math-container">$p_{i,t}$</span></li>
<li>In general, we care about the return <span class="math-container">$R_{i,t} = \frac{p_{i, t} + d_{i, t}}{p_{i, t-1}}$</span>, where <span class="math-container">$d_{i,t}$</span> represents the dividend of stock <span class="math-container">$i$</span></li>
<li>We typically consider the return to be a random variable <span class="math-container">$\tilde{R}_{i,t}$</span>, and thus care about it's expected return <span class="math-container">$E[\tilde{R}_{i,t}]$</span></li>
<li>Putting all of your <span class="math-container">$n$</span> stocks together with weights <span class="math-container">$w$</span> results in a portfolio return <span class="math-container">$E[\tilde{R}_{t}] = \sum\limits_{i=1}^n w_i E[\tilde{R}_{i,t}]$</span></li>
</ol>
<p>Now, your question what one should do from here. The classic formulation is <em>not</em> a constrained maximization with the portfolio return as the objective function. This is because such a problem does not account for the risk in your portfolio, by which we mean the variance of the portfolio <span class="math-container">$w'Vw = \sum\limits_{i=1}^n \sum\limits_{j=1}^n w_i w_j Cov(R_i, R_j)$</span>. The basic economic intuition is that the market won't allow you to have high returns without taking high risk.</p>
<p>Thus, the constrained optimization problem is to minimize your portfolio variance subject to a minimum level of return <span class="math-container">$\mu$</span> and your portfolio weights summing to 1:
<span class="math-container">$$\min\limits_w \frac{1}{2} w'Vw$$</span>
subject to:
<span class="math-container">$$w'E[R] \geq \mu$$</span>
<span class="math-container">$$w'1 = 1$$</span></p>
<p>This is the famous Modern Portfolio Theory result by Harry Markowitz. From here, there is plenty of clever work <em>and disagreement</em> on what constitutes the best portfolio, so I leave that to you :D</p>

CC BY-SA 4.0
2022-04-10T00:31:25.627Z
2022-04-10T00:31:25.627Z
qwerty
<p>I'm trying to find a mathematical way to decide what percentage of my capital I should invest in each stock of my portfolio to maximize my profit.</p>
<p>Here's my attempt to the solution:</p>
<p>Let's say my portfolio is made of <span class="math-container">$n$</span> stocks, and let's call <span class="math-container">$x_{i}$</span> the percentage of the capital invested in the stock, then the percentual profit I get after a certain period of time will be:</p>
<p><span class="math-container">$Profit= \sum_{i=1}^{n} x_{i}p_{i}$</span> where <span class="math-container">$p_{i}$</span> is the expected percentual gain or loss of the <span class="math-container">$i^{th}$</span> stock.</p>
<p>Maximizing this function constrained by the fact that the <span class="math-container">$x_{i}$</span>'s add up to 1 is a standard task of calculus.</p>
<p>My question is about the way of finding a sensible estimate of the <span class="math-container">$p_{i}$</span>s, I argue I could look at value by which each stock varied over the period of time I'm considering in the past and then take the mean value of that, but it looks a bit naive of an estimate.</p>
<p>Can someone suggest me a cleverer way of doing this?</p>

<mathematical-economics><finance><financial-economics><profit-maximization>
How can I choose how much to invest in each stock of my portfolio?
TheEconomist
# How can I choose how much to invest in each stock of my portfolio?

(Asked by: username_0 on 2022-04-08)

I'm trying to find a mathematical way to decide what percentage of my capital I should invest in each stock of my portfolio to maximize my profit.

Here's my attempt to the solution:

Let's say my portfolio is made of $n$ stocks, and let's call $x\_{i}$ the percentage of the capital invested in the stock, then the percentual profit I get after a certain period of time will be:

$Profit= \sum\_{i=1}^{n} x\_{i}p\_{i}$ where $p\_{i}$ is the expected percentual gain or loss of the $i^{th}$ stock.

Maximizing this function constrained by the fact that the $x\_{i}$'s add up to 1 is a standard task of calculus.

My question is about the way of finding a sensible estimate of the $p\_{i}$s, I argue I could look at value by which each stock varied over the period of time I'm considering in the past and then take the mean value of that, but it looks a bit naive of an estimate.

Can someone suggest me a cleverer way of doing this?

**Tags:** mathematical-economics, finance, financial-economics, profit-maximization

---

## 1 answers

### Answer by username_1 on 2022-04-10. Score: 2

I hope you are asking about the approach of portfolio structuring rather than the measurement of returns. The former is more interesting because any level of "return" is achievable with leverage, which should incentivize you to incorporate the idea of risk into your problem.

This is a core problem of financial economics, so there is plenty of literature to explore in regards to "clever ways" of doing this. To help get you started, here is a quick intro (most of which you already have the intuition of):

1. At time $t$, each stock $i$ has a price $p\_{i,t}$
2. In general, we care about the return $R\_{i,t} = \frac{p\_{i, t} + d\_{i, t}}{p\_{i, t-1}}$, where $d\_{i,t}$ represents the dividend of stock $i$
3. We typically consider the return to be a random variable $\tilde{R}\_{i,t}$, and thus care about it's expected return $E[\tilde{R}\_{i,t}]$
4. Putting all of your $n$ stocks together with weights $w$ results in a portfolio return $E[\tilde{R}\_{t}] = \sum\limits\_{i=1}^n w\_i E[\tilde{R}\_{i,t}]$

Now, your question what one should do from here. The classic formulation is *not* a constrained maximization with the portfolio return as the objective function. This is because such a problem does not account for the risk in your portfolio, by which we mean the variance of the portfolio $w'Vw = \sum\limits\_{i=1}^n \sum\limits\_{j=1}^n w\_i w\_j Cov(R\_i, R\_j)$. The basic economic intuition is that the market won't allow you to have high returns without taking high risk.

Thus, the constrained optimization problem is to minimize your portfolio variance subject to a minimum level of return $\mu$ and your portfolio weights summing to 1:
$$\min\limits\_w \frac{1}{2} w'Vw$$
subject to:
$$w'E[R] \geq \mu$$
$$w'1 = 1$$

This is the famous Modern Portfolio Theory result by Harry Markowitz. From here, there is plenty of clever work *and disagreement* on what constitutes the best portfolio, so I leave that to you :D


---

