{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Systematic Sampling" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:35:07.360138Z", "iopub.status.busy": "2024-04-17T07:35:07.360020Z", "iopub.status.idle": "2024-04-17T07:35:07.677935Z", "shell.execute_reply": "2024-04-17T07:35:07.677643Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "from lets_plot import *\n", "\n", "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:35:07.691885Z", "iopub.status.busy": "2024-04-17T07:35:07.691717Z", "iopub.status.idle": "2024-04-17T07:35:07.693874Z", "shell.execute_reply": "2024-04-17T07:35:07.693679Z" } }, "outputs": [], "source": [ "N = 10000\n", "X = np.arange(N)\n", "np.random.seed(1)\n", "Y = np.random.normal(0, 1, N)\n", "p = ggplot(dict(x=X, y=Y), aes('x', 'y'))" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:35:07.694874Z", "iopub.status.busy": "2024-04-17T07:35:07.694798Z", "iopub.status.idle": "2024-04-17T07:35:07.760137Z", "shell.execute_reply": "2024-04-17T07:35:07.759926Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "