Skip to content

Commit 1e018bc

Browse files
Built site for gh-pages
1 parent 0aca8c3 commit 1e018bc

7 files changed

Lines changed: 25 additions & 24 deletions

File tree

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d8e54e39
1+
10be2e52
378 Bytes
Loading

Labs/Lab02.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ <h3 class="anchored" data-anchor-id="random-data">Random Data</h3>
664664
<div class="cell">
665665
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sample</span>(<span class="fu">c</span>(<span class="dv">1</span>,<span class="dv">2</span>,<span class="dv">3</span>,<span class="dv">4</span>,<span class="dv">5</span>,<span class="dv">6</span>), <span class="dv">25</span>, <span class="at">replace=</span><span class="cn">TRUE</span>)</span></code></pre></div>
666666
<div class="cell-output cell-output-stdout">
667-
<pre><code> [1] 1 2 6 2 5 6 3 4 5 1 3 2 1 4 2 1 6 6 6 3 4 3 4 3 2</code></pre>
667+
<pre><code> [1] 4 1 4 2 3 1 1 6 2 6 6 2 1 4 2 6 3 2 6 2 3 5 3 3 6</code></pre>
668668
</div>
669669
</div>
670670

@@ -683,8 +683,8 @@ <h3 class="anchored" data-anchor-id="random-data">Random Data</h3>
683683
<span id="cb11-9"><a href="#cb11-9" aria-hidden="true" tabindex="-1"></a></span>
684684
<span id="cb11-10"><a href="#cb11-10" aria-hidden="true" tabindex="-1"></a>assignment</span></code></pre></div>
685685
<div class="cell-output cell-output-stdout">
686-
<pre><code> [1] treatment placebo treatment placebo treatment placebo placebo
687-
[8] treatment treatment placebo
686+
<pre><code> [1] treatment placebo placebo placebo treatment placebo treatment
687+
[8] treatment placebo treatment
688688
Levels: placebo treatment</code></pre>
689689
</div>
690690
</div>
@@ -743,11 +743,11 @@ <h2 class="anchored" data-anchor-id="oodles-of-observations">Oodles of Observati
743743
<span id="cb17-8"><a href="#cb17-8" aria-hidden="true" tabindex="-1"></a><span class="fu">head</span>(demographics)</span></code></pre></div>
744744
<div class="cell-output cell-output-stdout">
745745
<pre><code> age biosex
746-
1 43 female
747-
2 23 male
748-
3 68 male
749-
4 56 female
750-
5 57 male
746+
1 18 female
747+
2 49 female
748+
3 36 female
749+
4 25 female
750+
5 30 female
751751
6 77 female</code></pre>
752752
</div>
753753
</div>
-11 Bytes
Loading

Labs/Lab08.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="author" content="Michael Pascale">
1010

11-
<title>Visualizing Z, t, p – Introduction to Experimental Design</title>
11+
<title>Making Decisions via the Sampling Distribution – Introduction to Experimental Design</title>
1212
<style>
1313
code{white-space: pre-wrap;}
1414
span.smallcaps{font-variant: small-caps;}
@@ -509,7 +509,7 @@
509509
<h2 id="toc-title">On this page</h2>
510510

511511
<ul>
512-
<li><a href="#reviewing-p-values" id="toc-reviewing-p-values" class="nav-link active" data-scroll-target="#reviewing-p-values">Reviewing P-Values</a></li>
512+
<li><a href="#visualizing-p-values" id="toc-visualizing-p-values" class="nav-link active" data-scroll-target="#visualizing-p-values">Visualizing P-Values</a></li>
513513
<li><a href="#visualizing-the-confidence-interval" id="toc-visualizing-the-confidence-interval" class="nav-link" data-scroll-target="#visualizing-the-confidence-interval">Visualizing the Confidence Interval</a></li>
514514
<li><a href="#visualizing-the-t-distribution" id="toc-visualizing-the-t-distribution" class="nav-link" data-scroll-target="#visualizing-the-t-distribution">Visualizing the <span class="math inline">\(t\)</span>-Distribution</a></li>
515515
</ul>
@@ -521,7 +521,7 @@ <h2 id="toc-title">On this page</h2>
521521

522522
<header id="title-block-header" class="quarto-title-block default"><nav class="quarto-page-breadcrumbs quarto-title-breadcrumbs d-none d-lg-block" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../Labs/Lab01.html">Lab Components</a></li><li class="breadcrumb-item"><a href="../Labs/Lab08.html">Visualizing Z, t, p</a></li></ol></nav>
523523
<div class="quarto-title">
524-
<h1 class="title">Visualizing Z, t, p</h1>
524+
<h1 class="title">Making Decisions via the Sampling Distribution</h1>
525525
<p class="subtitle lead">Lab 8</p>
526526
</div>
527527

@@ -551,8 +551,8 @@ <h1 class="title">Visualizing Z, t, p</h1>
551551
</header>
552552

553553

554-
<section id="reviewing-p-values" class="level2 page-columns page-full">
555-
<h2 class="anchored" data-anchor-id="reviewing-p-values">Reviewing P-Values</h2>
554+
<section id="visualizing-p-values" class="level2 page-columns page-full">
555+
<h2 class="anchored" data-anchor-id="visualizing-p-values">Visualizing P-Values</h2>
556556
<p>Recall that with the <strong><span class="math inline">\(Z\)</span>-statistic</strong> we compare a sample to <strong>normally distributed samples</strong> from the same population. Let’s try to understand this visually.</p>
557557
<p>Say we obtain a sample mean <span class="math inline">\(\bar x\)</span> with a <span class="math inline">\(Z\)</span>-statistic of <span class="math inline">\(1.3\)</span>. This tells us that the sample lies <span class="math inline">\(1.3\)</span> times the S.E.M. above <span class="math inline">\(\mu\)</span> on the sampling distribution.</p>
558558
<p>To calculate the <strong>p-value</strong>, we need to consider a particular <strong>hypothesis</strong>. In the case that <span class="math inline">\(H_0: \mu = \mu_0\)</span> and <span class="math inline">\(H_A: \mu \neq \mu_0\)</span>, then the p-value represents the probability under the <em>null hypothesis</em> of a value at least as extreme, in either the positive or negative direction. In other words, the <strong>two-tailed</strong> area under the curve.</p>
@@ -635,6 +635,7 @@ <h2 class="anchored" data-anchor-id="visualizing-the-t-distribution">Visualizing
635635
</div>
636636
<p>Consider the one-tailed (left) p-value for <span class="math inline">\(t=-1.21\)</span> will be <span class="math inline">\(0.1225\)</span>.</p>
637637
<p><strong>QUESTION</strong>: <em>What is the <strong>two-tailed</strong> p-value for <span class="math inline">\(t=-1.6\)</span>?</em></p>
638+
<p><strong>QUESTION</strong>: <em>Would you have concluded something different if you had set out to do a left-sided test? A right-sided test?</em></p>
638639

639640

640641
</section>

0 commit comments

Comments
 (0)