Skip to content

Commit 8619f10

Browse files
authored
Merge pull request #666 from ccnmtl/sim1-mentorvoice-null-alt-hypotheses
Sim1 mentorvoice null hypotheses instructions, icons, and glossary modal fix
2 parents 1523383 + d818340 commit 8619f10

File tree

6 files changed

+66
-29
lines changed

6 files changed

+66
-29
lines changed

cypress/e2e/2.Sim1/sim1.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Graph Data', () => {
4040
describe('Null Hypothesis', () => {
4141
it('should navigate through resulting graph coefficients', () => {
4242
cy.get('#null-hypothesis').should(
43-
'contain', 'Defining null hypothesis');
43+
'contain', 'Null hypothesis');
4444
});
4545

4646
it('should move on to alternative hypothesis', () => {

media/img/icon-bell.svg

Lines changed: 1 addition & 0 deletions
Loading

media/img/icon-goal.svg

Lines changed: 23 additions & 0 deletions
Loading

media/img/icon-reminder.svg

Lines changed: 19 additions & 0 deletions
Loading

media/js/src/simulations/simulation1/nullHypothesisSection.jsx

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ export const NullHypothesisSection = ({
2121
<div className="simulation__step-body">
2222
<header className="simulation__step-header">
2323
<h2 className="h2-primary" id="null-hypothesis">
24-
Defining null hypothesis</h2>
24+
Null hypothesis</h2>
2525
</header>
2626
{plotType === '2d' && (
2727
<div className="simulation__step-content">
28-
<p>In this exercise, the null
29-
hypothesis (<Katex tex={'{\\Eta_0}'}
30-
className="katex-inline" />) states that the
31-
population slope (<Katex tex={'{\\beta_1}'}
32-
className="katex-inline" />) is equal to a
33-
particular value.
34-
Now, set this value as the baseline claim for
35-
<Katex tex={'{\\Eta_0}'}
36-
className="katex-inline" /> and observe the
37-
outcome of the test statistic
38-
<Katex tex={'t'} className="katex-inline" />.</p>
28+
<p>Here, the null hypothesis, <Katex tex={'{\\Eta_0}'}
29+
className="katex-inline" />, states that the
30+
population slope <Katex tex={'{\\beta_1} = 0'}
31+
className="katex-inline" />.
32+
Continue adjusting <Katex tex={'n'}
33+
className="katex-inline" /> and
34+
<Katex tex={'\\text{corr}(x,y)'}
35+
className="katex-inline" />, and observe the
36+
outcome of the test statistic <Katex tex={'t'}
37+
className="katex-inline" />.</p>
3938
<div className="sub-content">
4039
<div className="katex-block mt-3">
4140
<Katex tex={
@@ -56,18 +55,15 @@ export const NullHypothesisSection = ({
5655
)}
5756
{plotType === '3d' && slopes.length > 0 && (
5857
<div className="simulation__step-content">
59-
<p>In this exercise, the null
60-
hypothesis (<Katex tex={'{\\Eta_0}'}
61-
className="katex-inline" />) states that the
62-
population slope (<Katex tex={'{\\beta_1}'}
63-
className="katex-inline" />) is equal to a
64-
particular value.
65-
Now, set this value as the baseline claim for
66-
<Katex tex={'{\\Eta_0}'}
67-
className="katex-inline" /> and observe the
68-
outcome of the test statistic
69-
<Katex tex={'t'} className="katex-inline" />.
70-
</p>
58+
<p>Here, the null hypothesis, <Katex tex={'{\\Eta_0}'}
59+
className="katex-inline" />, states that the
60+
population slope <Katex tex={'{\\beta_1} = 0'}
61+
className="katex-inline" />.
62+
Continue adjusting <Katex
63+
tex={'\\text{corr}(x_1,x_2)'}
64+
className="katex-inline" />, and observe the
65+
outcome of the test statistic <Katex tex={'t'}
66+
className="katex-inline" />.</p>
7167
<div className="sub-content">
7268
<div className="katex-block mt-3">
7369
<Katex tex={

media/js/src/simulations/simulation1/simulationIntro.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Katex } from '../../utils/katexComponent';
4-
import { GlossaryModal } from './modalGlossary';
5-
import { GlossaryButton } from './glossary';
4+
import { GlossaryButton } from './glossary';
65

76
export const STATIC_URL = window.MetricsMentor.staticUrl;
87

@@ -43,13 +42,12 @@ export const SimIntro = ({plotType}) => {
4342
the key terms used here.
4443
</p>
4544
<GlossaryButton />
46-
<GlossaryModal />
4745
</div>
4846
</div>
4947
</div>
5048
<div className="simulation__step-container d-flex">
5149
<div className="simulation__step-num tip-on">
52-
<img src={`${STATIC_URL}/img/icon-lightbulb-regular.svg`}
50+
<img src={`${STATIC_URL}/img/icon-goal.svg`}
5351
className="simulation__step-icon"
5452
alt="Lightbulb icon: Learning goals" />
5553
</div>

0 commit comments

Comments
 (0)