Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkorthauer committed Jan 25, 2024
1 parent c76c688 commit 1d7c9af
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions lect06-ANOVA/lect06-anova.html
Original file line number Diff line number Diff line change
Expand Up @@ -1326,15 +1326,15 @@ <h2>BB114814 gene with notable time effect</h2>
<p><strong>Check your understanding</strong></p>
</div>
<div class="callout-content">
<p>Can you guess the size of the <span class="math inline">\(X\)</span> matrix needed to test for any time differences? How many indicator variables do we need?</p>
<p>Can you guess the size of the <span class="math inline">\(X\)</span> matrix needed to test for any time differences compared to E16? How many indicator variables do we need?</p>
</div>
</div>
</div>
</div>
</section>
<section id="gene-bb114814-with-notable-time-effect" class="slide level2">
<h2>Gene BB114814 with notable time effect</h2>
<p>We need <code>__</code> indicator variables to estimate and test <code>__</code> time differences (between <code>__</code> time points):</p>
<p>We need <code>__</code> indicator variables to estimate and test <code>__</code> time differences (between <code>__</code> time points), and our design matrix will have <code>__</code> columns:</p>
<aside class="notes">
<p>We need 4 indicator variables to estimate and test 4 time differences (between 5 time points): - <span class="math inline">\(x_{P2}\)</span>: P2 vs E16 - <span class="math inline">\(x_{P6}\)</span>: P6 vs E16 - <span class="math inline">\(x_{P10}\)</span>: P10 vs E16 - <span class="math inline">\(x_{P28}\)</span>: P28 vs E16</p>
<style type="text/css">
Expand Down Expand Up @@ -1604,7 +1604,7 @@ <h2>Two types of null hypotheses: single vs joint</h2>
<p><span class="math display">\[Y = X \alpha + \varepsilon\]</span> <span class="math display">\[\alpha = (\theta, \tau_{P2}, \tau_{P6}, \tau_{P10}, \tau_{P28})\]</span></p>
<div class="columns">
<div class="column">
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_0: \tau_j \neq 0\)</span></p>
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_1: \tau_j \neq 0\)</span></p>
<p><strong>for each <em>j</em> individually</strong></p>
<p>For example: Is gene <em>A</em> differentially expressed 2 days after birth (compared to embryonic day 16)?</p>
<p><span class="math display">\[H_0: \tau_{P2}=0\]</span></p>
Expand All @@ -1624,7 +1624,7 @@ <h2>Two types of null hypotheses: single vs joint</h2>
</div>
</div>
</div><div class="column">
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_0: \tau_j \neq 0\)</span></p>
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_1: \tau_j \neq 0\)</span></p>
<p><strong>for all <em>j</em> at the same time</strong></p>
<p>For example: Is gene <em>A</em> significantly affected by time? In other words, is gene <em>A</em> differentially expressed at <em>any</em> time point?</p>
<p><span class="math display">\[H_0: \tau_{P2}=\tau_{P6}=\tau_{P10}=\tau_{P28}=0\]</span></p>
Expand Down Expand Up @@ -1660,8 +1660,8 @@ <h2><em>F</em>-test and overall significance of one or more coefficients</h2>
<section id="single-and-joint-tests-in-lm-output" class="slide level2">
<h2>Single and joint tests in <code>lm</code> output</h2>
<p>Can you locate the results of each type of test in the <code>lm</code> output?</p>
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_0: \tau_j \neq 0\)</span> for each <span class="math inline">\(j\)</span> <strong>individually</strong></p>
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_0: \tau_j \neq 0\)</span> for all <span class="math inline">\(j\)</span> <strong>together</strong></p>
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_1: \tau_j \neq 0\)</span> for each <span class="math inline">\(j\)</span> <strong>individually</strong></p>
<p><span class="math inline">\(H_0: \tau_j = 0\)</span> vs <span class="math inline">\(H_1: \tau_j \neq 0\)</span> for all <span class="math inline">\(j\)</span> <strong>together</strong></p>
<div class="cell">
<div class="sourceCode cell-code" id="cb53"><pre class="sourceCode numberSource r number-lines code-with-copy"><code class="sourceCode r"><span id="cb53-1"><a href="#cb53-1"></a>twoGenes <span class="sc">%&gt;%</span> <span class="fu">filter</span>(gene <span class="sc">==</span> <span class="st">"BB114814"</span>) <span class="sc">%&gt;%</span></span>
<span id="cb53-2"><a href="#cb53-2"></a> <span class="fu">lm</span>(expression <span class="sc">~</span> dev_stage, <span class="at">data =</span> .) <span class="sc">%&gt;%</span></span>
Expand Down
12 changes: 6 additions & 6 deletions lect06-ANOVA/lect06-anova.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,12 @@ twoGenes %>% filter(gene == "BB114814") %>%

::: {.callout-tip}
# Check your understanding
Can you guess the size of the $X$ matrix needed to test for any time differences? How many indicator variables do we need?
Can you guess the size of the $X$ matrix needed to test for any time differences compared to E16? How many indicator variables do we need?
:::

## Gene BB114814 with notable time effect

We need `__` indicator variables to estimate and test `__` time differences (between `__` time points):
We need `__` indicator variables to estimate and test `__` time differences (between `__` time points), and our design matrix will have `__` columns:

::: {.notes}
We need 4 indicator variables to estimate and test 4 time differences (between 5 time points):
Expand Down Expand Up @@ -950,7 +950,7 @@ $$\alpha = (\theta, \tau_{P2}, \tau_{P6}, \tau_{P10}, \tau_{P28})$$
::: column
$H_0: \tau_j = 0$
vs
$H_0: \tau_j \neq 0$
$H_1: \tau_j \neq 0$

**for each *j* individually**

Expand All @@ -971,7 +971,7 @@ This single hypothesis can be tested with a **t-test**
::: column
$H_0: \tau_j = 0$
vs
$H_0: \tau_j \neq 0$
$H_1: \tau_j \neq 0$

**for all *j* at the same time**

Expand Down Expand Up @@ -1008,9 +1008,9 @@ How do we test this joint hypothesis?

Can you locate the results of each type of test in the `lm` output?

$H_0: \tau_j = 0$ vs $H_0: \tau_j \neq 0$ for each $j$ **individually**
$H_0: \tau_j = 0$ vs $H_1: \tau_j \neq 0$ for each $j$ **individually**

$H_0: \tau_j = 0$ vs $H_0: \tau_j \neq 0$ for all $j$ **together**
$H_0: \tau_j = 0$ vs $H_1: \tau_j \neq 0$ for all $j$ **together**

```{r}
twoGenes %>% filter(gene == "BB114814") %>%
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1d7c9af

Please sign in to comment.