Portfolio Optimization With R

Поделиться
HTML-код
  • Опубликовано: 8 окт 2017
  • In this tutorial, we will go over how to use some of the basic functions in fPortfolio, a package for portfolio analysis in R.
    View this on my website: programmingforfinance.com/2017...
    My Website: programmingforfinance.com/

Комментарии • 29

  • @re_di_roma_is_back2388
    @re_di_roma_is_back2388 6 лет назад +16

    I love R. I've been using it for almost 10 years so far (since October 2008 up to May 2018). Billions of packages, flexibility to code and build own functions - wonderful for graphs, data management, analysis, more complex tasks in statistics.
    Three years ago I used it for a study concerning Latin american currencies and last year I used to store crypto-currencies data and analyze them.
    Simply fantastic!

  • @rashidameer
    @rashidameer Год назад +1

    Brilliant tutorial on Portfolio Optimization with R. I will highly recommend it to a beginner who would like to use it in portfolio research.

  • @pelumiobasa3104
    @pelumiobasa3104 5 лет назад +21

    Can you do a video going over each line of code instead of just running the code

  • @leosv7
    @leosv7 5 лет назад

    Awesome video, easy explanation, I guess the documentation shows what I've missed

  • @sobored9478
    @sobored9478 6 лет назад

    Excellent video

  • @LuMaZZ93
    @LuMaZZ93 5 лет назад

    Thanks a lot for the video!
    How can I calculate the Sharpe ratio for my Min-Variance-Portfolio (mvp)?

  • @KaranSharma-xr6lt
    @KaranSharma-xr6lt 5 лет назад

    Bless You man 2:46

  • @joseraulcastro2748
    @joseraulcastro2748 3 года назад +2

    One question: What value of the Risk-free rate is being used when you plot using "plot(Frontier(8))"

  • @jac6003
    @jac6003 3 года назад +3

    Your website is not working nowadays, could you please share your code? This is a great job!

  • @jiahuixu5463
    @jiahuixu5463 2 года назад

    Awesome!

  • @odeiasante
    @odeiasante 6 лет назад

    great video Sir! I have returns computed already. Can you tell me what to do next? And the data is already time series. I guess yours was from Yahoo finance or from the internet.

  • @TheMunishk
    @TheMunishk 3 года назад

    Quite well explained, but its such a vast topic that getting through many things can be challenging. I am trying to use this package in R and facing quite number of questions. Hope you will be able to answer some of them. In setRiskFreeRate(pfSpecs) function should this rate be in % or in decimals. Example risk free rate i want to have is 8%. Should I pass this value as setRiskFreeRate(pfSpecs)

  • @nkristianschmidt
    @nkristianschmidt 3 года назад +1

    1.39 pm in lower right corner ... "good morning, everybody" ;) very boheme

  • @josealbertofernandez4593
    @josealbertofernandez4593 6 месяцев назад

    How do you set the return for the risk free asset to find the tangency portfolio? I didn't see you specify that in you "spec" vector

  • @evertontartari
    @evertontartari 5 лет назад

    You know this error when running backtesting?
    Error in glp_bounds_check_sanity(lower, n) :
    Length of bound indices must be equal to the length of the corresponding bound values.
    Here, backtest and asset* are column names of the data set.

  • @ephieangela7043
    @ephieangela7043 4 года назад

    Any pointers in creating a zero beta portfolio?

  • @TheLightyagami1993
    @TheLightyagami1993 4 года назад

    Can someone help (GLOBAL MINIMUN VARIANCE) me with this: Error in portfolio.spec() : You must specify the assets? thanks

  • @nikhilmuthukrishnan7222
    @nikhilmuthukrishnan7222 6 лет назад

    Mechanical keyboard are cool

  • @faustocant9381
    @faustocant9381 4 года назад +4

    CODE PLEASE!

  • @mostafashafagh7541
    @mostafashafagh7541 2 года назад

    how can we have this codes ?

  • @humphreytsatsi8916
    @humphreytsatsi8916 3 года назад +1

    please share this code

  • @timoorka13
    @timoorka13 6 лет назад +1

    Figure "252" in the 71st row, when the data was annualized, how it was obtained?

  • @mathewborden4601
    @mathewborden4601 5 лет назад

    Does this package still work?

    • @codebliss181
      @codebliss181  5 лет назад

      Yea, although I recommend using PortfolioAnalytics. It's much more robust of a package. I have a video on it here: ruclips.net/video/6Pi0fjARtUI/видео.html

  • @mousaajouz6935
    @mousaajouz6935 4 года назад

    can anyone help in this error ?
    > spec = portfolioSpec()
    > setsolver(Spec) = "solveRshortExact"
    Error in setsolver(Spec) = "solveRshortExact" : object 'Spec' not found

    • @jiminy2731
      @jiminy2731 4 года назад

      case sensitive in spec vs Spec

    • @sed1991
      @sed1991 2 года назад

      mvp