a. Find the mean using a different method that does not involve the mean () function. b. Find the median. c. Create a frequency table of the data list and then give the mode. d. Create a bar graph of the data list. Note: you have to do the manual method
a. Find the mean using a different method that does not involve the mean () function. b. Find the median. c. Create a frequency table of the data list and then give the mode. d. Create a bar graph of the data list. Note: you have to do the manual method
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
1. Create a data list, ‘n’ consisting of the numbers: 5, 9, 14, 28, 31, 1, 31, 14, 38, 31
Use R – code to find the following:
a. Find the
b. Find the
c. Create a frequency table of the data list and then give the
d. Create a bar graph of the data list.
Note: you have to do the manual method

Transcribed Image Text:**Campus Crime Data Overview**
This dataset presents information related to campus crime statistics across various educational institutions. The table includes four main columns:
1. **Number of Crimes:** This column lists the number of reported crimes on each campus.
2. **Number of Police:** This indicates the number of police officers employed by the respective institutions.
3. **Total Enrollment:** This column shows the total number of enrolled students at each institution.
4. **Private School:** This is a binary indicator, where '1' signifies a private school and '0' indicates a public school.
Here is the transcribed data:
| Number of Crimes | Number of Police | Total Enrollment | Private School |
|------------------|-----------------|-----------------|----------------|
| 64 | 12 | 1,131 | 1 |
| 138 | 21 | 12,954 | 0 |
| 141 | 32 | 16,009 | 0 |
| 84 | 22 | 1,682 | 1 |
| 86 | 35 | 2,888 | 1 |
| 141 | 45 | 17,407 | 0 |
| 135 | 42 | 3,028 | 1 |
| 174 | 50 | 4,306 | 1 |
| 201 | 75 | 34,511 | 0 |
| 203 | 84 | 37,240 | 0 |
| 125 | 36 | 2,918 | 1 |
| 234 | 109 | 39,414 | 0 |
| 143 | 45 | 4,000 | 1 |
| 148 | 50 | 20,950 | 0 |
| 152 | 48 | 4,277 | 1 |
| 158 | 52 | 26,519 | 0 |
| 174 | 69 | 27,687 | 0 |
| 84 | 26 | 2,810 | 1 |
| 173 | 58 | 27

Transcribed Image Text:**Student Sample Dataset Codebook**
This codebook provides a detailed description of the variables included in the student sample dataset. Each variable is explained with its data type, measurement scale, and any specific value labels used for categorical data.
- **ids**
- Description: ID number
- Type: Numeric
- Measure: Nominal
- **bday**
- Description: Date of birth (mm/dd/yyyy)
- Type: Date
- Measure: Scale
- **enrolldate**
- Description: Date of college enrollment (mm/dd/yyyy)
- Type: String
- Measure: Scale
- **expgradate**
- Description: Expected date of college graduation (mm/dd/yyyy)
- Type: String
- Measure: Scale
- **Rank**
- Description: Class rank
- Type: Numeric
- Measure: Ordinal
- Value Labels: 1=Freshman, 2=Sophomore, 3=Junior, 4=Senior
- **Major**
- Description: Major
- Type: String
- Measure: Nominal
- **Gender**
- Description: Gender
- Type: Numeric
- Measure: Nominal
- Value Labels: 0=Male, 1=Female
- **Athlete**
- Description: Is student an athlete?
- Type: Numeric
- Measure: Nominal
- Value Labels: 0=Non-athlete, 1=Athlete
- **Height**
- Description: Height (inches)
- Type: Numeric
- Measure: Scale
- **Weight**
- Description: Weight (pounds)
- Type: Numeric
- Measure: Scale
- **Smoking**
- Description: Does student smoke?
- Type: Numeric
- Measure: Nominal
- Value Labels: 0=Nonsmoker, 1=Past smoker, 2=Current smoker
- **Sprint**
- Description: 35-meter sprint time (seconds)
- Type: Numeric
- Measure: Scale
- **MileMinDur**
- Description: Mile run time (hh:mm:ss)
- Type: Datetime
- Measure: Scale
- **English**
- Description: Score on English placement test (out of 100 points)
Expert Solution

Step 1
Instruction : " Note: you have to do the manual method "
Given Data :
5, 9, 14, 28, 31, 1, 31, 14, 38, 31
a) Sum = 5 + 9 + 14 + 28 + 31 + 1 + 31 + 14 + 38 + 31 = 202
sample size , n = 10
Mean ,
Step by step
Solved in 2 steps

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

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
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman