{
  "tool": "msc-investment-management.two_asset_portfolio",
  "name": "Two-asset portfolio risk and return (CDU-BUS-INV-900)",
  "answers": "What are this mix’s expected return and risk, and which mix of the two assets has the least risk?",
  "degree": {
    "id": "competency:msc-investment-management",
    "code": "CDU-BUS-INV-900",
    "name": "MSc Investment Management",
    "version": "1.0.0"
  },
  "reference": "Markowitz (1952) mean–variance portfolio theory; CFA Institute CBOK, Portfolio Management",
  "endpoint": "/faculty/msc-investment-management/two_asset_portfolio",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "weightA",
      "returnA",
      "returnB",
      "volatilityA",
      "volatilityB",
      "correlation"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "weightA": {
        "type": "number",
        "description": "Weight in asset A (B holds the rest), 0–1",
        "minimum": 0,
        "maximum": 1
      },
      "returnA": {
        "type": "number",
        "description": "Expected return of A",
        "minimum": -1,
        "maximum": 5
      },
      "returnB": {
        "type": "number",
        "description": "Expected return of B",
        "minimum": -1,
        "maximum": 5
      },
      "volatilityA": {
        "type": "number",
        "description": "Standard deviation of A",
        "minimum": 0.0001,
        "maximum": 5
      },
      "volatilityB": {
        "type": "number",
        "description": "Standard deviation of B",
        "minimum": 0.0001,
        "maximum": 5
      },
      "correlation": {
        "type": "number",
        "description": "Correlation of A and B, −1 to 1",
        "minimum": -1,
        "maximum": 1
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "expectedReturn",
      "volatility",
      "minimumVarianceWeightA"
    ],
    "properties": {
      "expectedReturn": {
        "type": "number",
        "description": "w·RA + (1 − w)·RB"
      },
      "volatility": {
        "type": "number",
        "description": "Portfolio standard deviation"
      },
      "minimumVarianceWeightA": {
        "type": "number",
        "description": "Weight in A that minimises variance (unconstrained)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "weightA": 0.6,
    "returnA": 0.1,
    "returnB": 0.06,
    "volatilityA": 0.2,
    "volatilityB": 0.1,
    "correlation": 0.3
  }
}