Questions tagged [optimization]

The selection of a best element from some set of available alternatives. Typically consists of maximizing or minimizing a real function by systematically choosing input values from within an allowed set and computing the value of the function.

Filter by
Sorted by
Tagged with
-1
votes
0answers
35 views

How do i calculate the parameters a,b,ρ,m,σ for the SVI model? [closed]

How do i calculate the parameters a,b,ρ,m,σ for the SVI model using Python?
0
votes
1answer
61 views

Optimize Bollinger Bands Strategy

I was proving a very simple strategy with Bollinger Bands for a intraday timeframe (1 minute) that buy on lower band and sell in a higher band (Very common strategy), but in backtesting in E-Mini SP ...
-1
votes
0answers
62 views

Conic programming for portfolio optimization instead of quadratic programming: Typo in source?

The benefit of using a cone constraint like $$\sqrt{\left(w[1]^{2}+w[2]^{2}\right)^{2}}<r$$ compared to a non-cone constraint like $$\sqrt{\left(w[1]^{2}-w[2]^{2}\right)^{2}}<r$$ is that the ...
1
vote
0answers
49 views

$\epsilon$-arbitrage model

In the model here described, Bertsimas says that we can use the Robust Optimization to find the replicating portfolio the value of which is such that minimize the difference $|P(\widetilde{S},K)-W_T|=\...
1
vote
0answers
43 views

There are several ways optimize portfolio, why use Black Litterman rather than Mean variance

I know there are two ways to optimize portfolio. What are the limitations and advantages by using Black Litterman over Mean variance.
0
votes
0answers
49 views

Conic optimization in finance

Linear programming and quadratic programming are types of convex optimization that are often used. Does conic optimization or programming have any applications in finance? Or for where the previous ...
0
votes
0answers
16 views

Is the feasible set of portfolios an epigraph?

In mathematics, the epigraph of a function is the set of points lying on or above its graph, in this case a convex function: The efficient frontier from mean-variance portfolio analysis encloses an ...
1
vote
0answers
32 views

Maximizing sharpe ratio using cvxpy or cvxopt

I have a dataframe $n$ by $m$ representing $m$ timeseries of returns (each column is a different time series) with total $n$ number of observations, I want to find weight vector of length $m$ such ...
2
votes
1answer
50 views

Derivation of mean-variance portfolio weights as closed-form analytical solution from Lagrangean equations

I am trying to find a closed form solution for the constrained MVO problem below. $\max_w w'\mu - \frac{\lambda}{2}w'\Sigma w $ s.t. $w'$1 = 1 The Lagrange for the objective is $L(w, \gamma) = w'\mu ...
2
votes
0answers
159 views

Can genetic algorithm help in portfolio optimisation when convexity is not verifiable

I have the following portfolio cost function to maximise: $$ w^T\mu-\frac{1}{2}\gamma w^T\Sigma w+\frac{1}{6}\gamma^2 w^TM_3(w\otimes w), $$ which considers the co-skewness ($M_3$ tensor), $γ$ is the ...
2
votes
1answer
108 views

Is quadratic programming used to maximize portfolio skewness and kurtosis?

Quadratic programming, a type of convex optimization, is used to solve the minimum variance portfolio weights $$w = \arg \min_w \sigma_P^2 = w^\top \Sigma w$$ because the objective function coincides ...
3
votes
0answers
84 views

Linear programming optimization problems in finance

I'd like to know what are, if any, the applications of linear/non linear programming optimization techniques for financial markets. I'm a business major, and I want to find an argument for my thesis ...
1
vote
1answer
148 views

Maximize account equity over a historic time series

