What are the mean and median average incomes

Assignment Help Other Subject
Reference no: EM131998985

Assignment 1: Data Analysis in R

1) Read the income dataset, "zipIncomeAssignment.csv", into R. (You can find the csv file in iLearn under the Content -> Week 2 folder.)

2) Change the column names of your data frame so that zcta becomes zipCode and meanhouseholdincome becomes income.

3) Analyze the summary of your data. What are the mean and median average incomes?

4) Plot a scatter plot of the data. Although this graph is not too informative, do you see any outlier values? If so, what are they?

5) In order to omit outliers, create a subset of the data so that:

$7,000 < income < $200,000 (or in R syntax , income > 7000 & income < 200000)

6) What's your new mean?

7) Create a simple box plot of your data. Be sure to add a title and label the axes.

In the box plot you created, notice that all of the income data is pushed towards the bottom of the graph because most average incomes tend to be low. Create a new box plot where the y-axis uses a log scale. Be sure to add a title and label the axes. For the next 2 questions, use the ggplot library in R, which enables you to create graphs with several different types of plots layered over each other.

8) Make a ggplot that consists of just a scatter plot using the function geom_point() with position = "jitter" so that the data points are grouped by zip code. Be sure to use ggplot's function for taking the log10 of the y-axis data. (Hint: for geom_point, have alpha=0.2).

9) Create a new ggplot by adding a box plot layer to your previous graph. To do this, add the ggplot function geom_boxplot(). Also, add color to the scatter plot so that data points between different zip codes are different colors. Be sure to label the axes and add a title to the graph. (Hint: for geom_boxplot, have alpha=0.1 and outlier.size=0).

10) What can you conclude from this data analysis/visualization?

Reference no: EM131998985

Questions Cloud

Review literature of topic on database systems and security : Review the literature of a topic on database systems & security, identify a problem of academic interest, investigate and propose solutions to the problem.
Expanding rapidly and currently needs to retain of earnings : Computech Corporation is expanding rapidly and currently needs to retain all of its earnings; hence, it does not pay dividends.
The seller of the forward rate agreement : Identify the nature of the bank’s interest rate risk, the agreement rate, and whether the bank is the buyer or the seller of the Forward Rate Agreement.
Define regular expressions and explain their purpose : Define regular expressions and explain their purpose. Provide at least three (3) examples which demonstrate the way regular expressions work.
What are the mean and median average incomes : Analyze the summary of your data. What are the mean and median average incomes? Plot a scatter plot of the data. Although this graph is not too informative.
What is the difference between the mean and the median : What is the difference between the mean and the median? Which would you use as a descriptive statistic with a skewed distribution?
Population who then become pregnant : If we randomly select two women from the population who then become pregnant, what is the probability that both children will be boys
Describe your expectations on finding law from anywhere : On the discussion forum, describe your expectations on finding law from anywhere in the world by use of the internet.
Discuss the relationship between data and information : Discuss the relationship between data, information, and knowledge. Support your discussion with at least 3 academically reviewed articles.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd