diff --git a/.DS_Store b/.DS_Store index 97121c1..4279354 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/book/_build/.doctrees/environment.pickle b/book/_build/.doctrees/environment.pickle index 65b8315..961399d 100644 Binary files a/book/_build/.doctrees/environment.pickle and b/book/_build/.doctrees/environment.pickle differ diff --git a/book/_build/.doctrees/gsheets.doctree b/book/_build/.doctrees/gsheets.doctree index 6d905ae..618eae2 100644 Binary files a/book/_build/.doctrees/gsheets.doctree and b/book/_build/.doctrees/gsheets.doctree differ diff --git a/book/_build/.doctrees/intro.doctree b/book/_build/.doctrees/intro.doctree index 68a8118..547fffb 100644 Binary files a/book/_build/.doctrees/intro.doctree and b/book/_build/.doctrees/intro.doctree differ diff --git a/book/_build/.doctrees/regression.doctree b/book/_build/.doctrees/regression.doctree index 8a3316f..71abb43 100644 Binary files a/book/_build/.doctrees/regression.doctree and b/book/_build/.doctrees/regression.doctree differ diff --git a/book/_build/html/_sources/gsheets.md b/book/_build/html/_sources/gsheets.md index 010a539..8f652a6 100644 --- a/book/_build/html/_sources/gsheets.md +++ b/book/_build/html/_sources/gsheets.md @@ -1,6 +1,9 @@ # Overview -Google Sheets is excellent for its low scare-factor and its free availability. Microsoft Excel can do a bit more and Python or R can do a lot more. Use Google Sheets if you are someone who needs to manipulate data or make statistical calculations, but not so often that you should suffer the investment required to use languages like Python or R or to learn/pay for other applications. Google Sheets will get you from point A to point B and with only an internet browser. In the context of this class, the only advantage of Excel might be the availability of the Analysis ToolPak plugin (useful for regression analysis). +Google Sheets is excellent for its low scare-factor and its free availability. Google Sheets will get you from point A to point B and with only an internet browser. Microsoft Excel can do a bit more. In the context of this class, the only advantage of Excel is the availability of the Analysis ToolPak plugin for regression analysis. Python or R can do a lot more. You might get a job from your Python abilities alone, but [that won't happen with Excel/Sheets](https://youtu.be/bwlAik0HyyE?si=MjQg_DLoayw4gXCA&t=32). + +Use Google Sheets if you are someone who needs to manipulate data or make statistical calculations, but not so often that you should suffer the investment required to use languages like Python or R or to learn/pay for other applications. + ## Basics diff --git a/book/_build/html/_sources/intro.md b/book/_build/html/_sources/intro.md index 403c476..8ad16ef 100644 --- a/book/_build/html/_sources/intro.md +++ b/book/_build/html/_sources/intro.md @@ -26,6 +26,11 @@ We'll argue that statistics is *not* just math, but the imperative from Halmos s ![How Math Works](images/HowMath.png) +## More about 1101 + +This is an introductory course in statistics. Students will learn how to interpret and produce statistical analyses, with applications taken from many fields. Major topics include the design of experiments, descriptive statistics, correlation, probability, hypothesis testing, and regression. + +The only pre-requisite for this course is that you should be good at high school algebra. I recommend taking the calculus-based intro instead if you want to pursue stats or a related field. ```{tableofcontents} diff --git a/book/_build/html/_sources/regression.ipynb b/book/_build/html/_sources/regression.ipynb index 08403bf..a32e4f9 100644 --- a/book/_build/html/_sources/regression.ipynb +++ b/book/_build/html/_sources/regression.ipynb @@ -344,7 +344,7 @@ "data": { "text/html": [ "\n", - "
\n" + "
\n" ] }, "metadata": {}, @@ -355,8 +355,8 @@ "application/javascript": [ "(function(root) {\n", " function embed_document(root) {\n", - " const docs_json = {\"1ac39857-a4a5-4990-866e-9931d6a312be\":{\"version\":\"3.3.4\",\"title\":\"Bokeh Application\",\"roots\":[{\"type\":\"object\",\"name\":\"Column\",\"id\":\"p1053\",\"attributes\":{\"children\":[{\"type\":\"object\",\"name\":\"Div\",\"id\":\"p1049\",\"attributes\":{\"width\":400,\"height\":100,\"text\":\"Slope: 1.0000
Intercept: 0.0000
SD of X: 1.4142
SD of Y: 1.4142
Correlation Coefficient: 1.0000\"}},{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1007\",\"attributes\":{\"width\":450,\"height\":450,\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1016\",\"attributes\":{\"end\":6}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1017\",\"attributes\":{\"end\":6}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1018\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1019\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1014\"},\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1037\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1001\",\"attributes\":{\"js_property_callbacks\":{\"type\":\"map\",\"entries\":[[\"change:data\",[{\"type\":\"object\",\"name\":\"CustomJS\",\"id\":\"p1050\",\"attributes\":{\"args\":{\"type\":\"map\",\"entries\":[[\"source\",{\"id\":\"p1001\"}],[\"line_source\",{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1004\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1005\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1006\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",[1,5]],[\"y\",[1.0,5.0]]]}}}],[\"div\",{\"id\":\"p1049\"}]]},\"code\":\"\\n const data = source.data;\\n const x = data['x'];\\n const y = data['y'];\\n const n = x.length;\\n\\n if (n === 0) {\\n line_source.data = {'x': [], 'y': []};\\n div.text = \\\"Slope: N/A
Intercept: N/A
SD of X: N/A
SD of Y: N/A
Correlation Coefficient: N/A\\\";\\n return;\\n }\\n\\n let sum_x = 0, sum_y = 0, sum_xy = 0, sum_xx = 0, sum_yy = 0;\\n for (let i = 0; i < n; i++) {\\n sum_x += x[i];\\n sum_y += y[i];\\n sum_xy += x[i] * y[i];\\n sum_xx += x[i] * x[i];\\n sum_yy += y[i] * y[i];\\n }\\n\\n const mean_x = sum_x / n;\\n const mean_y = sum_y / n;\\n const slope = (sum_xy - n * mean_x * mean_y) / (sum_xx - n * mean_x * mean_x);\\n const intercept = mean_y - slope * mean_x;\\n const sdx = Math.sqrt(sum_xx / n - mean_x * mean_x);\\n const sdy = Math.sqrt(sum_yy / n - mean_y * mean_y);\\n const r = (sum_xy - n * mean_x * mean_y) / (Math.sqrt((sum_xx - n * mean_x * mean_x) * (sum_yy - n * mean_y * mean_y)));\\n\\n const reg_x = [Math.min(...x), Math.max(...x)];\\n const reg_y = reg_x.map(x => slope * x + intercept);\\n\\n line_source.data = {'x': reg_x, 'y': reg_y};\\n line_source.change.emit();\\n\\n div.text = \\\"Slope: \\\" + slope.toFixed(4) + \\\"
Intercept: \\\" + intercept.toFixed(4) +\\n \\\"
SD of X: \\\" + sdx.toFixed(4) + \\\"
SD of Y: \\\" + sdy.toFixed(4) +\\n \\\"
Correlation Coefficient: \\\" + r.toFixed(4);\\n\"}}]]]},\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1002\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1003\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",[1,2,3,4,5]],[\"y\",[1,2,3,4,5]]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1038\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1039\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1034\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":20},\"line_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.5},\"fill_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.5},\"hatch_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.5}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1035\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":20},\"line_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.1},\"fill_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.1},\"hatch_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1036\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":20},\"line_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1046\",\"attributes\":{\"data_source\":{\"id\":\"p1004\"},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1047\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1048\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1043\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_alpha\":0.7,\"line_width\":3}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1044\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_alpha\":0.1,\"line_width\":3}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1045\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_alpha\":0.2,\"line_width\":3}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1015\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1030\"},{\"type\":\"object\",\"name\":\"PointDrawTool\",\"id\":\"p1051\",\"attributes\":{\"renderers\":[{\"id\":\"p1037\"}]}},{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1052\",\"attributes\":{\"renderers\":[{\"id\":\"p1037\"}],\"tooltips\":[[\"X\",\"@x\"],[\"Y\",\"@y\"]]}}],\"active_tap\":{\"id\":\"p1051\"}}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1025\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1026\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1027\"},\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1028\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1020\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1021\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1022\"},\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1023\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1024\",\"attributes\":{\"axis\":{\"id\":\"p1020\"}}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1029\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1025\"}}}]}}]}}]}};\n", - " const render_items = [{\"docid\":\"1ac39857-a4a5-4990-866e-9931d6a312be\",\"roots\":{\"p1053\":\"c9cb510f-cac2-451b-9cb7-9de2b35af7ba\"},\"root_ids\":[\"p1053\"]}];\n", + " const docs_json = {\"80c9784a-adb2-46ce-a6a5-b1fc091569eb\":{\"version\":\"3.3.4\",\"title\":\"Bokeh Application\",\"roots\":[{\"type\":\"object\",\"name\":\"Column\",\"id\":\"p1053\",\"attributes\":{\"children\":[{\"type\":\"object\",\"name\":\"Div\",\"id\":\"p1049\",\"attributes\":{\"width\":400,\"height\":100,\"text\":\"Slope: 1.0000
Intercept: 0.0000
SD of X: 1.4142
SD of Y: 1.4142
Correlation Coefficient: 1.0000\"}},{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1007\",\"attributes\":{\"width\":450,\"height\":450,\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1016\",\"attributes\":{\"end\":6}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1017\",\"attributes\":{\"end\":6}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1018\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1019\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1014\"},\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1037\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1001\",\"attributes\":{\"js_property_callbacks\":{\"type\":\"map\",\"entries\":[[\"change:data\",[{\"type\":\"object\",\"name\":\"CustomJS\",\"id\":\"p1050\",\"attributes\":{\"args\":{\"type\":\"map\",\"entries\":[[\"source\",{\"id\":\"p1001\"}],[\"line_source\",{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1004\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1005\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1006\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",[1,5]],[\"y\",[1.0,5.0]]]}}}],[\"div\",{\"id\":\"p1049\"}]]},\"code\":\"\\n const data = source.data;\\n const x = data['x'];\\n const y = data['y'];\\n const n = x.length;\\n\\n if (n === 0) {\\n line_source.data = {'x': [], 'y': []};\\n div.text = \\\"Slope: N/A
Intercept: N/A
SD of X: N/A
SD of Y: N/A
Correlation Coefficient: N/A\\\";\\n return;\\n }\\n\\n let sum_x = 0, sum_y = 0, sum_xy = 0, sum_xx = 0, sum_yy = 0;\\n for (let i = 0; i < n; i++) {\\n sum_x += x[i];\\n sum_y += y[i];\\n sum_xy += x[i] * y[i];\\n sum_xx += x[i] * x[i];\\n sum_yy += y[i] * y[i];\\n }\\n\\n const mean_x = sum_x / n;\\n const mean_y = sum_y / n;\\n const slope = (sum_xy - n * mean_x * mean_y) / (sum_xx - n * mean_x * mean_x);\\n const intercept = mean_y - slope * mean_x;\\n const sdx = Math.sqrt(sum_xx / n - mean_x * mean_x);\\n const sdy = Math.sqrt(sum_yy / n - mean_y * mean_y);\\n const r = (sum_xy - n * mean_x * mean_y) / (Math.sqrt((sum_xx - n * mean_x * mean_x) * (sum_yy - n * mean_y * mean_y)));\\n\\n const reg_x = [Math.min(...x), Math.max(...x)];\\n const reg_y = reg_x.map(x => slope * x + intercept);\\n\\n line_source.data = {'x': reg_x, 'y': reg_y};\\n line_source.change.emit();\\n\\n div.text = \\\"Slope: \\\" + slope.toFixed(4) + \\\"
Intercept: \\\" + intercept.toFixed(4) +\\n \\\"
SD of X: \\\" + sdx.toFixed(4) + \\\"
SD of Y: \\\" + sdy.toFixed(4) +\\n \\\"
Correlation Coefficient: \\\" + r.toFixed(4);\\n\"}}]]]},\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1002\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1003\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",[1,2,3,4,5]],[\"y\",[1,2,3,4,5]]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1038\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1039\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1034\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":20},\"line_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.5},\"fill_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.5},\"hatch_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.5}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1035\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":20},\"line_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.1},\"fill_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.1},\"hatch_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1036\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":20},\"line_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_color\":{\"type\":\"value\",\"value\":\"deepskyblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1046\",\"attributes\":{\"data_source\":{\"id\":\"p1004\"},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1047\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1048\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1043\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_alpha\":0.7,\"line_width\":3}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1044\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_alpha\":0.1,\"line_width\":3}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1045\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_alpha\":0.2,\"line_width\":3}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1015\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1030\"},{\"type\":\"object\",\"name\":\"PointDrawTool\",\"id\":\"p1051\",\"attributes\":{\"renderers\":[{\"id\":\"p1037\"}]}},{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1052\",\"attributes\":{\"renderers\":[{\"id\":\"p1037\"}],\"tooltips\":[[\"X\",\"@x\"],[\"Y\",\"@y\"]]}}],\"active_tap\":{\"id\":\"p1051\"}}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1025\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1026\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1027\"},\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1028\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1020\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1021\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1022\"},\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1023\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1024\",\"attributes\":{\"axis\":{\"id\":\"p1020\"}}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1029\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1025\"}}}]}}]}}]}};\n", + " const render_items = [{\"docid\":\"80c9784a-adb2-46ce-a6a5-b1fc091569eb\",\"roots\":{\"p1053\":\"d8b5cf54-a850-4249-aec3-8d4b48e8e5f8\"},\"root_ids\":[\"p1053\"]}];\n", " root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n", " }\n", " if (root.Bokeh !== undefined) {\n", @@ -896,7 +896,7 @@ "data": { "text/html": [ "\n", - "
\n" + "
\n" ] }, "metadata": {}, @@ -907,8 +907,8 @@ "application/javascript": [ "(function(root) {\n", " function embed_document(root) {\n", - " const docs_json = {\"e5bfda1f-5a59-4de8-94be-4ebdf4899052\":{\"version\":\"3.3.4\",\"title\":\"Bokeh Application\",\"roots\":[{\"type\":\"object\",\"name\":\"Tabs\",\"id\":\"p1168\",\"attributes\":{\"tabs\":[{\"type\":\"object\",\"name\":\"TabPanel\",\"id\":\"p1166\",\"attributes\":{\"title\":\"All Data\",\"child\":{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1057\",\"attributes\":{\"width\":450,\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1067\",\"attributes\":{\"end\":600}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1068\",\"attributes\":{\"start\":-1,\"end\":34}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1069\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1070\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1060\",\"attributes\":{\"text\":\"Protein vs Calories\"}},\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1097\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1054\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1055\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1056\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pQAAACIAAACbAAAA0AAAAHQAAAB4AAAAOwAAAPoAAABMAAAARwAAADQAAACSAQAAIwIAAA==\"},\"shape\":[13],\"dtype\":\"int32\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAP0BmZmZmZmYGQAAAAAAAACpAAAAAAAAANEAAAAAAAAAiQGZmZmZmZhBAAAAAAAAAJEAAAAAAAAA6QAAAAAAAACBAAAAAAAAABEAzMzMzMzPTPwAAAAAAADlAMzMzMzMzIEA=\"},\"shape\":[13],\"dtype\":\"float64\",\"order\":\"little\"}],[\"food\",{\"type\":\"ndarray\",\"array\":[\"Chicken Breast\",\"Broccoli\",\"Eggs\",\"Salmon\",\"Lentils\",\"Quinoa\",\"Greek Yogurt\",\"Beef (Lean)\",\"Tofu\",\"Oatmeal\",\"Apples\",\"Cheese (Cheddar)\",\"Nutty Buddy (Little Debbies)\"],\"shape\":[13],\"dtype\":\"object\",\"order\":\"little\"}],[\"predicted\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"YKhY21QdKEDelhU8Z9YgQHy+yoofjydA4uK6tdOAKkDuR6HQgmQlQOML2vBknSVAlV94hew5IkBn7A4IGtYsQGSgaY6tKyNAcqsi5pLkIkCqCBXNYNYhQFUBPmjVozJAAuFC8NeqNkA=\"},\"shape\":[13],\"dtype\":\"float64\",\"order\":\"little\"}],[\"residual\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0KtTklXxMkCJ+vdEm3kWwCAMqqkDh/M/PDqKlFj+GkBwPwqFFiT7v2CxTXtj1BrAsAZ6qDdh7D+ZE/H35SknQCADTXNsXfm/5FZFzCXJG8AQb3szxzwhwKz6B1+qcBlA0Y5SrXwiLcA=\"},\"shape\":[13],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1098\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1099\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1094\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"fill_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"hatch_color\":{\"type\":\"value\",\"value\":\"royalblue\"}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1095\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.1},\"fill_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.1},\"hatch_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1096\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1106\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1100\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1101\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1102\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAQUAXXXTRRZdDQC666KKLLkZARhdddNHFSEBddNFFF11LQHTRRRdd9E1ARhdddNFFUEDSRRdddJFRQF100UUX3VJA6KKLLrooVEB00UUXXXRVQAAAAAAAwFZAjC666KILWEAXXXTRRVdZQKOLLrroolpALrrooovuW0C66KKLLjpdQEYXXXTRhV5A0UUXXXTRX0Auuuiii45gQHTRRRddNGFAuuiiiy7aYUAAAAAAAIBiQEYXXXTRJWNAjC666KLLY0DRRRdddHFkQBdddNFFF2VAXXTRRRe9ZUCjiy666GJmQOmiiy66CGdALrrooouuZ0B00UUXXVRoQLrooosu+mhAAAAAAACgaUBGF1100UVqQIsuuuii62pA0UUXXXSRa0AXXXTRRTdsQF100UUX3WxAo4suuuiCbUDooosuuihuQC666KKLzm5AdNFFF110b0BddNFFFw1wQAAAAAAAYHBAo4suuuiycEBGF1100QVxQOiiiy66WHFAjC666KKrcUAuuuiii/5xQNFFF110UXJAdNFFF12kckAXXXTRRfdyQLrooosuSnNAXXTRRRedc0AAAAAAAPBzQKOLLrroQnRARhdddNGVdEDpoosuuuh0QIsuuuiiO3VALrrooouOdUDRRRdddOF1QHTRRRddNHZAF1100UWHdkC66KKLLtp2QF100UUXLXdAAAAAAACAd0Cjiy666NJ3QEYXXXTRJXhA6aKLLrp4eECLLrroost4QC666KKLHnlA0UUXXXRxeUB00UUXXcR5QBdddNFFF3pAuuiiiy5qekBddNFFF716QAAAAAAAEHtAo4suuuhie0BGF1100bV7QOiiiy66CHxAiy666KJbfEAuuuiii658QNFFF110AX1AdNFFF11UfUAXXXTRRad9QLrooosu+n1AXXTRRRdNfkAAAAAAAKB+QKOLLrro8n5ARhdddNFFf0Dooosuuph/QIsuuuii639AF1100UUfgEDooosuukiAQLrooosucoBAjC666KKbgEBddNFFF8WAQC666KKL7oBAAAAAAAAYgUA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"3pYVPGfWIED+q43OFyAhQB3BBWHIaSFAPNZ983izIUBc6/WFKf0hQHsAbhjaRiJAmxXmqoqQIkC6Kl49O9oiQNk/1s/rIyNA+VROYpxtI0AYasb0TLcjQDh/Pof9ACRAV5S2Ga5KJEB2qS6sXpQkQJa+pj4P3iRAtdMe0b8nJUDU6JZjcHElQPT9DvYguyVAExOHiNEEJkAyKP8agk4mQFI9d60ymCZAclLvP+PhJkCRZ2fSkysnQLB832REdSdA0JFX9/S+J0Dvps+JpQgoQA68RxxWUihALtG/rgacKEBO5jdBt+UoQG37r9NnLylAjBAoZhh5KUCsJaD4yMIpQMs6GIt5DCpA6k+QHSpWKkAKZQiw2p8qQCl6gEKL6SpASI/41DszK0BopHBn7HwrQIi56PmcxitAp85gjE0QLEDG49ge/lksQOb4ULGuoyxABQ7JQ1/tLEAkI0HWDzctQEQ4uWjAgC1AZE0x+3DKLUCDYqmNIRQuQKJ3ISDSXS5AwoyZsoKnLkDgoRFFM/EuQAC3idfjOi9AIMwBapSEL0A+4Xn8RM4vQC/7eMf6CzBAvwW1ENMwMEBPEPFZq1UwQN4aLaODejBAbiVp7FufMED+L6U1NMQwQI064X4M6TBAHUUdyOQNMUCtT1kRvTIxQDxalVqVVzFAzGTRo218MUBcbw3tRaExQOx5STYexjFAe4SFf/bqMUALj8HIzg8yQJuZ/RGnNDJAK6Q5W39ZMkC6rnWkV34yQEq5se0vozJA2cPtNgjIMkBpzimA4OwyQPnYZcm4ETNAieOhEpE2M0AY7t1baVszQKj4GaVBgDNAOANW7hmlM0DIDZI38skzQFcYzoDK7jNA5yIKyqITNEB2LUYTezg0QAY4glxTXTRAlkK+pSuCNEAmTfruA6c0QLVXNjjcyzRARWJygbTwNEDVbK7KjBU1QGV36hNlOjVA9IEmXT1fNUCEjGKmFYQ1QBOXnu/tqDVAo6HaOMbNNUAyrBaCnvI1QMO2Ust2FzZAU8GOFE88NkDiy8pdJ2E2QHHWBqf/hTZAAuFC8NeqNkA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1107\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1108\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1103\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\"}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1104\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.1}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1105\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.2}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1066\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"PanTool\",\"id\":\"p1081\"},{\"type\":\"object\",\"name\":\"WheelZoomTool\",\"id\":\"p1082\",\"attributes\":{\"renderers\":\"auto\"}},{\"type\":\"object\",\"name\":\"BoxZoomTool\",\"id\":\"p1083\",\"attributes\":{\"overlay\":{\"type\":\"object\",\"name\":\"BoxAnnotation\",\"id\":\"p1084\",\"attributes\":{\"syncable\":false,\"level\":\"overlay\",\"visible\":false,\"left\":{\"type\":\"number\",\"value\":\"nan\"},\"right\":{\"type\":\"number\",\"value\":\"nan\"},\"top\":{\"type\":\"number\",\"value\":\"nan\"},\"bottom\":{\"type\":\"number\",\"value\":\"nan\"},\"left_units\":\"canvas\",\"right_units\":\"canvas\",\"top_units\":\"canvas\",\"bottom_units\":\"canvas\",\"line_color\":\"black\",\"line_alpha\":1.0,\"line_width\":2,\"line_dash\":[4,4],\"fill_color\":\"lightgrey\",\"fill_alpha\":0.5}}}},{\"type\":\"object\",\"name\":\"ResetTool\",\"id\":\"p1089\"},{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1090\"},{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1109\",\"attributes\":{\"renderers\":\"auto\",\"tooltips\":[[\"Food\",\"@food\"],[\"Residual\",\"@residual{0.00}\"]]}}]}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1076\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1077\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1078\"},\"axis_label\":\"Protein (g per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1079\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1071\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1072\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1073\"},\"axis_label\":\"Calories (per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1074\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1075\",\"attributes\":{\"axis\":{\"id\":\"p1071\"}}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1080\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1076\"}}}]}}}},{\"type\":\"object\",\"name\":\"TabPanel\",\"id\":\"p1167\",\"attributes\":{\"title\":\"Drop Nutty Buddy\",\"child\":{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1113\",\"attributes\":{\"width\":450,\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1123\",\"attributes\":{\"end\":600}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1124\",\"attributes\":{\"start\":-1,\"end\":34}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1125\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1126\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1116\",\"attributes\":{\"text\":\"Protein vs Calories\"}},\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1153\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1110\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1111\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1112\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pQAAACIAAACbAAAA0AAAAHQAAAB4AAAAOwAAAPoAAABMAAAARwAAADQAAACSAQAA\"},\"shape\":[12],\"dtype\":\"int32\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAP0BmZmZmZmYGQAAAAAAAACpAAAAAAAAANEAAAAAAAAAiQGZmZmZmZhBAAAAAAAAAJEAAAAAAAAA6QAAAAAAAACBAAAAAAAAABEAzMzMzMzPTPwAAAAAAADlA\"},\"shape\":[12],\"dtype\":\"float64\",\"order\":\"little\"}],[\"food\",{\"type\":\"ndarray\",\"array\":[\"Chicken Breast\",\"Broccoli\",\"Eggs\",\"Salmon\",\"Lentils\",\"Quinoa\",\"Greek Yogurt\",\"Beef (Lean)\",\"Tofu\",\"Oatmeal\",\"Apples\",\"Cheese (Cheddar)\"],\"shape\":[12],\"dtype\":\"object\",\"order\":\"little\"}],[\"predicted\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ga41mNC9LECWz+wv0YIRQOB3ltw/NytAoIsXeZ+mMUBpJENnC0QlQBk66UtF4CVAsd4I2qQjGUB+fX9pz9o0QAyXjPGQUx5A02DtNQDNHEDIksM52gAXQMqM6bCNOUBA\"},\"shape\":[12],\"dtype\":\"float64\",\"order\":\"little\"}],[\"residual\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"9CjlsxehMECMcebydz75vwB+Z8n9c+O/AKNDNwTLAkBIIxk6WyD6v8wNbDEkWhvAnkLuS7a4DUAICgJawpQUQECPNufwxto/02DtNQDNEsCVX5AGp80VwFBmTIdtzB3A\"},\"shape\":[12],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1154\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1155\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1150\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"fill_color\":{\"type\":\"value\",\"value\":\"black\"}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1151\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_alpha\":{\"type\":\"value\",\"value\":0.1},\"fill_color\":{\"type\":\"value\",\"value\":\"black\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.1},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1152\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"value\",\"value\":\"black\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1162\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1156\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1157\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1158\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAQUAxb2dIzNtCQGLezpCYt0RAlE022WSTRkDEvJ0hMW9IQPYrBWr9SkpAJ5tssskmTEBYCtT6lQJOQIl5O0Ni3k9AXXTRRRfdUED2KwVq/cpRQI7jOI7juFJAJ5tsssmmU0DAUqDWr5RUQFgK1PqVglVA8MEHH3xwVkCJeTtDYl5XQCIxb2dITFhAuuiiiy46WUBToNavFChaQOtXCtT6FVtAhA8++OADXEAcx3Ecx/FcQLV+pUCt311ATjbZZJPNXkDm7QyJebtfQMBSoNavVGBAjC666KLLYEBYCtT6lUJhQCTm7QyJuWFA8MEHH3wwYkC8nSExb6diQIl5O0NiHmNAVlVVVVWVY0AiMW9nSAxkQO4MiXk7g2RAuuiiiy76ZECGxLydIXFlQFOg1q8U6GVAH3zwwQdfZkDrVwrU+tVmQLgzJObtTGdAhA8++ODDZ0BQ61cK1DpoQBzHcRzHsWhA6aKLLrooaUC1fqVArZ9pQIFav1KgFmpATjbZZJONakAaEvN2hgRrQObtDIl5e2tAsskmm2zya0B/pUCtX2lsQEuBWr9S4GxAF1100UVXbUDjOI7jOM5tQLAUqPUrRW5AfPDBBx+8bkBIzNsZEjNvQBWo9SsFqm9A8MEHH3wQcEDWrxSo9UtwQLydITFvh3BAo4suuujCcECJeTtDYv5wQG9nSMzbOXFAVlVVVVV1cUA8Q2LezrBxQCIxb2dI7HFACB988MEnckDuDIl5O2NyQNT6lQK1nnJAuuiiiy7ackCg1q8UqBVzQIbEvJ0hUXNAbbLJJpuMc0BToNavFMhzQDmO4ziOA3RAH3zwwQc/dEAFav1KgXp0QOtXCtT6tXRA0UUXXXTxdEC4MyTm7Sx1QJ4hMW9naHVAhA8++OCjdUBq/UqBWt91QFDrVwrUGnZANtlkk01WdkAcx3Ecx5F2QAO1fqVAzXZA6aKLLroId0DPkJi3M0R3QLV+pUCtf3dAm2yyySa7d0CBWr9SoPZ3QGdIzNsZMnhATjbZZJNteEA0JObtDKl4QBoS83aG5HhAAAAAAAAgeUA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ls/sL9GCEUCilX5FLaUSQK5bEFuJxxNAuiGicOXpFEDG5zOGQQwWQNOtxZudLhdA33NXsflQGEDrOenGVXMZQPf/etyxlRpAA8YM8g24G0AQjJ4HatocQBtSMB3G/B1AKBjCMiIfH0Aa7ykkvyAgQCDS8i7tsSBAJrW7ORtDIUAsmIRESdQhQDJ7TU93ZSJAOF4WWqX2IkA/Qd9k04cjQEUkqG8BGSRASwdxei+qJEBR6jmFXTslQFfNApCLzCVAXrDLmrldJkBjk5Sl5+4mQGp2XbAVgCdAcFkmu0MRKEB2PO/FcaIoQHwfuNCfMylAgQKB283EKUCH5Unm+1UqQI7IEvEp5ypAlavb+1d4K0CbjqQGhgksQKFxbRG0mixAplQ2HOIrLUCsN/8mEL0tQLMayDE+Ti5Auf2QPGzfLkC/4FlHmnAvQONhESnkADBAZtN1LntJMEDoRNozEpIwQGy2Pjmp2jBA7yejPkAjMUBymQdE12sxQPQKbElutDFAeHzQTgX9MUD77TRUnEUyQH5fmVkzjjJAAdH9XsrWMkCEQmJkYR8zQAe0xmn4ZzNAiiUrb4+wM0ANl490JvkzQJAI9Hm9QTRAE3pYf1SKNECW67yE69I0QBpdIYqCGzVAnM6FjxlkNUAfQOqUsKw1QKKxTppH9TVAJiOzn949NkCplBeldYY2QCwGfKoMzzZAsHfgr6MXN0Az6US1OmA3QLVaqbrRqDdAOMwNwGjxN0C7PXLF/zk4QD6v1sqWgjhAwSA70C3LOEBEkp/VxBM5QMcDBNtbXDlAS3Vo4PKkOUDO5szlie05QFFYMesgNjpA1MmV8Ld+OkBWO/r1Tsc6QNmsXvvlDztAXB7DAH1YO0DgjycGFKE7QGMBjAur6TtA5nLwEEIyPEBp5FQW2Xo8QOxVuRtwwzxAb8cdIQcMPUDyOIImnlQ9QHaq5is1nT1A+RtLMczlPUB7ja82Yy4+QP7+Ezz6dj5AgXB4QZG/PkAE4txGKAg/QIdTQUy/UD9AC8WlUVaZP0CONgpX7eE/QAhUNy5CFUBAyozpsI05QEA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1163\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1164\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1159\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\"}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1160\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.1}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1161\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.2}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1122\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"PanTool\",\"id\":\"p1137\"},{\"type\":\"object\",\"name\":\"WheelZoomTool\",\"id\":\"p1138\",\"attributes\":{\"renderers\":\"auto\"}},{\"type\":\"object\",\"name\":\"BoxZoomTool\",\"id\":\"p1139\",\"attributes\":{\"overlay\":{\"type\":\"object\",\"name\":\"BoxAnnotation\",\"id\":\"p1140\",\"attributes\":{\"syncable\":false,\"level\":\"overlay\",\"visible\":false,\"left\":{\"type\":\"number\",\"value\":\"nan\"},\"right\":{\"type\":\"number\",\"value\":\"nan\"},\"top\":{\"type\":\"number\",\"value\":\"nan\"},\"bottom\":{\"type\":\"number\",\"value\":\"nan\"},\"left_units\":\"canvas\",\"right_units\":\"canvas\",\"top_units\":\"canvas\",\"bottom_units\":\"canvas\",\"line_color\":\"black\",\"line_alpha\":1.0,\"line_width\":2,\"line_dash\":[4,4],\"fill_color\":\"lightgrey\",\"fill_alpha\":0.5}}}},{\"type\":\"object\",\"name\":\"ResetTool\",\"id\":\"p1145\"},{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1146\"},{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1165\",\"attributes\":{\"renderers\":\"auto\",\"tooltips\":[[\"Food\",\"@food\"],[\"Residual\",\"@residual{0.00}\"]]}}]}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1132\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1133\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1134\"},\"axis_label\":\"Protein (g per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1135\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1127\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1128\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1129\"},\"axis_label\":\"Calories (per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1130\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1131\",\"attributes\":{\"axis\":{\"id\":\"p1127\"}}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1136\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1132\"}}}]}}}}]}}]}};\n", - " const render_items = [{\"docid\":\"e5bfda1f-5a59-4de8-94be-4ebdf4899052\",\"roots\":{\"p1168\":\"b4f90c06-f937-48ca-a593-a96e6681506d\"},\"root_ids\":[\"p1168\"]}];\n", + " const docs_json = {\"badf6947-1349-465a-ac25-0b0f0ab0fe56\":{\"version\":\"3.3.4\",\"title\":\"Bokeh Application\",\"roots\":[{\"type\":\"object\",\"name\":\"Tabs\",\"id\":\"p1168\",\"attributes\":{\"tabs\":[{\"type\":\"object\",\"name\":\"TabPanel\",\"id\":\"p1166\",\"attributes\":{\"title\":\"All Data\",\"child\":{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1057\",\"attributes\":{\"width\":450,\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1067\",\"attributes\":{\"end\":600}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1068\",\"attributes\":{\"start\":-1,\"end\":34}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1069\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1070\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1060\",\"attributes\":{\"text\":\"Protein vs Calories\"}},\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1097\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1054\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1055\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1056\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pQAAACIAAACbAAAA0AAAAHQAAAB4AAAAOwAAAPoAAABMAAAARwAAADQAAACSAQAAIwIAAA==\"},\"shape\":[13],\"dtype\":\"int32\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAP0BmZmZmZmYGQAAAAAAAACpAAAAAAAAANEAAAAAAAAAiQGZmZmZmZhBAAAAAAAAAJEAAAAAAAAA6QAAAAAAAACBAAAAAAAAABEAzMzMzMzPTPwAAAAAAADlAMzMzMzMzIEA=\"},\"shape\":[13],\"dtype\":\"float64\",\"order\":\"little\"}],[\"food\",{\"type\":\"ndarray\",\"array\":[\"Chicken Breast\",\"Broccoli\",\"Eggs\",\"Salmon\",\"Lentils\",\"Quinoa\",\"Greek Yogurt\",\"Beef (Lean)\",\"Tofu\",\"Oatmeal\",\"Apples\",\"Cheese (Cheddar)\",\"Nutty Buddy (Little Debbies)\"],\"shape\":[13],\"dtype\":\"object\",\"order\":\"little\"}],[\"predicted\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"YKhY21QdKEDelhU8Z9YgQHy+yoofjydA4uK6tdOAKkDuR6HQgmQlQOML2vBknSVAlV94hew5IkBn7A4IGtYsQGSgaY6tKyNAcqsi5pLkIkCqCBXNYNYhQFUBPmjVozJAAuFC8NeqNkA=\"},\"shape\":[13],\"dtype\":\"float64\",\"order\":\"little\"}],[\"residual\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"0KtTklXxMkCJ+vdEm3kWwCAMqqkDh/M/PDqKlFj+GkBwPwqFFiT7v2CxTXtj1BrAsAZ6qDdh7D+ZE/H35SknQCADTXNsXfm/5FZFzCXJG8AQb3szxzwhwKz6B1+qcBlA0Y5SrXwiLcA=\"},\"shape\":[13],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1098\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1099\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1094\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"fill_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"hatch_color\":{\"type\":\"value\",\"value\":\"royalblue\"}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1095\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.1},\"fill_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.1},\"hatch_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1096\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_color\":{\"type\":\"value\",\"value\":\"royalblue\"},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1106\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1100\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1101\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1102\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAQUAXXXTRRZdDQC666KKLLkZARhdddNHFSEBddNFFF11LQHTRRRdd9E1ARhdddNFFUEDSRRdddJFRQF100UUX3VJA6KKLLrooVEB00UUXXXRVQAAAAAAAwFZAjC666KILWEAXXXTRRVdZQKOLLrroolpALrrooovuW0C66KKLLjpdQEYXXXTRhV5A0UUXXXTRX0Auuuiii45gQHTRRRddNGFAuuiiiy7aYUAAAAAAAIBiQEYXXXTRJWNAjC666KLLY0DRRRdddHFkQBdddNFFF2VAXXTRRRe9ZUCjiy666GJmQOmiiy66CGdALrrooouuZ0B00UUXXVRoQLrooosu+mhAAAAAAACgaUBGF1100UVqQIsuuuii62pA0UUXXXSRa0AXXXTRRTdsQF100UUX3WxAo4suuuiCbUDooosuuihuQC666KKLzm5AdNFFF110b0BddNFFFw1wQAAAAAAAYHBAo4suuuiycEBGF1100QVxQOiiiy66WHFAjC666KKrcUAuuuiii/5xQNFFF110UXJAdNFFF12kckAXXXTRRfdyQLrooosuSnNAXXTRRRedc0AAAAAAAPBzQKOLLrroQnRARhdddNGVdEDpoosuuuh0QIsuuuiiO3VALrrooouOdUDRRRdddOF1QHTRRRddNHZAF1100UWHdkC66KKLLtp2QF100UUXLXdAAAAAAACAd0Cjiy666NJ3QEYXXXTRJXhA6aKLLrp4eECLLrroost4QC666KKLHnlA0UUXXXRxeUB00UUXXcR5QBdddNFFF3pAuuiiiy5qekBddNFFF716QAAAAAAAEHtAo4suuuhie0BGF1100bV7QOiiiy66CHxAiy666KJbfEAuuuiii658QNFFF110AX1AdNFFF11UfUAXXXTRRad9QLrooosu+n1AXXTRRRdNfkAAAAAAAKB+QKOLLrro8n5ARhdddNFFf0Dooosuuph/QIsuuuii639AF1100UUfgEDooosuukiAQLrooosucoBAjC666KKbgEBddNFFF8WAQC666KKL7oBAAAAAAAAYgUA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"3pYVPGfWIED+q43OFyAhQB3BBWHIaSFAPNZ983izIUBc6/WFKf0hQHsAbhjaRiJAmxXmqoqQIkC6Kl49O9oiQNk/1s/rIyNA+VROYpxtI0AYasb0TLcjQDh/Pof9ACRAV5S2Ga5KJEB2qS6sXpQkQJa+pj4P3iRAtdMe0b8nJUDU6JZjcHElQPT9DvYguyVAExOHiNEEJkAyKP8agk4mQFI9d60ymCZAclLvP+PhJkCRZ2fSkysnQLB832REdSdA0JFX9/S+J0Dvps+JpQgoQA68RxxWUihALtG/rgacKEBO5jdBt+UoQG37r9NnLylAjBAoZhh5KUCsJaD4yMIpQMs6GIt5DCpA6k+QHSpWKkAKZQiw2p8qQCl6gEKL6SpASI/41DszK0BopHBn7HwrQIi56PmcxitAp85gjE0QLEDG49ge/lksQOb4ULGuoyxABQ7JQ1/tLEAkI0HWDzctQEQ4uWjAgC1AZE0x+3DKLUCDYqmNIRQuQKJ3ISDSXS5AwoyZsoKnLkDgoRFFM/EuQAC3idfjOi9AIMwBapSEL0A+4Xn8RM4vQC/7eMf6CzBAvwW1ENMwMEBPEPFZq1UwQN4aLaODejBAbiVp7FufMED+L6U1NMQwQI064X4M6TBAHUUdyOQNMUCtT1kRvTIxQDxalVqVVzFAzGTRo218MUBcbw3tRaExQOx5STYexjFAe4SFf/bqMUALj8HIzg8yQJuZ/RGnNDJAK6Q5W39ZMkC6rnWkV34yQEq5se0vozJA2cPtNgjIMkBpzimA4OwyQPnYZcm4ETNAieOhEpE2M0AY7t1baVszQKj4GaVBgDNAOANW7hmlM0DIDZI38skzQFcYzoDK7jNA5yIKyqITNEB2LUYTezg0QAY4glxTXTRAlkK+pSuCNEAmTfruA6c0QLVXNjjcyzRARWJygbTwNEDVbK7KjBU1QGV36hNlOjVA9IEmXT1fNUCEjGKmFYQ1QBOXnu/tqDVAo6HaOMbNNUAyrBaCnvI1QMO2Ust2FzZAU8GOFE88NkDiy8pdJ2E2QHHWBqf/hTZAAuFC8NeqNkA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1107\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1108\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1103\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\"}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1104\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.1}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1105\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.2}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1066\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"PanTool\",\"id\":\"p1081\"},{\"type\":\"object\",\"name\":\"WheelZoomTool\",\"id\":\"p1082\",\"attributes\":{\"renderers\":\"auto\"}},{\"type\":\"object\",\"name\":\"BoxZoomTool\",\"id\":\"p1083\",\"attributes\":{\"overlay\":{\"type\":\"object\",\"name\":\"BoxAnnotation\",\"id\":\"p1084\",\"attributes\":{\"syncable\":false,\"level\":\"overlay\",\"visible\":false,\"left\":{\"type\":\"number\",\"value\":\"nan\"},\"right\":{\"type\":\"number\",\"value\":\"nan\"},\"top\":{\"type\":\"number\",\"value\":\"nan\"},\"bottom\":{\"type\":\"number\",\"value\":\"nan\"},\"left_units\":\"canvas\",\"right_units\":\"canvas\",\"top_units\":\"canvas\",\"bottom_units\":\"canvas\",\"line_color\":\"black\",\"line_alpha\":1.0,\"line_width\":2,\"line_dash\":[4,4],\"fill_color\":\"lightgrey\",\"fill_alpha\":0.5}}}},{\"type\":\"object\",\"name\":\"ResetTool\",\"id\":\"p1089\"},{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1090\"},{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1109\",\"attributes\":{\"renderers\":\"auto\",\"tooltips\":[[\"Food\",\"@food\"],[\"Residual\",\"@residual{0.00}\"]]}}]}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1076\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1077\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1078\"},\"axis_label\":\"Protein (g per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1079\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1071\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1072\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1073\"},\"axis_label\":\"Calories (per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1074\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1075\",\"attributes\":{\"axis\":{\"id\":\"p1071\"}}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1080\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1076\"}}}]}}}},{\"type\":\"object\",\"name\":\"TabPanel\",\"id\":\"p1167\",\"attributes\":{\"title\":\"Drop Nutty Buddy\",\"child\":{\"type\":\"object\",\"name\":\"Figure\",\"id\":\"p1113\",\"attributes\":{\"width\":450,\"x_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1123\",\"attributes\":{\"end\":600}},\"y_range\":{\"type\":\"object\",\"name\":\"Range1d\",\"id\":\"p1124\",\"attributes\":{\"start\":-1,\"end\":34}},\"x_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1125\"},\"y_scale\":{\"type\":\"object\",\"name\":\"LinearScale\",\"id\":\"p1126\"},\"title\":{\"type\":\"object\",\"name\":\"Title\",\"id\":\"p1116\",\"attributes\":{\"text\":\"Protein vs Calories\"}},\"renderers\":[{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1153\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1110\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1111\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1112\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"pQAAACIAAACbAAAA0AAAAHQAAAB4AAAAOwAAAPoAAABMAAAARwAAADQAAACSAQAA\"},\"shape\":[12],\"dtype\":\"int32\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAP0BmZmZmZmYGQAAAAAAAACpAAAAAAAAANEAAAAAAAAAiQGZmZmZmZhBAAAAAAAAAJEAAAAAAAAA6QAAAAAAAACBAAAAAAAAABEAzMzMzMzPTPwAAAAAAADlA\"},\"shape\":[12],\"dtype\":\"float64\",\"order\":\"little\"}],[\"food\",{\"type\":\"ndarray\",\"array\":[\"Chicken Breast\",\"Broccoli\",\"Eggs\",\"Salmon\",\"Lentils\",\"Quinoa\",\"Greek Yogurt\",\"Beef (Lean)\",\"Tofu\",\"Oatmeal\",\"Apples\",\"Cheese (Cheddar)\"],\"shape\":[12],\"dtype\":\"object\",\"order\":\"little\"}],[\"predicted\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"Ga41mNC9LECWz+wv0YIRQOB3ltw/NytAoIsXeZ+mMUBpJENnC0QlQBk66UtF4CVAsd4I2qQjGUB+fX9pz9o0QAyXjPGQUx5A02DtNQDNHEDIksM52gAXQMqM6bCNOUBA\"},\"shape\":[12],\"dtype\":\"float64\",\"order\":\"little\"}],[\"residual\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"9CjlsxehMECMcebydz75vwB+Z8n9c+O/AKNDNwTLAkBIIxk6WyD6v8wNbDEkWhvAnkLuS7a4DUAICgJawpQUQECPNufwxto/02DtNQDNEsCVX5AGp80VwFBmTIdtzB3A\"},\"shape\":[12],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1154\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1155\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1150\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"fill_color\":{\"type\":\"value\",\"value\":\"black\"}}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1151\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_alpha\":{\"type\":\"value\",\"value\":0.1},\"fill_color\":{\"type\":\"value\",\"value\":\"black\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.1},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.1}}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Circle\",\"id\":\"p1152\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"size\":{\"type\":\"value\",\"value\":10},\"line_alpha\":{\"type\":\"value\",\"value\":0.2},\"fill_color\":{\"type\":\"value\",\"value\":\"black\"},\"fill_alpha\":{\"type\":\"value\",\"value\":0.2},\"hatch_alpha\":{\"type\":\"value\",\"value\":0.2}}}}},{\"type\":\"object\",\"name\":\"GlyphRenderer\",\"id\":\"p1162\",\"attributes\":{\"data_source\":{\"type\":\"object\",\"name\":\"ColumnDataSource\",\"id\":\"p1156\",\"attributes\":{\"selected\":{\"type\":\"object\",\"name\":\"Selection\",\"id\":\"p1157\",\"attributes\":{\"indices\":[],\"line_indices\":[]}},\"selection_policy\":{\"type\":\"object\",\"name\":\"UnionRenderers\",\"id\":\"p1158\"},\"data\":{\"type\":\"map\",\"entries\":[[\"x\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"AAAAAAAAQUAxb2dIzNtCQGLezpCYt0RAlE022WSTRkDEvJ0hMW9IQPYrBWr9SkpAJ5tssskmTEBYCtT6lQJOQIl5O0Ni3k9AXXTRRRfdUED2KwVq/cpRQI7jOI7juFJAJ5tsssmmU0DAUqDWr5RUQFgK1PqVglVA8MEHH3xwVkCJeTtDYl5XQCIxb2dITFhAuuiiiy46WUBToNavFChaQOtXCtT6FVtAhA8++OADXEAcx3Ecx/FcQLV+pUCt311ATjbZZJPNXkDm7QyJebtfQMBSoNavVGBAjC666KLLYEBYCtT6lUJhQCTm7QyJuWFA8MEHH3wwYkC8nSExb6diQIl5O0NiHmNAVlVVVVWVY0AiMW9nSAxkQO4MiXk7g2RAuuiiiy76ZECGxLydIXFlQFOg1q8U6GVAH3zwwQdfZkDrVwrU+tVmQLgzJObtTGdAhA8++ODDZ0BQ61cK1DpoQBzHcRzHsWhA6aKLLrooaUC1fqVArZ9pQIFav1KgFmpATjbZZJONakAaEvN2hgRrQObtDIl5e2tAsskmm2zya0B/pUCtX2lsQEuBWr9S4GxAF1100UVXbUDjOI7jOM5tQLAUqPUrRW5AfPDBBx+8bkBIzNsZEjNvQBWo9SsFqm9A8MEHH3wQcEDWrxSo9UtwQLydITFvh3BAo4suuujCcECJeTtDYv5wQG9nSMzbOXFAVlVVVVV1cUA8Q2LezrBxQCIxb2dI7HFACB988MEnckDuDIl5O2NyQNT6lQK1nnJAuuiiiy7ackCg1q8UqBVzQIbEvJ0hUXNAbbLJJpuMc0BToNavFMhzQDmO4ziOA3RAH3zwwQc/dEAFav1KgXp0QOtXCtT6tXRA0UUXXXTxdEC4MyTm7Sx1QJ4hMW9naHVAhA8++OCjdUBq/UqBWt91QFDrVwrUGnZANtlkk01WdkAcx3Ecx5F2QAO1fqVAzXZA6aKLLroId0DPkJi3M0R3QLV+pUCtf3dAm2yyySa7d0CBWr9SoPZ3QGdIzNsZMnhATjbZZJNteEA0JObtDKl4QBoS83aG5HhAAAAAAAAgeUA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}],[\"y\",{\"type\":\"ndarray\",\"array\":{\"type\":\"bytes\",\"data\":\"ls/sL9GCEUCilX5FLaUSQK5bEFuJxxNAuiGicOXpFEDG5zOGQQwWQNOtxZudLhdA33NXsflQGEDrOenGVXMZQPf/etyxlRpAA8YM8g24G0AQjJ4HatocQBtSMB3G/B1AKBjCMiIfH0Aa7ykkvyAgQCDS8i7tsSBAJrW7ORtDIUAsmIRESdQhQDJ7TU93ZSJAOF4WWqX2IkA/Qd9k04cjQEUkqG8BGSRASwdxei+qJEBR6jmFXTslQFfNApCLzCVAXrDLmrldJkBjk5Sl5+4mQGp2XbAVgCdAcFkmu0MRKEB2PO/FcaIoQHwfuNCfMylAgQKB283EKUCH5Unm+1UqQI7IEvEp5ypAlavb+1d4K0CbjqQGhgksQKFxbRG0mixAplQ2HOIrLUCsN/8mEL0tQLMayDE+Ti5Auf2QPGzfLkC/4FlHmnAvQONhESnkADBAZtN1LntJMEDoRNozEpIwQGy2Pjmp2jBA7yejPkAjMUBymQdE12sxQPQKbElutDFAeHzQTgX9MUD77TRUnEUyQH5fmVkzjjJAAdH9XsrWMkCEQmJkYR8zQAe0xmn4ZzNAiiUrb4+wM0ANl490JvkzQJAI9Hm9QTRAE3pYf1SKNECW67yE69I0QBpdIYqCGzVAnM6FjxlkNUAfQOqUsKw1QKKxTppH9TVAJiOzn949NkCplBeldYY2QCwGfKoMzzZAsHfgr6MXN0Az6US1OmA3QLVaqbrRqDdAOMwNwGjxN0C7PXLF/zk4QD6v1sqWgjhAwSA70C3LOEBEkp/VxBM5QMcDBNtbXDlAS3Vo4PKkOUDO5szlie05QFFYMesgNjpA1MmV8Ld+OkBWO/r1Tsc6QNmsXvvlDztAXB7DAH1YO0DgjycGFKE7QGMBjAur6TtA5nLwEEIyPEBp5FQW2Xo8QOxVuRtwwzxAb8cdIQcMPUDyOIImnlQ9QHaq5is1nT1A+RtLMczlPUB7ja82Yy4+QP7+Ezz6dj5AgXB4QZG/PkAE4txGKAg/QIdTQUy/UD9AC8WlUVaZP0CONgpX7eE/QAhUNy5CFUBAyozpsI05QEA=\"},\"shape\":[100],\"dtype\":\"float64\",\"order\":\"little\"}]]}}},\"view\":{\"type\":\"object\",\"name\":\"CDSView\",\"id\":\"p1163\",\"attributes\":{\"filter\":{\"type\":\"object\",\"name\":\"AllIndices\",\"id\":\"p1164\"}}},\"glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1159\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\"}},\"nonselection_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1160\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.1}},\"muted_glyph\":{\"type\":\"object\",\"name\":\"Line\",\"id\":\"p1161\",\"attributes\":{\"x\":{\"type\":\"field\",\"field\":\"x\"},\"y\":{\"type\":\"field\",\"field\":\"y\"},\"line_color\":\"red\",\"line_alpha\":0.2}}}}],\"toolbar\":{\"type\":\"object\",\"name\":\"Toolbar\",\"id\":\"p1122\",\"attributes\":{\"tools\":[{\"type\":\"object\",\"name\":\"PanTool\",\"id\":\"p1137\"},{\"type\":\"object\",\"name\":\"WheelZoomTool\",\"id\":\"p1138\",\"attributes\":{\"renderers\":\"auto\"}},{\"type\":\"object\",\"name\":\"BoxZoomTool\",\"id\":\"p1139\",\"attributes\":{\"overlay\":{\"type\":\"object\",\"name\":\"BoxAnnotation\",\"id\":\"p1140\",\"attributes\":{\"syncable\":false,\"level\":\"overlay\",\"visible\":false,\"left\":{\"type\":\"number\",\"value\":\"nan\"},\"right\":{\"type\":\"number\",\"value\":\"nan\"},\"top\":{\"type\":\"number\",\"value\":\"nan\"},\"bottom\":{\"type\":\"number\",\"value\":\"nan\"},\"left_units\":\"canvas\",\"right_units\":\"canvas\",\"top_units\":\"canvas\",\"bottom_units\":\"canvas\",\"line_color\":\"black\",\"line_alpha\":1.0,\"line_width\":2,\"line_dash\":[4,4],\"fill_color\":\"lightgrey\",\"fill_alpha\":0.5}}}},{\"type\":\"object\",\"name\":\"ResetTool\",\"id\":\"p1145\"},{\"type\":\"object\",\"name\":\"SaveTool\",\"id\":\"p1146\"},{\"type\":\"object\",\"name\":\"HoverTool\",\"id\":\"p1165\",\"attributes\":{\"renderers\":\"auto\",\"tooltips\":[[\"Food\",\"@food\"],[\"Residual\",\"@residual{0.00}\"]]}}]}},\"left\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1132\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1133\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1134\"},\"axis_label\":\"Protein (g per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1135\"}}}],\"below\":[{\"type\":\"object\",\"name\":\"LinearAxis\",\"id\":\"p1127\",\"attributes\":{\"ticker\":{\"type\":\"object\",\"name\":\"BasicTicker\",\"id\":\"p1128\",\"attributes\":{\"mantissas\":[1,2,5]}},\"formatter\":{\"type\":\"object\",\"name\":\"BasicTickFormatter\",\"id\":\"p1129\"},\"axis_label\":\"Calories (per 100g)\",\"major_label_policy\":{\"type\":\"object\",\"name\":\"AllLabels\",\"id\":\"p1130\"}}}],\"center\":[{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1131\",\"attributes\":{\"axis\":{\"id\":\"p1127\"}}},{\"type\":\"object\",\"name\":\"Grid\",\"id\":\"p1136\",\"attributes\":{\"dimension\":1,\"axis\":{\"id\":\"p1132\"}}}]}}}}]}}]}};\n", + " const render_items = [{\"docid\":\"badf6947-1349-465a-ac25-0b0f0ab0fe56\",\"roots\":{\"p1168\":\"f58bc11c-3263-4888-84b7-9a7f113ed284\"},\"root_ids\":[\"p1168\"]}];\n", " root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n", " }\n", " if (root.Bokeh !== undefined) {\n", @@ -1066,7 +1066,7 @@ }, { "cell_type": "markdown", - "id": "72ce6b76", + "id": "64cc25f3", "metadata": {}, "source": [ "## Regression Fallacy\n", @@ -1229,7 +1229,7 @@ "$\\hat{y} = 33.893 +0.514 x_{1}$" ], "text/plain": [ - "" + "" ] }, "metadata": {}, diff --git a/book/_build/html/genindex.html b/book/_build/html/genindex.html index 685850f..a4a4e5a 100644 --- a/book/_build/html/genindex.html +++ b/book/_build/html/genindex.html @@ -190,6 +190,12 @@
  • Regression
  • Bibliography
  • +

    Google Sheets (optional)

    +

    Python (optional)

    -

    Google Sheets (optional)

    -

    R (optional)

    +

    Google Sheets (optional)

    +

    Python (optional)

    -

    Google Sheets (optional)

    -

    R (optional)

    +

    Google Sheets (optional)

    +

    Python (optional)

    -

    Google Sheets (optional)

    -

    R (optional)