Compute the covariance between the heights of the husbands and wives. Using SAS
ID: 3062210 • Letter: C
Question
Compute the covariance between the heights of the husbands and wives. Using SAS and matrices.
Husband Wife 186 181 180 175 160 155 186 181 163 158 172 167 192 187 170 165 174 169 191 186 182 177 178 173 181 176 168 163 162 157 188 183 168 163 183 178 188 183 166 161 180 175 176 171 185 180 169 164 182 177 162 157 169 164 176 171 180 175 157 152 170 165 186 181 180 175 188 183 153 148 179 174 175 170 165 160 156 151 185 180 172 167 166 161 179 174 181 176 176 171 170 165 165 160 183 178 162 157 192 187 185 180 163 158 185 180 170 165 176 171 176 171 160 155 167 162 157 152 180 175 172 167 184 179 185 180 165 160 181 176 170 165 161 156 188 183 181 176 156 151 161 156 152 147 179 174 170 165 170 165 165 160 165 160 169 164 171 166 192 187 176 171 168 163 169 164 184 179 171 166 161 156 185 180 184 179 179 174 184 179 175 170 173 168 164 159 181 176 187 182 181 176Explanation / Answer
title 'Heights of Husband & Wife';
data Heights;
input Husband Wife
datalines;
186 181
180 175
160 155
186 181
163 158
172 167
192 187
170 165
174 169
191 186
182 177
178 173
181 176
168 163
162 157
188 183
168 163
183 178
188 183
166 161
180 175
176 171
185 180
169 164
182 177
162 157
169 164
176 171
180 175
157 152
170 165
186 181
180 175
188 183
153 148
179 174
175 170
165 160
156 151
185 180
172 167
166 161
179 174
181 176
176 171
170 165
165 160
183 178
162 157
192 187
185 180
163 158
185 180
170 165
176 171
176 171
160 155
167 162
157 152
180 175
172 167
184 179
185 180
165 160
181 176
170 165
161 156
188 183
181 176
156 151
161 156
152 147
179 174
170 165
170 165
165 160
165 160
169 164
171 166
192 187
176 171
168 163
169 164
184 179
171 166
161 156
185 180
184 179
179 174
184 179
175 170
173 168
164 159
181 176
187 182
181 176
PROC CORR DATA=Heights COV OUTP=corr_cov;
VAR Husband Wife
RUN;
cov(title 'Heights of Husband & Wife';
data Heights;
input Husband Wife
datalines;
186 181
180 175
160 155
186 181
163 158
172 167
192 187
170 165
174 169
191 186
182 177
178 173
181 176
168 163
162 157
188 183
168 163
183 178
188 183
166 161
180 175
176 171
185 180
169 164
182 177
162 157
169 164
176 171
180 175
157 152
170 165
186 181
180 175
188 183
153 148
179 174
175 170
165 160
156 151
185 180
172 167
166 161
179 174
181 176
176 171
170 165
165 160
183 178
162 157
192 187
185 180
163 158
185 180
170 165
176 171
176 171
160 155
167 162
157 152
180 175
172 167
184 179
185 180
165 160
181 176
170 165
161 156
188 183
181 176
156 151
161 156
152 147
179 174
170 165
170 165
165 160
165 160
169 164
171 166
192 187
176 171
168 163
169 164
184 179
171 166
161 156
185 180
184 179
179 174
184 179
175 170
173 168
164 159
181 176
187 182
181 176
PROC CORR DATA=Heights COV OUTP=corr_cov;
VAR Husband Wife
RUN;
title 'Heights of Husband & Wife';
data Heights;
input Husband Wife
datalines;
186 181
180 175
160 155
186 181
163 158
172 167
192 187
170 165
174 169
191 186
182 177
178 173
181 176
168 163
162 157
188 183
168 163
183 178
188 183
166 161
180 175
176 171
185 180
169 164
182 177
162 157
169 164
176 171
180 175
157 152
170 165
186 181
180 175
188 183
153 148
179 174
175 170
165 160
156 151
185 180
172 167
166 161
179 174
181 176
176 171
170 165
165 160
183 178
162 157
192 187
185 180
163 158
185 180
170 165
176 171
176 171
160 155
167 162
157 152
180 175
172 167
184 179
185 180
165 160
181 176
170 165
161 156
188 183
181 176
156 151
161 156
152 147
179 174
170 165
170 165
165 160
165 160
169 164
171 166
192 187
176 171
168 163
169 164
184 179
171 166
161 156
185 180
184 179
179 174
184 179
175 170
173 168
164 159
181 176
187 182
181 176
PROC CORR DATA=Heights COV OUTP=corr_cov;
VAR Husband Wife
RUN;
COVAR(Husband ,Wife)=99.21
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.