1. Given: 0= male, 1 = female ID 1 2 3 4 5 678099 10 Age Gender¹ 18 80872 17 22 23 17 25 16 17 22 26 a. Find the number of people in sample. b. Find the number of variables in sample. c. Find the number of total observations. 1 0 0 1 0 1 0 1 1 1

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

1

1. Given: 0 = male, 1 = female
ID
1
2
3
4
5
6
7
8
9
10
Age
18
17
22
23
17
25
16
17
22
26
a. Find the number of people in sample.
b. Find the number of variables in sample.
i. Find ID number of men >=21.
c. Find the number of total observations.
d. Find ID number of legal people (age =>21).
e. Find the number of women in the sample.
f. Find the number of men in the sample.
g. Find the number of women =>21.
h. Find the number of men <21.
Gender¹
1
0
0
1
0
1
0
1
1
1
j. Find ID number of oldest person (use max()).
k. Find complete rows of women <21.
1. Find Ratio of women >21 with respect to men >21.
m. Find ID number and gender of youngest person in sample.
Transcribed Image Text:1. Given: 0 = male, 1 = female ID 1 2 3 4 5 6 7 8 9 10 Age 18 17 22 23 17 25 16 17 22 26 a. Find the number of people in sample. b. Find the number of variables in sample. i. Find ID number of men >=21. c. Find the number of total observations. d. Find ID number of legal people (age =>21). e. Find the number of women in the sample. f. Find the number of men in the sample. g. Find the number of women =>21. h. Find the number of men <21. Gender¹ 1 0 0 1 0 1 0 1 1 1 j. Find ID number of oldest person (use max()). k. Find complete rows of women <21. 1. Find Ratio of women >21 with respect to men >21. m. Find ID number and gender of youngest person in sample.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman