{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# \"Hello, world\" —Stan\n", "\n", "
\\n\"+\n", " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", " \"
\\n\"+\n", " \"\\n\"+\n",
" \"from bokeh.resources import INLINE\\n\"+\n",
" \"output_notebook(resources=INLINE)\\n\"+\n",
" \"
\\n\"+\n",
" \"\\n\"+\n \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n \"
\\n\"+\n \"\\n\"+\n \"from bokeh.resources import INLINE\\n\"+\n \"output_notebook(resources=INLINE)\\n\"+\n \"
\\n\"+\n \"<xarray.Dataset>\n", "Dimensions: (chain: 4, draw: 1000)\n", "Coordinates:\n", " * chain (chain) int64 0 1 2 3\n", " * draw (draw) int64 0 1 2 3 4 5 6 7 8 ... 992 993 994 995 996 997 998 999\n", "Data variables:\n", " x (chain, draw) float64 -0.8778 -0.7971 0.7178 ... 0.2911 0.4784\n", "Attributes:\n", " created_at: 2024-01-05T18:42:35.379080\n", " arviz_version: 0.17.0\n", " inference_library: cmdstanpy\n", " inference_library_version: 1.2.0
<xarray.Dataset>\n", "Dimensions: (chain: 4, draw: 1000)\n", "Coordinates:\n", " * chain (chain) int64 0 1 2 3\n", " * draw (draw) int64 0 1 2 3 4 5 6 ... 993 994 995 996 997 998 999\n", "Data variables:\n", " lp (chain, draw) float64 -0.3853 -0.3177 ... -0.04236 -0.1145\n", " acceptance_rate (chain, draw) float64 0.6603 1.0 0.9287 ... 0.9879 0.9833\n", " step_size (chain, draw) float64 1.05 1.05 1.05 ... 0.9408 0.9408\n", " tree_depth (chain, draw) int64 1 1 1 1 1 1 2 1 1 ... 2 2 1 1 2 1 2 1 1\n", " n_steps (chain, draw) int64 3 1 3 1 3 1 3 1 1 ... 3 3 3 3 7 1 3 3 1\n", " diverging (chain, draw) bool False False False ... False False False\n", " energy (chain, draw) float64 2.378 0.4265 1.021 ... 0.1513 0.1152\n", "Attributes:\n", " created_at: 2024-01-05T18:42:35.392548\n", " arviz_version: 0.17.0\n", " inference_library: cmdstanpy\n", " inference_library_version: 1.2.0
<xarray.Dataset>\n", "Dimensions: (chain: 4, draw: 1000)\n", "Coordinates:\n", " * chain (chain) int64 0 1 2 3\n", " * draw (draw) int64 0 1 2 3 4 5 6 7 8 ... 992 993 994 995 996 997 998 999\n", "Data variables:\n", " x (chain, draw) float64 -0.8778 -0.7971 0.7178 ... 0.2911 0.4784\n", "Attributes:\n", " created_at: 2024-01-05T18:42:35.379080\n", " arviz_version: 0.17.0\n", " inference_library: cmdstanpy\n", " inference_library_version: 1.2.0
<xarray.DataArray 'x' (chain: 4, draw: 1000)>\n", "array([[-0.877815 , -0.797133 , 0.717814 , ..., 2.1653 , -0.961177 ,\n", " -0.69788 ],\n", " [-1.06055 , 0.498281 , 0.74102 , ..., -0.648949 , -0.648949 ,\n", " -1.17533 ],\n", " [ 0.345216 , -0.520231 , 0.770906 , ..., -1.83455 , 0.0302054,\n", " -0.143349 ],\n", " [-0.28473 , 0.182923 , 0.156933 , ..., -0.296204 , 0.291055 ,\n", " 0.478448 ]])\n", "Coordinates:\n", " * chain (chain) int64 0 1 2 3\n", " * draw (draw) int64 0 1 2 3 4 5 6 7 8 ... 992 993 994 995 996 997 998 999