j1-template 2022.5.0.rc1 → 2022.5.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/data/banner.html +24 -1
- data/assets/themes/j1/adapter/js/masterslider.js +22 -5
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +56 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +270 -270
- data/lib/starter_web/_config.yml +19 -9
- data/lib/starter_web/_data/blocks/banner.yml +17 -0
- data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
- data/lib/starter_web/_data/modules/justifiedGallery.yml +82 -0
- data/lib/starter_web/_data/modules/masterslider.yml +5 -9
- data/lib/starter_web/_data/modules/navigator_menu.yml +208 -168
- data/lib/starter_web/_includes/attributes.asciidoc +18 -14
- data/lib/starter_web/_includes/tables/template_variables.asciidoc +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +4 -4
- data/lib/starter_web/assets/images/pages/features/blog-post-navigator-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1280x800.png +0 -0
- data/lib/starter_web/assets/images/pages/features/clipboard-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/comments-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/cookie-consent-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/desktop-web-navigation-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/fab-1280x500.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/full-text-search-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.png +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.png +0 -0
- data/lib/starter_web/assets/images/pages/features/intro-panel-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/master-header-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.png +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.png +0 -0
- data/lib/starter_web/assets/images/pages/features/nav-module-1280x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/nbi-barchart-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/teaser-banner-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/translator-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/sticker/600x600/sticker-new-version.png +0 -0
- data/lib/starter_web/assets/images/sticker/scalable/readme +0 -0
- data/lib/starter_web/package.json +6 -6
- data/lib/starter_web/pages/public/_jupyter/docs/_includes/attributes.asciidoc +67 -0
- data/lib/starter_web/pages/public/_jupyter/docs/_includes/documents/j1_docs_example_static.asciidoc +232 -0
- data/lib/starter_web/pages/public/_jupyter/docs/binderhub.adoc +631 -0
- data/lib/starter_web/pages/public/_jupyter/docs/j1-nbinteract.adoc +638 -0
- data/lib/starter_web/pages/public/_jupyter/docs/jupyterhub.adoc +248 -0
- data/lib/starter_web/pages/public/_jupyter/docs/nbinteract-widget-manual.adoc +928 -0
- data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-circular-times-table.adoc +139 -0
- data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-common-used-widgets.adoc +229 -0
- data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-odes-in-python.adoc +112 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-altair/j1-altair-visualisations.adoc +142 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-bokeh/j1-bokeh-visualisations.adoc +171 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-bokeh/j1-bqplot-eamples.adoc +111 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-plotly/j1-plotly-visualisations.adoc +94 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1_climate-change-forecast.adoc +106 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_altair_interactive-checkpoint.ipynb +16260 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_bgplot_line_plot-checkpoint.ipynb +247 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-Copy1-checkpoint.ipynb +12382 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-checkpoint.ipynb +12387 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-short-checkpoint.ipynb +12170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_climate_change_forecast-checkpoint.ipynb +1058 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_docs_example_dynamic-checkpoint.ipynb +14478 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-Copy1-checkpoint.ipynb +379 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-checkpoint.ipynb +442 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets-checkpoint.ipynb +523 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets.line_charts-checkpoint.ipynb +84 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets.questions-checkpoint.ipynb +194 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_chart-checkpoint.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts-Copy1-checkpoint.ipynb +164 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts-checkpoint.ipynb +173 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts.1-checkpoint.ipynb +256 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_barcharts-checkpoint.ipynb +126 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_hist_chart-checkpoint.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_line_chart-checkpoint.ipynb +90 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_line_charts-checkpoint.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_question_multiple_choice-checkpoint.ipynb +64 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_question_short_answer-checkpoint.ipynb +122 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_questions-checkpoint.ipynb +181 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_chart-checkpoint.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_charts-checkpoint.ipynb +175 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_drag_chart-checkpoint.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_ode_selected-checkpoint.ipynb +14478 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_odes_in_python-checkpoint.ipynb +15227 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/factor_by_factor.mp4 +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_circular_times_table.ipynb +12382 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_climate_change_forecast.ipynb +1058 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_docs_example_dynamic.ipynb +14478 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_interactive_widgets.ipynb +442 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets.ipynb +523 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_bar_chart.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_hist_chart.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_line_chart.ipynb +90 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_question_multiple_choice.ipynb +64 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_question_short_answer.ipynb +122 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_scatter_chart.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_scatter_drag_chart.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_odes_in_python.ipynb +15227 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/line_by_line.mp4 +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/point_by_point.mp4 +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/.ipynb_checkpoints/j1_altair_interactive-checkpoint.ipynb +16296 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/.ipynb_checkpoints/j1_altair_non_interactive-checkpoint.ipynb +15385 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/j1_altair_interactive.ipynb +16296 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/j1_altair_non_interactive.ipynb +15385 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/00 - Introduction and Setup-checkpoint.ipynb +717 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/01 - Basic Plotting-checkpoint.ipynb +1381 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/02 - Styling and Theming-checkpoint.ipynb +1440 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/03 - Data Sources and Transformations-checkpoint.ipynb +927 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/04 - Adding Annotations-checkpoint.ipynb +1105 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/05 - Presentation Layouts-checkpoint.ipynb +578 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/06 - Linking and Interactions-checkpoint.ipynb +1196 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/07 - Bar and Categorical Data Plots-checkpoint.ipynb +1681 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/08 - Graph and Network Plots-checkpoint.ipynb +680 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/09 - Geographic Plots-checkpoint.ipynb +693 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/10 - Exporting and Embedding-checkpoint.ipynb +751 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/11 - Running Bokeh Applications-checkpoint.ipynb +770 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/bokeh_tut_00_introduction_and_setup-checkpoint.ipynb +666 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_01_basic_plotting-checkpoint.ipynb +1365 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_02_styling_and_theming-checkpoint.ipynb +1405 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_03_data_sources_and_transformations-checkpoint.ipynb +856 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_04_adding_annotations-checkpoint.ipynb +1167 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_05_presentation_layouts-checkpoint.ipynb +601 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_06_linking_and_interactions-checkpoint.ipynb +1356 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_07_bar_and_categorical_data_plots-checkpoint.ipynb +1742 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_08_graph_and_network_plots-checkpoint.ipynb +625 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_09_geographic_plots-checkpoint.ipynb +685 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding-checkpoint.ipynb +726 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding-checkpoint.org +726 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding.new-checkpoint.ipynb +560 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_11_running_bokeh_applications-checkpoint.ipynb +716 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_01_basic_plotting.ipynb +1365 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_02_styling_and_theming.ipynb +1405 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_03_data_sources_and_transformations.ipynb +856 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_04_adding_annotations.ipynb +1167 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_05_presentation_layouts.ipynb +601 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_06_linking_and_interactions.ipynb +1356 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_07_bar_and_categorical_data_plots.ipynb +1742 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_08_graph_and_network_plots.ipynb +625 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_09_geographic_plots.ipynb +685 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/.ipynb_checkpoints/j1_mathplot_vs_bqplot-checkpoint.ipynb +336 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/advanced/Feature_Vector_Distribution-Iris-Digits.ipynb +433 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_bgplot_line_plot.ipynb +244 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_circular_times_table-short.ipynb +12170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_mathplot_vs_bqplot.ipynb +336 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/.ipynb_checkpoints/Index-checkpoint.ipynb +163 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/.ipynb_checkpoints/Tutorials-checkpoint.ipynb +51 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Advanced Plotting.ipynb +289 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Animations.ipynb +266 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Axis Properties.ipynb +396 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Plotting Dates.ipynb +318 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Equity Index Performance/Time Series.ipynb +158 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Equity Index Performance/spx_prices.csv +6799 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Feature_Vector_Distribution-Iris-Digits.ipynb +470 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Index.ipynb +49 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Logs Analytics/Logs Dashboard.ipynb +378 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Mobile Patent Suits.ipynb +123 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Neural Network.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Outlier Detection.ipynb +311 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/Bubble Chart.ipynb +255 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/Choropleth.ipynb +275 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/nations.json +1 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/world_map_codes.csv +234 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Basic Plotting-checkpoint.ipynb +186 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Pyplot-checkpoint.ipynb +794 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Untitled-checkpoint.ipynb +323 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/Basic Plotting.ipynb +261 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/Pyplot.ipynb +1489 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Index.ipynb +163 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Interaction Layer.ipynb +966 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Mark Interactions.ipynb +476 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Selectors.ipynb +427 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Introduction.ipynb +528 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Bars.ipynb +480 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Bins.ipynb +217 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Boxplot.ipynb +253 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Candles.ipynb +225 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/FlexLine.ipynb +123 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Graph.ipynb +357 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/GridHeatMap.ipynb +422 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/HeatMap.ipynb +157 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Hist.ipynb +176 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Image.ipynb +195 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Label.ipynb +189 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Lines.ipynb +565 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Map.ipynb +182 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Market Map.ipynb +315 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Pie.ipynb +465 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Scatter.ipynb +835 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Bars.ipynb +362 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Bins.ipynb +252 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Boxplot.ipynb +273 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Candles.ipynb +242 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/GridHeatMap.ipynb +417 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/HeatMap.ipynb +155 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Hist.ipynb +238 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Image.ipynb +152 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Label.ipynb +206 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Lines.ipynb +474 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Map.ipynb +181 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Pie.ipynb +310 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Scatter.ipynb +702 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Scales/Color Scales.ipynb +495 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Feature_Vector_Distribution-Iris-Digits-checkpoint.ipynb +433 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Linking Plots With Widgets-checkpoint.ipynb +326 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Updating Plots-Copy1-checkpoint.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Updating Plots-checkpoint.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Brush Interval Selector.ipynb +154 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Fast Interval Selector.ipynb +152 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Gaussian Density Widget.ipynb +128 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Gaussian Density.ipynb +113 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Linking Plots With Widgets.ipynb +326 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Object Model.ipynb +179 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Pyplot.ipynb +174 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Updating Plots.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials.ipynb +51 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/country_codes.csv +213 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/gdp_per_capita.csv +56 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/state_codes.csv +52 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/trees.jpg +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_central_limit_theorem-checkpoint.ipynb +247 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_variability_of_the_sample_mean-checkpoint.ipynb +323 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_graphing-checkpoint.ipynb +387 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_interactive_questions-checkpoint.ipynb +185 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_layout-checkpoint.ipynb +384 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_interact-checkpoint.ipynb +254 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_monty_hall-checkpoint.ipynb +732 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_central_limit_theorem.ipynb +247 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_correlation.ipynb +651 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_empirical_distributions.ipynb +773 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_linear_regression.ipynb +111 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_probability_distribution_plots.ipynb +199 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_sampling_from_a_population.ipynb +421 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_variability_of_the_sample_mean.ipynb +323 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_graphing.ipynb +387 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_interactive_questions.ipynb +185 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_layout.ipynb +384 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_tutorial_interact.ipynb +254 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_tutorial_monty_hall.ipynb +732 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Advanced Plotting.html +373 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Animations.html +361 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Axis Properties.html +569 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bars.html +487 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Basic Plotting.html +341 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bins.html +259 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Boxplot.html +277 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Brush Interval Selector.html +182 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bubble Chart.html +299 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Candles.html +252 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Choropleth.html +318 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Color Scales.html +514 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Fast Interval Selector.html +182 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Feature_Vector_Distribution-Iris-Digits.html +479 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/FlexLine.html +128 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Gaussian Density Widget.html +152 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Gaussian Density.html +137 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Graph.html +484 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/GridHeatMap.html +483 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/HeatMap.html +170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Hist.html +349 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Image.html +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Index.html +29 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Interaction Layer.html +1372 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Introduction.html +749 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Label.html +268 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Lines.html +704 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Linking Plots With Widgets.html +389 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Logs Dashboard.html +455 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Map.html +229 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Mark Interactions.html +613 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Market Map.html +413 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Mobile Patent Suits.html +131 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Neural Network.html +190 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Object Model.html +193 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Outlier Detection.html +363 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Pie.html +367 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Plotting Dates.html +337 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Pyplot.html +196 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Scatter.html +948 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Selectors.html +489 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Time Series.html +173 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Tutorials.html +40 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Updating Plots.html +228 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_altair_interactive.html +2216 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_altair_non_interactive.html +1170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bgplot_line_plot.html +318 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_01_basic_plotting.html +1479 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_02_styling_and_theming.html +1524 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_03_data_sources_and_transformations.html +983 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_04_adding_annotations.html +1280 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_05_presentation_layouts.html +660 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_06_linking_and_interactions.html +1563 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_07_bar_and_categorical_data_plots.html +1888 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_08_graph_and_network_plots.html +689 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_09_geographic_plots.html +767 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_circular_times_table-short.html +475 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_circular_times_table.html +747 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_climate_change_forecast.html +1250 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_docs_example_dynamic.html +186 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_mathplot_vs_bqplot.html +407 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_central_limit_theorem.html +290 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_correlation.html +818 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_empirical_distributions.html +351 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_linear_regression.html +106 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_probability_distribution_plots.html +228 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_sampling_from_a_population.html +518 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_variability_of_the_sample_mean.html +372 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_graphing.html +473 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_interactive_questions.html +242 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_layout.html +496 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_tutorial_interact.html +329 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_tutorial_monty_hall.html +866 -0
- data/lib/starter_web/pages/public/_jupyter/where_to_go.adoc +270 -0
- data/lib/starter_web/pages/public/features/general.adoc +74 -33
- data/lib/starter_web/pages/public/features/template.adoc +159 -68
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -512
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -629
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -96
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -70
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -156
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -955
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_images.adoc +313 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_videos.adoc +281 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/200_typography.adoc +253 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/300_icon_fonts.adoc +579 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/400_asciidoc_extensions.adoc +718 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/410_bs_modals_extentions.adoc +91 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/420_responsive_tables_extensions.adoc +420 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/500_themes.adoc +250 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/600_quicksearch.adoc +425 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/attributes.asciidoc +118 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/100_gistblock.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_info.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_central_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_table_bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +337 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/tables/bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/google-ad.js +130 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +6 -5
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -2
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +4 -2
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +384 -17
- data/lib/starter_web/_includes/_attributes.asciidoc +0 -575
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/comments-1080x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/cookie-consent-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/fab-1080x500.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/full-text-search-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/intro-panel-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/nav-module-1080x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/teaser-banner-1080x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/translator-1080x800.jpg +0 -0
data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_correlation.ipynb
ADDED
@@ -0,0 +1,651 @@
|
|
1
|
+
{
|
2
|
+
"cells": [
|
3
|
+
{
|
4
|
+
"cell_type": "code",
|
5
|
+
"execution_count": 1,
|
6
|
+
"metadata": {},
|
7
|
+
"outputs": [],
|
8
|
+
"source": [
|
9
|
+
"# HIDDEN\n",
|
10
|
+
"from datascience import *\n",
|
11
|
+
"%matplotlib inline\n",
|
12
|
+
"import matplotlib.pyplot as plots\n",
|
13
|
+
"plots.style.use('fivethirtyeight')\n",
|
14
|
+
"import math\n",
|
15
|
+
"import numpy as np\n",
|
16
|
+
"from scipy import stats\n",
|
17
|
+
"from ipywidgets import interact, interactive, fixed, interact_manual\n",
|
18
|
+
"import ipywidgets as widgets\n",
|
19
|
+
"import nbinteract as nbi"
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"cell_type": "markdown",
|
24
|
+
"metadata": {},
|
25
|
+
"source": [
|
26
|
+
"### Correlation\n",
|
27
|
+
"In this section we will develop a measure of how tightly clustered a scatter diagram is about a straight line. Formally, this is called measuring *linear association*."
|
28
|
+
]
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"cell_type": "markdown",
|
32
|
+
"metadata": {},
|
33
|
+
"source": [
|
34
|
+
"#### The correlation coefficient\n",
|
35
|
+
"\n",
|
36
|
+
"The *correlation coefficient* measures the strength of the linear relationship between two variables. Graphically, it measures how clustered the scatter diagram is around a straight line.\n",
|
37
|
+
"\n",
|
38
|
+
"The term *correlation coefficient* is a quite long word, so usually the term shortened to *correlation* and denoted by $r$.\n",
|
39
|
+
"\n",
|
40
|
+
"Here are some mathematical facts about $r$ that we will just observe by simulation.\n",
|
41
|
+
"\n",
|
42
|
+
"- The correlation coefficient $r$ is a number between -1 and 1.\n",
|
43
|
+
"- $r$ measures the extent to which the scatter plot clusters around a straight line.\n",
|
44
|
+
"- $r$ = 1 if the scatter diagram is a perfect straight line sloping upwards, and $r$ = -1 if the scatter diagram is a perfect straight line sloping downwards."
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"cell_type": "markdown",
|
49
|
+
"metadata": {},
|
50
|
+
"source": [
|
51
|
+
"The function ``r_scatter`` takes a value of $r$ as its argument and simulates a scatter plot with a correlation very close to $r$. Because of randomness in the simulation, the correlation is not expected to be exactly equal to $r$.\n",
|
52
|
+
"\n",
|
53
|
+
"Call ``r_scatter`` a few times, with different values of $r$ as the argument, and see how the scatter plot changes. \n",
|
54
|
+
"\n",
|
55
|
+
"When $r$ = 1 the scatter plot is perfectly linear and slopes upward. When $r$ = -1, the scatter plot is perfectly linear and slopes downward. When $r$ = 0, the scatter plot is a formless cloud around the horizontal axis, and the variables are said to be *uncorrelated*."
|
56
|
+
]
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"cell_type": "code",
|
60
|
+
"execution_count": 2,
|
61
|
+
"metadata": {},
|
62
|
+
"outputs": [
|
63
|
+
{
|
64
|
+
"data": {
|
65
|
+
"application/vnd.jupyter.widget-view+json": {
|
66
|
+
"model_id": "d40394e76601418f9eaad00c672f41d1",
|
67
|
+
"version_major": 2,
|
68
|
+
"version_minor": 0
|
69
|
+
},
|
70
|
+
"text/plain": [
|
71
|
+
"VBox(children=(interactive(children=(FloatSlider(value=0.0, description='r', max=1.0, min=-1.0, step=0.05), Ou…"
|
72
|
+
]
|
73
|
+
},
|
74
|
+
"metadata": {},
|
75
|
+
"output_type": "display_data"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"source": [
|
79
|
+
"z = np.random.normal(0, 1, 500)\n",
|
80
|
+
"def r_scatter(xs, r):\n",
|
81
|
+
" \"\"\"\n",
|
82
|
+
" Generate y-values for a scatter plot with correlation approximately r\n",
|
83
|
+
" \"\"\"\n",
|
84
|
+
" return r*xs + (np.sqrt(1-r**2))*z\n",
|
85
|
+
"\n",
|
86
|
+
"corr_opts = {\n",
|
87
|
+
" 'aspect_ratio': 1,\n",
|
88
|
+
" 'xlim': (-3.5, 3.5),\n",
|
89
|
+
" 'ylim': (-3.5, 3.5),\n",
|
90
|
+
"}\n",
|
91
|
+
"\n",
|
92
|
+
"nbi.scatter(np.random.normal(size=500), r_scatter, options=corr_opts, r=(-1, 1, 0.05))"
|
93
|
+
]
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"cell_type": "markdown",
|
97
|
+
"metadata": {},
|
98
|
+
"source": [
|
99
|
+
"#### Calculating the correlation\n",
|
100
|
+
"\n",
|
101
|
+
"The formula for $r$ is not apparent from our observations so far. It has a mathematical basis that is outside the scope of this class. However, as you will see, the calculation is straightforward and helps us understand several of the properties of $r$.\n",
|
102
|
+
"\n",
|
103
|
+
"**Formula** for $r$:\n",
|
104
|
+
"\n",
|
105
|
+
"$r$ is the **average of the products of the two variables**, when both variables are measured in standard units.\n",
|
106
|
+
"\n",
|
107
|
+
"Here are the steps in the calculation. We will apply the steps to a simple table of values of **x** and **y**."
|
108
|
+
]
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"cell_type": "code",
|
112
|
+
"execution_count": 3,
|
113
|
+
"metadata": {},
|
114
|
+
"outputs": [
|
115
|
+
{
|
116
|
+
"data": {
|
117
|
+
"text/html": [
|
118
|
+
"<table border=\"1\" class=\"dataframe\">\n",
|
119
|
+
" <thead>\n",
|
120
|
+
" <tr>\n",
|
121
|
+
" <th>x</th> <th>y</th>\n",
|
122
|
+
" </tr>\n",
|
123
|
+
" </thead>\n",
|
124
|
+
" <tbody>\n",
|
125
|
+
" <tr>\n",
|
126
|
+
" <td>1 </td> <td>2 </td>\n",
|
127
|
+
" </tr>\n",
|
128
|
+
" <tr>\n",
|
129
|
+
" <td>2 </td> <td>3 </td>\n",
|
130
|
+
" </tr>\n",
|
131
|
+
" <tr>\n",
|
132
|
+
" <td>3 </td> <td>1 </td>\n",
|
133
|
+
" </tr>\n",
|
134
|
+
" <tr>\n",
|
135
|
+
" <td>4 </td> <td>5 </td>\n",
|
136
|
+
" </tr>\n",
|
137
|
+
" <tr>\n",
|
138
|
+
" <td>5 </td> <td>2 </td>\n",
|
139
|
+
" </tr>\n",
|
140
|
+
" <tr>\n",
|
141
|
+
" <td>6 </td> <td>7 </td>\n",
|
142
|
+
" </tr>\n",
|
143
|
+
" </tbody>\n",
|
144
|
+
"</table>"
|
145
|
+
],
|
146
|
+
"text/plain": [
|
147
|
+
"x | y\n",
|
148
|
+
"1 | 2\n",
|
149
|
+
"2 | 3\n",
|
150
|
+
"3 | 1\n",
|
151
|
+
"4 | 5\n",
|
152
|
+
"5 | 2\n",
|
153
|
+
"6 | 7"
|
154
|
+
]
|
155
|
+
},
|
156
|
+
"execution_count": 3,
|
157
|
+
"metadata": {},
|
158
|
+
"output_type": "execute_result"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"source": [
|
162
|
+
"x = np.arange(1, 7, 1)\n",
|
163
|
+
"y = make_array(2, 3, 1, 5, 2, 7)\n",
|
164
|
+
"t = Table().with_columns(\n",
|
165
|
+
" 'x', x,\n",
|
166
|
+
" 'y', y\n",
|
167
|
+
" )\n",
|
168
|
+
"t"
|
169
|
+
]
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"cell_type": "markdown",
|
173
|
+
"metadata": {},
|
174
|
+
"source": [
|
175
|
+
"Based on the scatter diagram, we expect that $r$ will be positive but not equal to 1."
|
176
|
+
]
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"cell_type": "code",
|
180
|
+
"execution_count": 4,
|
181
|
+
"metadata": {},
|
182
|
+
"outputs": [
|
183
|
+
{
|
184
|
+
"data": {
|
185
|
+
"application/vnd.jupyter.widget-view+json": {
|
186
|
+
"model_id": "562201223b3e4e31846c056f1b44b96e",
|
187
|
+
"version_major": 2,
|
188
|
+
"version_minor": 0
|
189
|
+
},
|
190
|
+
"text/plain": [
|
191
|
+
"VBox(children=(interactive(children=(Output(),), _dom_classes=('widget-interact',)), Figure(axes=[Axis(scale=L…"
|
192
|
+
]
|
193
|
+
},
|
194
|
+
"metadata": {},
|
195
|
+
"output_type": "display_data"
|
196
|
+
}
|
197
|
+
],
|
198
|
+
"source": [
|
199
|
+
"nbi.scatter(t.column(0), t.column(1), options={'aspect_ratio': 1})"
|
200
|
+
]
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"cell_type": "markdown",
|
204
|
+
"metadata": {},
|
205
|
+
"source": [
|
206
|
+
"**Step 1.** Convert each variable to standard units."
|
207
|
+
]
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"cell_type": "code",
|
211
|
+
"execution_count": 5,
|
212
|
+
"metadata": {},
|
213
|
+
"outputs": [],
|
214
|
+
"source": [
|
215
|
+
"def standard_units(nums):\n",
|
216
|
+
" return (nums - np.mean(nums)) / np.std(nums)"
|
217
|
+
]
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"cell_type": "code",
|
221
|
+
"execution_count": 6,
|
222
|
+
"metadata": {},
|
223
|
+
"outputs": [
|
224
|
+
{
|
225
|
+
"data": {
|
226
|
+
"text/html": [
|
227
|
+
"<table border=\"1\" class=\"dataframe\">\n",
|
228
|
+
" <thead>\n",
|
229
|
+
" <tr>\n",
|
230
|
+
" <th>x</th> <th>y</th> <th>x (standard units)</th> <th>y (standard units)</th>\n",
|
231
|
+
" </tr>\n",
|
232
|
+
" </thead>\n",
|
233
|
+
" <tbody>\n",
|
234
|
+
" <tr>\n",
|
235
|
+
" <td>1 </td> <td>2 </td> <td>-1.46385 </td> <td>-0.648886 </td>\n",
|
236
|
+
" </tr>\n",
|
237
|
+
" <tr>\n",
|
238
|
+
" <td>2 </td> <td>3 </td> <td>-0.87831 </td> <td>-0.162221 </td>\n",
|
239
|
+
" </tr>\n",
|
240
|
+
" <tr>\n",
|
241
|
+
" <td>3 </td> <td>1 </td> <td>-0.29277 </td> <td>-1.13555 </td>\n",
|
242
|
+
" </tr>\n",
|
243
|
+
" <tr>\n",
|
244
|
+
" <td>4 </td> <td>5 </td> <td>0.29277 </td> <td>0.811107 </td>\n",
|
245
|
+
" </tr>\n",
|
246
|
+
" <tr>\n",
|
247
|
+
" <td>5 </td> <td>2 </td> <td>0.87831 </td> <td>-0.648886 </td>\n",
|
248
|
+
" </tr>\n",
|
249
|
+
" <tr>\n",
|
250
|
+
" <td>6 </td> <td>7 </td> <td>1.46385 </td> <td>1.78444 </td>\n",
|
251
|
+
" </tr>\n",
|
252
|
+
" </tbody>\n",
|
253
|
+
"</table>"
|
254
|
+
],
|
255
|
+
"text/plain": [
|
256
|
+
"x | y | x (standard units) | y (standard units)\n",
|
257
|
+
"1 | 2 | -1.46385 | -0.648886\n",
|
258
|
+
"2 | 3 | -0.87831 | -0.162221\n",
|
259
|
+
"3 | 1 | -0.29277 | -1.13555\n",
|
260
|
+
"4 | 5 | 0.29277 | 0.811107\n",
|
261
|
+
"5 | 2 | 0.87831 | -0.648886\n",
|
262
|
+
"6 | 7 | 1.46385 | 1.78444"
|
263
|
+
]
|
264
|
+
},
|
265
|
+
"execution_count": 6,
|
266
|
+
"metadata": {},
|
267
|
+
"output_type": "execute_result"
|
268
|
+
}
|
269
|
+
],
|
270
|
+
"source": [
|
271
|
+
"t_su = t.with_columns(\n",
|
272
|
+
" 'x (standard units)', standard_units(x),\n",
|
273
|
+
" 'y (standard units)', standard_units(y)\n",
|
274
|
+
" )\n",
|
275
|
+
"t_su"
|
276
|
+
]
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"cell_type": "markdown",
|
280
|
+
"metadata": {},
|
281
|
+
"source": [
|
282
|
+
"**Step 2.** Multiply each pair of standard units."
|
283
|
+
]
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"cell_type": "code",
|
287
|
+
"execution_count": 7,
|
288
|
+
"metadata": {},
|
289
|
+
"outputs": [
|
290
|
+
{
|
291
|
+
"data": {
|
292
|
+
"text/html": [
|
293
|
+
"<table border=\"1\" class=\"dataframe\">\n",
|
294
|
+
" <thead>\n",
|
295
|
+
" <tr>\n",
|
296
|
+
" <th>x</th> <th>y</th> <th>x (standard units)</th> <th>y (standard units)</th> <th>product of standard units</th>\n",
|
297
|
+
" </tr>\n",
|
298
|
+
" </thead>\n",
|
299
|
+
" <tbody>\n",
|
300
|
+
" <tr>\n",
|
301
|
+
" <td>1 </td> <td>2 </td> <td>-1.46385 </td> <td>-0.648886 </td> <td>0.949871 </td>\n",
|
302
|
+
" </tr>\n",
|
303
|
+
" <tr>\n",
|
304
|
+
" <td>2 </td> <td>3 </td> <td>-0.87831 </td> <td>-0.162221 </td> <td>0.142481 </td>\n",
|
305
|
+
" </tr>\n",
|
306
|
+
" <tr>\n",
|
307
|
+
" <td>3 </td> <td>1 </td> <td>-0.29277 </td> <td>-1.13555 </td> <td>0.332455 </td>\n",
|
308
|
+
" </tr>\n",
|
309
|
+
" <tr>\n",
|
310
|
+
" <td>4 </td> <td>5 </td> <td>0.29277 </td> <td>0.811107 </td> <td>0.237468 </td>\n",
|
311
|
+
" </tr>\n",
|
312
|
+
" <tr>\n",
|
313
|
+
" <td>5 </td> <td>2 </td> <td>0.87831 </td> <td>-0.648886 </td> <td>-0.569923 </td>\n",
|
314
|
+
" </tr>\n",
|
315
|
+
" <tr>\n",
|
316
|
+
" <td>6 </td> <td>7 </td> <td>1.46385 </td> <td>1.78444 </td> <td>2.61215 </td>\n",
|
317
|
+
" </tr>\n",
|
318
|
+
" </tbody>\n",
|
319
|
+
"</table>"
|
320
|
+
],
|
321
|
+
"text/plain": [
|
322
|
+
"x | y | x (standard units) | y (standard units) | product of standard units\n",
|
323
|
+
"1 | 2 | -1.46385 | -0.648886 | 0.949871\n",
|
324
|
+
"2 | 3 | -0.87831 | -0.162221 | 0.142481\n",
|
325
|
+
"3 | 1 | -0.29277 | -1.13555 | 0.332455\n",
|
326
|
+
"4 | 5 | 0.29277 | 0.811107 | 0.237468\n",
|
327
|
+
"5 | 2 | 0.87831 | -0.648886 | -0.569923\n",
|
328
|
+
"6 | 7 | 1.46385 | 1.78444 | 2.61215"
|
329
|
+
]
|
330
|
+
},
|
331
|
+
"execution_count": 7,
|
332
|
+
"metadata": {},
|
333
|
+
"output_type": "execute_result"
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"source": [
|
337
|
+
"t_product = t_su.with_column('product of standard units', t_su.column(2) * t_su.column(3))\n",
|
338
|
+
"t_product"
|
339
|
+
]
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"cell_type": "markdown",
|
343
|
+
"metadata": {},
|
344
|
+
"source": [
|
345
|
+
"**Step 3.** $r$ is the average of the products computed in Step 2."
|
346
|
+
]
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"cell_type": "code",
|
350
|
+
"execution_count": 8,
|
351
|
+
"metadata": {},
|
352
|
+
"outputs": [
|
353
|
+
{
|
354
|
+
"data": {
|
355
|
+
"text/plain": [
|
356
|
+
"0.6174163971897709"
|
357
|
+
]
|
358
|
+
},
|
359
|
+
"execution_count": 8,
|
360
|
+
"metadata": {},
|
361
|
+
"output_type": "execute_result"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"source": [
|
365
|
+
"# r is the average of the products of standard units\n",
|
366
|
+
"\n",
|
367
|
+
"r = np.mean(t_product.column(4))\n",
|
368
|
+
"r"
|
369
|
+
]
|
370
|
+
},
|
371
|
+
{
|
372
|
+
"cell_type": "markdown",
|
373
|
+
"metadata": {},
|
374
|
+
"source": [
|
375
|
+
"As expected, $r$ is positive but not equal to 1."
|
376
|
+
]
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"cell_type": "markdown",
|
380
|
+
"metadata": {},
|
381
|
+
"source": [
|
382
|
+
"#### Properties of $r$\n",
|
383
|
+
"\n",
|
384
|
+
"The calculation shows that:\n",
|
385
|
+
"\n",
|
386
|
+
"- $r$ is a pure number. It has no units. This is because $r$ is based on standard units.\n",
|
387
|
+
"- $r$ is unaffected by changing the units on either axis. This too is because $r$ is based on standard units.\n",
|
388
|
+
"- $r$ is unaffected by switching the axes. Algebraically, this is because the product of standard units does not depend on which variable is called **x** and which **y**. Geometrically, switching axes reflects the scatter plot about the line **y = x**, but does not change the amount of clustering nor the sign of the association."
|
389
|
+
]
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"cell_type": "code",
|
393
|
+
"execution_count": 9,
|
394
|
+
"metadata": {},
|
395
|
+
"outputs": [
|
396
|
+
{
|
397
|
+
"data": {
|
398
|
+
"application/vnd.jupyter.widget-view+json": {
|
399
|
+
"model_id": "7373845f9f4c4826a8b60afd4df3cbc6",
|
400
|
+
"version_major": 2,
|
401
|
+
"version_minor": 0
|
402
|
+
},
|
403
|
+
"text/plain": [
|
404
|
+
"VBox(children=(interactive(children=(Output(),), _dom_classes=('widget-interact',)), Figure(axes=[Axis(scale=L…"
|
405
|
+
]
|
406
|
+
},
|
407
|
+
"metadata": {},
|
408
|
+
"output_type": "display_data"
|
409
|
+
}
|
410
|
+
],
|
411
|
+
"source": [
|
412
|
+
"nbi.scatter(t.column(1), t.column(0), options={'aspect_ratio': 1})"
|
413
|
+
]
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"cell_type": "markdown",
|
417
|
+
"metadata": {},
|
418
|
+
"source": [
|
419
|
+
"#### The correlation function\n",
|
420
|
+
"We are going to be calculating correlations repeatedly, so it will help to define a function that computes it by performing all the steps described above. Let's define a function ``correlation`` that takes a table and the labels of two columns in the table. The function returns $r$, the mean of the products of those column values in standard units."
|
421
|
+
]
|
422
|
+
},
|
423
|
+
{
|
424
|
+
"cell_type": "code",
|
425
|
+
"execution_count": 10,
|
426
|
+
"metadata": {},
|
427
|
+
"outputs": [],
|
428
|
+
"source": [
|
429
|
+
"def correlation(t, x, y):\n",
|
430
|
+
" return np.mean(standard_units(t.column(x))*standard_units(t.column(y)))"
|
431
|
+
]
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"cell_type": "code",
|
435
|
+
"execution_count": 11,
|
436
|
+
"metadata": {},
|
437
|
+
"outputs": [
|
438
|
+
{
|
439
|
+
"data": {
|
440
|
+
"application/vnd.jupyter.widget-view+json": {
|
441
|
+
"model_id": "a229a4df59044f0887272fa2fa7cf8d2",
|
442
|
+
"version_major": 2,
|
443
|
+
"version_minor": 0
|
444
|
+
},
|
445
|
+
"text/plain": [
|
446
|
+
"interactive(children=(ToggleButtons(description='x-axis', options=('x', 'y'), value='x'), ToggleButtons(descri…"
|
447
|
+
]
|
448
|
+
},
|
449
|
+
"metadata": {},
|
450
|
+
"output_type": "display_data"
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"data": {
|
454
|
+
"text/plain": [
|
455
|
+
"<function __main__.correlation(t, x, y)>"
|
456
|
+
]
|
457
|
+
},
|
458
|
+
"execution_count": 11,
|
459
|
+
"metadata": {},
|
460
|
+
"output_type": "execute_result"
|
461
|
+
}
|
462
|
+
],
|
463
|
+
"source": [
|
464
|
+
"interact(correlation, t=fixed(t),\n",
|
465
|
+
" x=widgets.ToggleButtons(options=['x', 'y'], description='x-axis'),\n",
|
466
|
+
" y=widgets.ToggleButtons(options=['x', 'y'], description='y-axis'))"
|
467
|
+
]
|
468
|
+
},
|
469
|
+
{
|
470
|
+
"cell_type": "markdown",
|
471
|
+
"metadata": {},
|
472
|
+
"source": [
|
473
|
+
"Let's call the function on the ``x`` and ``y`` columns of ``t``. The function returns the same answer to the correlation between $x$ and $y$ as we got by direct application of the formula for $r$. "
|
474
|
+
]
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"cell_type": "code",
|
478
|
+
"execution_count": 12,
|
479
|
+
"metadata": {},
|
480
|
+
"outputs": [
|
481
|
+
{
|
482
|
+
"data": {
|
483
|
+
"text/plain": [
|
484
|
+
"0.6174163971897709"
|
485
|
+
]
|
486
|
+
},
|
487
|
+
"execution_count": 12,
|
488
|
+
"metadata": {},
|
489
|
+
"output_type": "execute_result"
|
490
|
+
}
|
491
|
+
],
|
492
|
+
"source": [
|
493
|
+
"correlation(t, 'x', 'y')"
|
494
|
+
]
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"cell_type": "markdown",
|
498
|
+
"metadata": {},
|
499
|
+
"source": [
|
500
|
+
"As we noticed, the order in which the variables are specified doesn't matter."
|
501
|
+
]
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"cell_type": "code",
|
505
|
+
"execution_count": 13,
|
506
|
+
"metadata": {},
|
507
|
+
"outputs": [
|
508
|
+
{
|
509
|
+
"data": {
|
510
|
+
"text/plain": [
|
511
|
+
"0.6174163971897709"
|
512
|
+
]
|
513
|
+
},
|
514
|
+
"execution_count": 13,
|
515
|
+
"metadata": {},
|
516
|
+
"output_type": "execute_result"
|
517
|
+
}
|
518
|
+
],
|
519
|
+
"source": [
|
520
|
+
"correlation(t, 'y', 'x')"
|
521
|
+
]
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"cell_type": "markdown",
|
525
|
+
"metadata": {},
|
526
|
+
"source": [
|
527
|
+
"Calling ``correlation`` on columns of the table ``suv`` gives us the correlation between price and mileage as well as the correlation between price and acceleration."
|
528
|
+
]
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"cell_type": "code",
|
532
|
+
"execution_count": 14,
|
533
|
+
"metadata": {},
|
534
|
+
"outputs": [
|
535
|
+
{
|
536
|
+
"data": {
|
537
|
+
"application/vnd.jupyter.widget-view+json": {
|
538
|
+
"model_id": "c82ed7aaa9184cf083050fe0e369211b",
|
539
|
+
"version_major": 2,
|
540
|
+
"version_minor": 0
|
541
|
+
},
|
542
|
+
"text/plain": [
|
543
|
+
"interactive(children=(ToggleButtons(description='x-axis', options=('mpg', 'msrp', 'acceleration'), value='mpg'…"
|
544
|
+
]
|
545
|
+
},
|
546
|
+
"metadata": {},
|
547
|
+
"output_type": "display_data"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"data": {
|
551
|
+
"text/plain": [
|
552
|
+
"<function __main__.correlation(t, x, y)>"
|
553
|
+
]
|
554
|
+
},
|
555
|
+
"execution_count": 14,
|
556
|
+
"metadata": {},
|
557
|
+
"output_type": "execute_result"
|
558
|
+
}
|
559
|
+
],
|
560
|
+
"source": [
|
561
|
+
"suv = (Table.read_table('https://raw.githubusercontent.com/data-8/materials-fa17/master/lec/hybrid.csv')\n",
|
562
|
+
" .where('class', 'SUV'))\n",
|
563
|
+
"\n",
|
564
|
+
"interact(correlation, t=fixed(suv),\n",
|
565
|
+
" x=widgets.ToggleButtons(options=['mpg', 'msrp', 'acceleration'],\n",
|
566
|
+
" description='x-axis'),\n",
|
567
|
+
" y=widgets.ToggleButtons(options=['mpg', 'msrp', 'acceleration'],\n",
|
568
|
+
" description='y-axis'))"
|
569
|
+
]
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"cell_type": "code",
|
573
|
+
"execution_count": 15,
|
574
|
+
"metadata": {},
|
575
|
+
"outputs": [
|
576
|
+
{
|
577
|
+
"data": {
|
578
|
+
"text/plain": [
|
579
|
+
"-0.6667143635709919"
|
580
|
+
]
|
581
|
+
},
|
582
|
+
"execution_count": 15,
|
583
|
+
"metadata": {},
|
584
|
+
"output_type": "execute_result"
|
585
|
+
}
|
586
|
+
],
|
587
|
+
"source": [
|
588
|
+
"correlation(suv, 'mpg', 'msrp')"
|
589
|
+
]
|
590
|
+
},
|
591
|
+
{
|
592
|
+
"cell_type": "code",
|
593
|
+
"execution_count": 16,
|
594
|
+
"metadata": {},
|
595
|
+
"outputs": [
|
596
|
+
{
|
597
|
+
"data": {
|
598
|
+
"text/plain": [
|
599
|
+
"0.48699799279959155"
|
600
|
+
]
|
601
|
+
},
|
602
|
+
"execution_count": 16,
|
603
|
+
"metadata": {},
|
604
|
+
"output_type": "execute_result"
|
605
|
+
}
|
606
|
+
],
|
607
|
+
"source": [
|
608
|
+
"correlation(suv, 'acceleration', 'msrp')"
|
609
|
+
]
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"cell_type": "markdown",
|
613
|
+
"metadata": {},
|
614
|
+
"source": [
|
615
|
+
"These values confirm what we had observed: \n",
|
616
|
+
"\n",
|
617
|
+
"- There is a negative association between price and efficiency, whereas the association between price and acceleration is positive.\n",
|
618
|
+
"- The linear relation between price and acceleration is a little weaker (correlation about 0.5) than between price and mileage (correlation about -0.67). "
|
619
|
+
]
|
620
|
+
},
|
621
|
+
{
|
622
|
+
"cell_type": "markdown",
|
623
|
+
"metadata": {},
|
624
|
+
"source": [
|
625
|
+
"Correlation is a simple and powerful concept, but it is sometimes misused. Before using $r$, it is important to be aware of what correlation does and does not measure."
|
626
|
+
]
|
627
|
+
}
|
628
|
+
],
|
629
|
+
"metadata": {
|
630
|
+
"anaconda-cloud": {},
|
631
|
+
"kernelspec": {
|
632
|
+
"display_name": "Python 3",
|
633
|
+
"language": "python",
|
634
|
+
"name": "python3"
|
635
|
+
},
|
636
|
+
"language_info": {
|
637
|
+
"codemirror_mode": {
|
638
|
+
"name": "ipython",
|
639
|
+
"version": 3
|
640
|
+
},
|
641
|
+
"file_extension": ".py",
|
642
|
+
"mimetype": "text/x-python",
|
643
|
+
"name": "python",
|
644
|
+
"nbconvert_exporter": "python",
|
645
|
+
"pygments_lexer": "ipython3",
|
646
|
+
"version": "3.7.9"
|
647
|
+
}
|
648
|
+
},
|
649
|
+
"nbformat": 4,
|
650
|
+
"nbformat_minor": 1
|
651
|
+
}
|