← Search

Data · dataset · 2024

Downside protection - Sortino Ratio

Listed in Teesside University Research Data Repository

This code generates sample data for portfolio returns and calculates various risk measures and ratios commonly used in financial analysis.

Description

Let's break down each component: Portfolio Returns: Synthetic portfolio returns data is generated using the normal distribution with a mean of 0.08 and a standard deviation of 0.15 for 100 time periods. Risk-Adjusted Returns (Sharpe Ratio): The Sharpe Ratio is calculated as the ratio of the excess return of the portfolio over the risk-free rate to the standard deviation of the portfolio returns.

Portfolio Volatility: The standard deviation of the portfolio returns is calculated, representing the volatility of the portfolio. Maximum Drawdown (MDD): The maximum drawdown is computed as the maximum loss from a peak value to a trough value during a specific time period. Downside Protection (Sortino Ratio): The Sortino Ratio is similar to the Sharpe Ratio but focuses on downside risk, using only negative returns in the denominator.

Read the rest (1 more)

Visualization: The results are visualized using matplotlib. Four subplots are created: Portfolio Returns over time Drawdown over time Histogram of Portfolio Returns Cumulative Returns over time Each subplot provides insights into different aspects of the portfolio's performance and risk characteristics. Overall, this code provides a comprehensive analysis of portfolio risk and return metrics, along with visualizations to aid in understanding and interpretation.

Links

Where it is published

Catalogue records · 1

Topics

Provenance · 1 source records, 11 field assertions
SourceKeyLast seenRaw
Teesside University Research Data Repositoryoai:data.mendeley.com/84hmnv4285.111 d agoJSON v1
FieldAssertionExtractorEvidence
access_levelsource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].anzsrc:field:350208mapping · researchdata tees ac ukvocabulary-mapper@1.0.0keywords['Risk Management']
concepts[field].local:field:earth-environmentalmapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].local:field:engineeringmapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].local:field:humanitiesmapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].local:field:life-sciencesmapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
concepts[field].local:field:social-sciencemapping · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
descriptionsource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0/metadata/dc/description
licensesource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0/metadata/dc/rights
publication_datesource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0
titlesource · researchdata tees ac ukconnector:researchdata_tees_ac_uk@1.0.0/metadata/dc/title