Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Simulate and Visualize Portfolio Diversification | Investment Metrics and Portfolio Analysis
Python for Investors

bookChallenge: Simulate and Visualize Portfolio Diversification

Завдання

Swipe to start coding

You are given simulated daily returns for three assets over a year. Your task is to simulate a diversified portfolio using these assets, compute relevant diversification metrics, and visualize the results.

  • Calculate the daily portfolio returns as a weighted sum of the individual asset returns using the provided weights.
  • Compute the mean and standard deviation of the simulated portfolio returns.
  • Plot a histogram of the daily portfolio returns and display the plot.
  • Do not change the provided random seed, asset returns, or portfolio weights.
  • Use only the allowed libraries for your calculations and visualization.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Simulate and Visualize Portfolio Diversification

Свайпніть щоб показати меню

Завдання

Swipe to start coding

You are given simulated daily returns for three assets over a year. Your task is to simulate a diversified portfolio using these assets, compute relevant diversification metrics, and visualize the results.

  • Calculate the daily portfolio returns as a weighted sum of the individual asset returns using the provided weights.
  • Compute the mean and standard deviation of the simulated portfolio returns.
  • Plot a histogram of the daily portfolio returns and display the plot.
  • Do not change the provided random seed, asset returns, or portfolio weights.
  • Use only the allowed libraries for your calculations and visualization.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 7
single

single

some-alt