---
title: "OutputRiskRiskStatistics"
url: "https://developer-beta.morningstar.com/apis/portfolio-xray-api/versions/4c9879bf-1def-4f49-adea-5a04cd02e29e/schemas/OutputRiskRiskStatistics"
---

> Full API specification: https://developer-beta.morningstar.com/apis/portfolio-xray-api/versions/4c9879bf-1def-4f49-adea-5a04cd02e29e.md

# OutputRiskRiskStatistics

Risk statistics for the portfolio, benchmark, and individual securities.

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Portfolio X-Ray API
  version: "1.0"
servers:
  - url: https://www.us-api.morningstar.com
    description: Americas Production
  - url: https://www.apac-api.morningstar.com
    description: APAC Production
  - url: https://www.emea-api.morningstar.com
    description: EMEA Production
components:
  schemas:
    OutputRiskRiskStatisticsItem:
      type: object
      properties:
        Mean:
          type: number
          format: double
          description: Mean return over the trailing period.
        SharpeRatio:
          type: number
          format: double
          description: Risk-adjusted return per unit of risk, calculated as excess return
            over the risk-free rate divided by standard deviation.
        StandardDeviation:
          type: number
          format: double
          description: Statistical measure of return dispersion around the mean, used as
            an indicator of volatility.
        InformationRatio:
          type: number
          format: double
          description: Risk-adjusted performance measure comparing excess return over a
            benchmark to tracking error.
        TrackingError:
          type: number
          format: double
          description: Measure of how closely the portfolio's returns follow the benchmark.
        SortinoRatio:
          type: number
          format: double
          description: Variation of the Sharpe ratio that uses downside deviation rather
            than total standard deviation.
        ExcessReturn:
          type: number
          format: double
          description: The portfolio's return relative to the benchmark return over the
            same period.
    OutputRiskRiskStatisticsSecurityItem:
      type: object
      properties:
        SecurityId:
          type: string
          description: Unique identifier of a security.
        Weight:
          type: number
          format: double
          description: Percentage of portfolio assets allocated to this holding.
        RiskStatisticsItem:
          $ref: "#/components/schemas/OutputRiskSecurity.RiskStatisticsItem"
    OutputRiskSecurity.RiskStatisticsItem:
      type: object
      properties:
        Mean:
          type: number
          format: double
          description: Mean return over the trailing period.
        SharpeRatio:
          type: number
          format: double
          description: Risk-adjusted return per unit of risk. Year2 is not supported at
            the security level.
        StandardDeviation:
          type: number
          format: double
          description: Statistical measure of return dispersion around the mean, used as
            an indicator of volatility.
    OutputRiskRiskStatistics:
      description: Risk statistics for the portfolio, benchmark, and individual securities.
      type: object
      properties:
        AsOfDate:
          type: string
          format: date-time
          description: End date of analysis.
        TrailingTimePeriod:
          type: string
          description: Trailing time period for which risk statistics are calculated.
          enum:
            - Year1
            - Year2
            - Year3
            - Year5
            - Year10
        DataFrequency:
          type: string
          description: Frequency of data used in the calculation.
          enum:
            - Monthly
            - Quarterly
        Portfolio:
          $ref: "#/components/schemas/OutputRiskRiskStatisticsItem"
        Benchmark:
          $ref: "#/components/schemas/OutputRiskRiskStatisticsItem"
        Security:
          type: array
          items:
            $ref: "#/components/schemas/OutputRiskRiskStatisticsSecurityItem"
```
