-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorrelation.html
More file actions
170 lines (163 loc) · 5.99 KB
/
correlation.html
File metadata and controls
170 lines (163 loc) · 5.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Correlation - Statistics Study Guide</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f4f4f9;
color: #333;
opacity: 0;
animation: fadeIn 1s forwards;
}
header {
background: #2d6e7f;
color: white;
padding: 20px;
text-align: center;
border-bottom: 5px solid #1e4f5b;
}
nav {
background: #1e4f5b;
padding: 10px;
text-align: center;
}
nav a {
color: white;
margin: 0 15px;
text-decoration: none;
font-size: 16px;
transition: color 0.3s;
}
nav a:hover {
color: #f4f4f9;
}
.container {
flex: 1;
padding: 40px;
max-width: 900px;
margin: auto;
background: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h2 {
font-size: 2.2em;
margin-bottom: 15px;
color: #2d6e7f;
text-align: center;
}
h3 {
margin-top: 20px;
font-size: 1.6em;
color: #1e4f5b;
}
p, ul, pre {
line-height: 1.6;
font-size: 1.1em;
margin-bottom: 20px;
}
.step {
display: flex;
align-items: center;
background: #E3F2FD;
border: 1px solid #1e4f5b;
border-radius: 5px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.step i {
font-size: 30px;
margin-right: 20px;
color: #1e4f5b;
}
.step h4 {
font-size: 1.4em;
color: #1e4f5b;
}
.example-box {
background: #fff;
border-left: 5px solid #1e4f5b;
padding: 20px;
margin: 20px 0;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
border-radius: 5px;
}
footer {
background: #333;
color: white;
text-align: center;
padding: 15px;
margin-top: 20px;
}
pre {
white-space: pre-wrap; /* Allow line wrapping */
word-wrap: break-word; /* Prevent overflow */
width: 100%;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<header>
<h1>Correlation - Statistics Study Guide</h1>
</header>
<nav>
<a href="index.html">Back to Study Guide</a>
<a href="statistics.html">Back to Statistics</a>
</nav>
<div class="container">
<h2>Understanding Correlation</h2>
<p>**Correlation** measures the strength and direction of the relationship between two variables. A positive correlation means that as one variable increases, the other also increases. A negative correlation means that as one variable increases, the other decreases.</p>
<div class="step">
<i class="fas fa-random"></i>
<div>
<h4>Types of Correlation</h4>
<p>There are three types of correlation:</p>
<ul>
<li><strong>Positive Correlation:</strong> When both variables move in the same direction.</li>
<li><strong>Negative Correlation:</strong> When the variables move in opposite directions.</li>
<li><strong>No Correlation:</strong> When there is no discernible relationship between the variables.</li>
</ul>
</div>
</div>
<h3>Example: Positive Correlation</h3>
<div class="example-box">
<p><strong>Example 1:</strong> There is a positive correlation between the number of hours studied and the grades received on a test. As the number of hours studied increases, the test score tends to increase as well.</p>
<pre>As hours studied → increases, grade → increases (positive correlation).</pre>
</div>
<h3>Example: Negative Correlation</h3>
<div class="example-box">
<p><strong>Example 2:</strong> There is a negative correlation between the number of hours spent watching TV and the grades received on a test. As the number of hours spent watching TV increases, the test score tends to decrease.</p>
<pre>As hours watching TV → increases, grade → decreases (negative correlation).</pre>
</div>
<h3>Example: No Correlation</h3>
<div class="example-box">
<p><strong>Example 3:</strong> There is no correlation between a person’s shoe size and their test scores. A person’s shoe size has no impact on their performance on a test.</p>
<pre>As shoe size → increases, grade → does not change (no correlation).</pre>
</div>
<h3>Try It Yourself:</h3>
<p>Identify the type of correlation based on the following example:</p>
<pre>As the amount of rainfall increases, the number of people visiting the beach decreases.</pre>
<p>Hint: Think about whether the two variables are moving in the same direction (positive), opposite directions (negative), or if there's no relationship at all (no correlation).</p>
</div>
<footer>
<p>© 2025 Study Hub. All rights reserved.</p>
</footer>
</body>
</html>