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

  What promotional activities compel me to buy this product

What promotional activities compel me to buy this product? What is it about this product that appeals to me? Who are the people like me that are buying product?

  What kinds of systems are described in this case

What kinds of systems are described in this case? Identify and describe the business processes each supports. Describe the inputs, and outputs of these systems

  What you find to be the most interesting information

For this assignment, you are asked to locate any company privacy policy. Some of the more popular ones might include GOOGLE, APPLE, or MICROSOFT, but you.

  Write about movie - too big to fail

Watch the movie "Too big to fail" Write 2 pages about why it is important to film this movie

  How powerless they are in comparison with modern humans

We know that induction will provide dependable results in the future because it has always worked in the past. Whatever has consistently worked in the past will continue to work in the future, and we know that is true because it has been establish..

  Victim precipitation data contribute

How does victim precipitation data contribute to knowledge of interpersonal crimes, particularly homicide data?

  What are the connections of the four texts

What are the ?connections? of the four texts? ?The Perks of Being a Wallflower? ?The Edge of Seventeen? ?The Breakfast Club? ?Thirteen?

  Describe the quantitative design in nursing research

Describe the quantitative design or methodology of the article you selected. Present the strengths and limitations of this type of design

  Explain what is geography and what do geographers study

What is geography. What do geographers study. How is geography interdisciplinary. What iscartography and GIS. What is the global grid system and its parts

  Indifference curves are convex to the origin because

Which of the following would unambiguously predict a decrease in desired hours of work? Assuming workers must work TS hours or not work at all, worker A will.

  Do you have insight on what the process feels like

Choosing artists for public commissions based on competition is very similar to our current job market, where there are often more candidates than jobs.

  Define american foreign policy and the secret government

Define American foreign policy and the "secret government". Find a recent article prefereably from The Wall Street Journal or The New York Times.

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