{
  "expected_objective": {
    "expected_gaussian_nll_closed_form": 2.732191352644727,
    "kl_q_to_unit_normal": 0.14667494393873243,
    "negative_elbo_closed_form": 2.8788662965834595,
    "quadrature": {
      "absolute_difference_from_closed_form": 9.769962616701378e-15,
      "expected_gaussian_nll": 2.732191352644737,
      "integrated_probability_mass": 0.9999999999999952,
      "interval": [
        -8.0,
        8.0
      ],
      "method": "trapezoid integral of q(z|x) density times scalar Gaussian NLL",
      "step": 0.001
    }
  },
  "fixed_epsilon_samples": [
    {
      "central_difference_gradient_logvar": 2.3994000000193694,
      "central_difference_gradient_mu": -7.284000000051805,
      "decoder_mean": -0.58,
      "epsilon_fixed_not_sampled": -1.0,
      "gaussian_nll": 5.2185913526447285,
      "kl": 0.14667494393873243,
      "negative_elbo_sample": 5.365266296583461,
      "pathwise_gradient_logvar": 2.3994,
      "pathwise_gradient_mu": -7.284,
      "sigma": 0.7,
      "z": -0.39999999999999997
    },
    {
      "central_difference_gradient_logvar": -0.25500000000455714,
      "central_difference_gradient_mu": -3.251999999842603,
      "decoder_mean": 0.26,
      "epsilon_fixed_not_sampled": 0.0,
      "gaussian_nll": 1.3209913526447274,
      "kl": 0.14667494393873243,
      "negative_elbo_sample": 1.46766629658346,
      "pathwise_gradient_logvar": -0.255,
      "pathwise_gradient_mu": -3.2520000000000002,
      "sigma": 0.7,
      "z": 0.3
    },
    {
      "central_difference_gradient_logvar": -0.08700000000971819,
      "central_difference_gradient_mu": 0.7799999999780205,
      "decoder_mean": 1.0999999999999999,
      "epsilon_fixed_not_sampled": 1.0,
      "gaussian_nll": 0.24579135264472735,
      "kl": 0.14667494393873243,
      "negative_elbo_sample": 0.3924662965834598,
      "pathwise_gradient_logvar": -0.08700000000000024,
      "pathwise_gradient_mu": 0.7799999999999994,
      "sigma": 0.7,
      "z": 1.0
    }
  ],
  "fixed_parameters": {
    "decoder_b": -0.1,
    "decoder_w": 1.2,
    "epsilons_are_hand_chosen_not_gaussian_draws": [
      -1.0,
      0.0,
      1.0
    ],
    "likelihood_sigma": 0.5,
    "q_logvar": -0.7133498878774649,
    "q_mu": 0.3,
    "q_sigma": 0.7,
    "x": 1.0
  },
  "gradient_check": {
    "max_abs_error_over_mu_and_logvar": 1.5739720637952814e-10,
    "method": "central finite differences with fixed epsilon and step 1e-6"
  },
  "limitations": [
    "No neural network, learned encoder/decoder, dataset, training, Monte Carlo quality estimate, or latent traversal.",
    "The three fixed epsilon values illustrate the path, not draws from a Gaussian or an estimate of sample quality.",
    "The expected NLL is checked analytically and by numerical integration for this scalar Gaussian setup only."
  ],
  "runtime": {
    "dependencies": "Python standard library only",
    "python": "3.10.12"
  },
  "scope": "deterministic_scalar_reparameterization_example_not_a_trained_VAE"
}