Inputs: array of OHLC forex bars of size N, max leverage L, e.g. 200:1, a fixed bid ask spread S, a fixed lookahead whipsaw window W (e.g. 3 bars long, see below). Desired output: a list of tuples {...
0
votes
1answer
93 views

Double objective in portfolio optimization

Is there anything infeasible or ethically wrong about optimizing portfolios like this? $$\min_w \enspace w' \Sigma w + w' C w$$ where $\Sigma$ is the asset return covariance matrix, and $C$ is the ...
0
votes
0answers
17 views

Configuration of control parameters tol and delta in the rsolnp package

I am working with the rugarch package which includes a solver.control argument. I am using the solnp solver. I can pass values for tol and delta. In the rsolnp the authors suggest that the control ...
0
votes
0answers
39 views

Optimizing Portfolio Return by Targeting Variance

I understand Markowitz and targeting returns to minimize our variance. I know this optimization problem well and its constraints. However when the reverse scenario is to be considered I get very ...
0
votes
0answers
31 views

Extreme and rare events affecting the market

There are extreme events affecting the high-probability [short-term] market such as lowering interest rates that rocket stock prices, even though such events are rare and the market's response can be ...
1
vote
0answers
64 views

How to optimize a non-linear least squares problem with cvxpy/cvxopt

I know how to minimize a linear function $f : \mathbb{R}^{n} \rightarrow \mathbb{R}$ with CVXPY but in my problem the function $f$ is quadratic and hence the problem is now in the form : $$\lVert AW-...
-1
votes
1answer
41 views

How to build a portfolio following the Smart beta process by dividend? [closed]

I'm having trouble finding the method to track smart beta dividend management. I have an Excel file which contains the prices and the dividends of certain companies, and I want to build a portfolio ...
2
votes
0answers
114 views

Transform this non-linear portfolio optimization problem into a quadratic optimization problem

I have a portfolio optimization problem similar to this question here, with a V-shape transaction costs such that we pay a fee proportionally to the sum of absolute rebalancing: $$TC(\omega) = \frac{1}...
0
votes
0answers
47 views

Martingale optimal transport

I'm a student and currently studying martingale optimal transport for deriving upper and lower contract bounds but i happen struggling on the fact that in most papers , interest rates are not taken in ...
1
vote
0answers
115 views

Dynamic programming and Bellman equation to obtain the maximum

This is the problem of Marhsall (1992) "Inflation and Asset Returns in a Monetary Economy" and Balvers and Huang (2009) "Money and the C-CAPM" Suppose an endowment economy where the representative ...
0
votes
1answer
39 views

Multiple tracking error constraints - is this problem convex?

Let's say I have a return forecast for each stock in the DAX index. I also have a covariance matrix for these 30 stocks. I want to solve for the 30 weights by maximising the forecast portfolio ...
0
votes
0answers
15 views

Monte carlo error and minimum variance hedge ratio

So I was running a monte carlo simulation for two assets and a portfolio consisting of 1 quantity of the first asset and short a fraction x of the second asset to hedge, where the fraction is ...
1
vote
0answers
67 views

CVaR portfolio optimization with risk aversion parameter

I'm trying to implement the Rockafellar's function described in this paper http://past.rinfinance.com/agenda/2009/yollin_slides.pdf with a risk aversion parameter for my thesis. The function to ...
2
votes
1answer
69 views

Backtesting with a walkforward approach

I am setting up a backtesting using a walkforward optimization model to find out if a trading strategy performs well or not and I would like to clarify some doubts: First of all what is the correct ...
0
votes
1answer
25 views

Suggestions for choosing an optimization algorithm for fitting custom GARCH models by QMLE in R?

I am trying to fit a custom GARCH model by QMLE in R. I have written out the log likelihood function and am now working on optimizing it. However, choosing an optimization algorithm has proven to be ...
2
votes
2answers
147 views

Problem with the maximum likelihood for a GARCH-type of model

I'm currently working with the following GARCH process from Heston and Nandi (2000): \begin{align*} r_{t+1} - r_f &= \lambda h_{t+1} - \frac{h_{t+1}}{2} + \sqrt{h_{t+1}}z_{t+1} \\ h_{t+1} ...
4
votes
1answer
164 views

Optimization problem with a constraint

Consider the following maximization problem $$\max_{\{\tau(\cdot),q(\cdot)\}}\int_{\underline{\theta}}^{\bar{\theta}}\left(\theta q(\theta)-\dfrac{\gamma\sigma^{2}}{2}q^2(\theta)-\tau(\theta)\right)f(\...
1
vote
0answers
53 views

Optimized search for yield-to-worst of a callable bond

Suppose that I need to find the yield-to-worst of a callable bond, and that the option is American (call any time). The bond may have step-up coupons and/or non-constant call price (oprion strike). ...
4
votes
1answer
194 views

stochastic programming book recommendations

Hi: Can anyone recommend an introductory book on stochastic programming ? There are obviously so many books on Amazon but I can't tell easily which ones could be useful. It would be good if it had ...
0
votes
1answer
29 views

Weighting function for parametric estimation of the Risk-neutral density function

I would like to estimate the Risk-neutral density function (RND) implicit in financial Call option prices by a parametric approach where the parameters of the RND (for instance mean and variance for a ...
0
votes
0answers
33 views

setting up a inequality constraint that is dynamic

I have the following problem: typical mean variance minimize w_long(S)w_long.T + w_shortSw_short.T - lambda*mu I am having issue formulating this constraint in cvxopt lets say we have 10 securities ...
0
votes
0answers
71 views

Is optimising for the Final Wealth is the same as optimising log of growth rate in Kelly Criterion?

A direct, brute force approach could be used to find the Optimal Portfolio. Consider simple play. There's a biased coin with 55% probability of win. The simulator play as a single person with 100$ ...
0
votes
1answer
226 views

Optimization with turnover constraint

I am optimizing using scipy.optimize using SLSQP. I am looking to minimize the variance with some upper bounds and lower bounds on each stock. I am also looking to constraint the weight so that the ...
1
vote
0answers
88 views

Error in optimize.portfolio with transaction costs constraint

I am experimenting with the PortfolioAnalytics package to optimize portfolio with dollar neutral and transaction costs as constraints to the quadratic utility objective function. A sample R snippet is ...
0
votes
1answer
490 views

solve.QP error: constraints are inconsistent, no solution!

I am trying to solve a constrained optimization with the following statement and struggling with the error constraints are inconsistent, no solution!: ...
2
votes
1answer
97 views

Choosing best expressions from all possible combinations on variables, unary operators and binary operators along with hyper parameters

I have a few financial variables of a stock universe like OHLC prices, volume, and other fundamentals with varying time-frequency. Using this set I'm creating an expression that gives the weights to ...
2
votes
0answers
71 views

Interchange Expectation and Supremum in Snell Envelope/American Options

I had a question about the properties of a snell envelope, $\sup_{t\le\tau\le T} \Bbb E\left(Z_\tau\mid \mathcal F_t\right)$, which came to me while studying American options. I know that in general,...
1
vote
0answers
56 views

PortfolioAnalytics: Training window based on entire history before rebalancing in 'optimize.portfolio.rebalancing'?

I am fairly new to PortfolioAnalytics and R in general. I am trying to do some backtesting of a minimum variance portfolio. I have weekly, monthly, quarterly and yearly return data of 3 selected ...
4
votes
1answer
88 views

Tangency portfolio with two additional constraints so that portfolio weights are unconstrained

I know that the formula for determining the weights of the Tangency portfolio is given as $w_{tan}$ = $\frac{\Sigma \mu}{\iota^{\prime}\Sigma\mu }$, but I was wondering how to derive the weights in ...
1
vote
1answer
226 views

Why is it better to use evolutionary algorithms than OLS for solving index tracking problem?

I am currently using different optimization algorithms for finding constrained portfolio that best replicate choosen index. So i have a optimization task to minimize tracking error. I wonder why every ...
2
votes
2answers
460 views

Optimization of Take-Profit and Stop-Loss

Three questions: What branch of mathematics would help me optimize profit if I have a trading strategy that on an individual trade basis (Trade 1, Trade 2, ..., Trade N) has a draw down of (X1,X2,......
0
votes
0answers
29 views

How to modify EMSR when capacity for each fare class is different

In the normal EMSRa and EMSRb algorithms (EMSR= expected marginal seat revenue), each fare class is utilizes exactly 1 unit of capacity (for eg. one seat on a plane). But I have a similar problem for ...
1
vote
1answer
69 views

Framework for hedging fx and utilizing correlation between asset returns

Can anyone point me in a direction (research paper, books, ..) which developes a framework/strategy for hedging currency exposure for an international bond portfolio? This paper finds optimal ...
1
vote
2answers
488 views

Fixed Income Portfolio Optimization

I'm trying to solve for a maximum sharpe ratio portfolio in the fixed income space. To do so, i use CVXPY in python. I use this Paper as reference. This is my "setup": ...
1
vote
2answers
623 views

How to calculate optimal portfolio using sector constraints in python

I'm looking into CVXPY at the moment. Main goal would be to be able to calculate the optimal portfolio, which in my opinion would mean that we need to maximise (expected return - risk free) / ...
6
votes
2answers
1k views

Random Portfolios vs Efficient Frontier

I understand the concept of the efficient frontier and am able to calculate it in Python. But even when generating 50'000 random 10 asset portfolios, the single portfolios are not even close to the ...
3
votes
1answer
171 views

Which Maximum Diversification Approach in MATLAB is correct?

I am currently trying to find the portfolio weights of the Maximum Diversification Portfolio and found two approaches which result in different outcomes. The first one is based on this paper:https://...
1
vote
1answer
78 views

Achieving desired fx exposure with using minimum pairs possible

Let say my algorithm tells me to get the following positions through opening fx positions: CUR NET POSITIONS GBP 236.96379 USD -310.58000 CHF 0.02000 There are 2 ways to achieve this: Long ...

1
2 3 4 5 6