In: Statistics and Probability
R Assignment 2
Below are the average starting teacher salaries for the 50 states in the US along with District of Columbia and Federal Education Association for year 2016-2017.
Construct a histogram. Label the horizontal axis and give histogram a heading. Describe
the shape of the distribution for your histogram.
State |
Avg. Starting Salary |
Alabama |
$38,477 |
Alaska |
$46,785 |
Arkansas |
$33,973 |
Arizona |
$34,068 |
California* |
$44,782 |
Colorado |
$32,980 |
Connecticut |
$45,280 |
District of Columbia* |
$51,359 |
Delaware |
$41,415 |
Federal Education Association |
$49,120 |
Florida |
$37,405 |
Georgia |
$34,872 |
Hawaii |
$45,963 |
Iowa |
$35,766 |
Idaho |
$33,743 |
Illinois |
$38,820 |
Indiana |
$35,241 |
Kansas |
$34,883 |
Kentucky |
$36,494 |
Louisiana |
$40,128 |
Massachusetts |
$44,726 |
Maryland |
$44,675 |
Maine |
$33,876 |
Michigan |
$36,234 |
Minnesota |
$37,644 |
Missouri |
$31,842 |
Mississippi |
$34,780 |
Montana |
$30,036 |
North Carolina |
$37,514 |
North Dakota |
$38,032 |
Nebraska |
$33,854 |
New Hampshire |
$36,845 |
New Jersey |
$51,179 |
New Mexico |
$34,544 |
Nevada |
$37,973 |
New York |
$44,935 |
Ohio |
$35,249 |
Oklahoma |
$31,919 |
Oregon |
$35,534 |
Pennsylvania |
$44,144 |
Rhode Island |
$41,481 |
South Carolina |
$33,057 |
South Dakota |
$37,419 |
Tennessee |
$36,402 |
Texas |
$40,725 |
Utah |
$35,722 |
Virginia |
$39,398 |
Vermont |
$38,483 |
Washington |
$40,426 |
Wisconsin |
$36,983 |
West Virginia |
$33,684 |
Wyoming |
$45,207 |
The R code for the given assignment is :
The required histogram is as shown below:
Description of the histogram: The shape of the histogram is "positively skewed" or "right skewed". It means that more number of teachers are paid lower starting slalry on an average. This is in the range $32500-$37500. As the pay bracket becomes higher, the number of teachers being paid in those ranges becomes lesser.
I hope this was helpful. Please leave back any comment.