Compare the distribution of base salary in teachers

Assignment Help Other Subject
Reference no: EM132378027

Assignment

The drawback of permutation tests

Permutation tests give a numerical procedure to approximate a p-value. Its main drawback is that it is computationally expensive: often one has to average over a large number of simulations to get a reliable estimate of the p-value. This exercise demonstrates this point. The bottom line is: if you knew an exact formula for the p-value, you should always use it.

Consider setup 2. of the soda taste test experiment from the last homework again. That is, the tester tasted 10 cups, knew that there were 5 of each type. Let S be the number of cups that a taste tester got right under random guessing.

1. Write a function so that it takes an argument m and repeat the previous task m times and return their outputs as a vector. That is, your function returns the output of m independent simulations of S. Call your function sodashuffle.

2. Use sodashuffle to draw n = 1000 draws from the distribution of S. From this data, compute a numerical approximation pˆ for p := P (S = 10). How far is this approximation from the true value of p, which is 1/252?

3. Write a function to take n (number of draws) as an argument, and return the error |pˆ- p| when one performs step 2 with n draws.

4. Write a function to take r (number of repeats per draw) AND n (number of draws) as arguments, and a vector obtained from repeating the function in step 3 r times.

5. Plot your error distribution of |pˆ - p| as a series of boxplots, one for each n, for n =

25 , 26 , 27 , 28 , 29 , 210 , 211 , 212 , 213 .

6. What can you conclude from this plot?

(Tuesday HackR worksheet) Titanic dataset.

You can find this under homework4/titanic.csv. Read the file description from homework4/titanic-descrip.txt

1. Compare the distribution of base salary in teachers with BA vs MA. Include an appropriate plot.

Is there a significant difference in survival rate between classes?

2. Set up the problem as a hypothesis testing problem. State the Null, the Alternative, and the event E

3. Compute an estimation of the p-value using the permutation test (NO other tests accepted).

4. Draw conclusions.

Teacher dataset.

Consider the dataset teacher in the library OIdata. This data set contains teacher salaries from 2009-2010 for 71 teachers employed by the St. Louis Public School in Michigan, as well as several other variables. Load the data in R with

install.packages("0Idata") #first time, if you don't have the OIdata package yet

library(0Idata)

data(teacher)

for documentation, type

?teacher

1. Compare the distribution of base salary in full time teachers with BA vs MA. Include an appropriate plot.

Do full time teachers with an MA start with a significantly higher minimum base salary compared to full time teachers with a BA?

2. Set up the problem as a hypothesis testing problem. State the Null, the Alternative, and the event E

3. Compute an estimation of the p-value using the permutation test. (NO other tests accepted).

4. Draw conclusions.

Is there a significant difference in the standard deviation of base salary between full time teachers with BA and teachers with MA?

2. Set up the problem as a hypothesis testing problem. State the Null, the Alternative, and the event E

3. Compute an estimation of the p-value using the permutation test. (NO other tests accepted).

4. Draw conclusions.

Reading - OpenIntro Statistics By David Diez and Mine C ¸ etinkaya-Rundel.

Attachment:- Titanic.rar

Reference no: EM132378027

Questions Cloud

Discuss existing tension in development and the environment : Hite and Seitz (2016) discuss the existing tension between development and the environment. Development brings economic growth as well as social and environment
Describe the situation from your research : To prepare for this Discussion, think about a time in your professional experience when a decision was made that seemed to benefit a specific manager.
Identify something you want to change in the company : It's one thing to be able to look at a Financial Report and analyze it using ratios and comparisons. However, keep in mind that when you do that.
Accounting Standards And Accounting Information System : Accounting Standards And Accounting Information System assignment help and assessment help - Can you describe the various principles, standards and Opinions.
Compare the distribution of base salary in teachers : Write a function so that it takes an argument m and repeat the previous task m times and return their outputs as a vector. Call your function sodashuffle.
Develop independent working and project management skills : Critically analyse a wide range of literature in accounting and finance and Synthesise and critique the different methodological frameworks
Financial Management Question - Define structure using ratio : Financial Management assignment help and solutions - Based on the information that you learned about capital structure and budgeting, determine what the optimal
ACC10707 Accounting And Finance For Business Assignment : ACC10707 Accounting and Finance for Business assignment help and solutions, Southern Cross University - Garden Enterprises has the following business.
Identify the four basic financial statements : Identify the four basic financial statements and explain how they relate to each other and why they are useful for managers, investors, creditors.

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