{
  "events": [
    {
      "p": 1.0,
      "surprise": 0.0,
      "image": "assets/entropy-surprise-0.svg"
    },
    {
      "p": 0.5,
      "surprise": 1.0,
      "image": "assets/entropy-surprise-1.svg"
    },
    {
      "p": 0.25,
      "surprise": 2.0,
      "image": "assets/entropy-surprise-2.svg"
    },
    {
      "p": 0.125,
      "surprise": 3.0,
      "image": "assets/entropy-surprise-3.svg"
    },
    {
      "p": 0.01,
      "surprise": 6.643856189774724,
      "image": "assets/entropy-surprise-4.svg"
    }
  ],
  "distributions": [
    {
      "key": "skewed",
      "p": [
        0.5,
        0.25,
        0.125,
        0.125
      ],
      "surprise": [
        1.0,
        2.0,
        3.0,
        3.0
      ],
      "terms": [
        0.5,
        0.5,
        0.375,
        0.375
      ],
      "entropy": 1.75
    },
    {
      "key": "uniform",
      "p": [
        0.25,
        0.25,
        0.25,
        0.25
      ],
      "surprise": [
        2.0,
        2.0,
        2.0,
        2.0
      ],
      "terms": [
        0.5,
        0.5,
        0.5,
        0.5
      ],
      "entropy": 2.0
    },
    {
      "key": "certain",
      "p": [
        1.0,
        0.0,
        0.0,
        0.0
      ],
      "surprise": [
        -0.0,
        null,
        null,
        null
      ],
      "terms": [
        -0.0,
        0.0,
        0.0,
        0.0
      ],
      "entropy": 0.0
    }
  ],
  "sequence": [
    "A",
    "A",
    "A",
    "A",
    "B",
    "B",
    "C",
    "D"
  ],
  "codes": [
    {
      "key": "fixed",
      "words": [
        "00",
        "01",
        "10",
        "11"
      ],
      "lengths": [
        2,
        2,
        2,
        2
      ],
      "encoded": [
        "00",
        "00",
        "00",
        "00",
        "01",
        "01",
        "10",
        "11"
      ],
      "total": 16,
      "average": 2.0,
      "image": "assets/entropy-code-fixed.svg"
    },
    {
      "key": "prefix",
      "words": [
        "0",
        "10",
        "110",
        "111"
      ],
      "lengths": [
        1,
        2,
        3,
        3
      ],
      "encoded": [
        "0",
        "0",
        "0",
        "0",
        "10",
        "10",
        "110",
        "111"
      ],
      "total": 14,
      "average": 1.75,
      "image": "assets/entropy-code-prefix.svg"
    }
  ]
}
