Compare running times with the function

Assignment Help Applied Statistics
Reference no: EM131469783

Problem 1.

(A comparison of running times) Write a function permIndepChisqTest(tab, B = 2000) that takes in a table of joint counts tab and returns an estimate of the permutation p-value for the Pearson statistic based on B random permutations.

Compare the running time of your function to chisq.test for the same B = 1e6.

Use the attached School Admissions data

[Hint: to compute the processing time, use the function proc.time. Try not to use your computer in other ways while performing these computations so as not to bias the results.]

Problem 2.

(Bootstrap confidence interval) Write a function bootCI(x, conf=0.99, B=1e4) that takes in one-sample numerical data in the form of a vector x, a number conf in (0,1), and a large positive integer B, and produces a bootstrap Studentized confidence interval for the mean at level conf based on B bootstrap samples.

Problem 3.

(Using the package boot) boot is one of the main packages in R implementing bootstrap methodology. Instead of writing the function from scratch as was done in Problem 2, write a function bootCIpackage(x, conf=0.99, B=1e4) based on that package to produce a bootstrap Studentized confidence interval for the mean at level conf based on B bootstrap samples. Compare running times with the function from Problem 2 above with B = 1e6.

Attachment:- Ch03_Magnet_schools.txt

Reference no: EM131469783

Questions Cloud

What is the optimal age replacement policy : Tires that fail in service result in significantly higher replacement costs than those replaced before failure. For an 18-wheeler.
Provide election coverage : When an election for political office takes place, the television networks cancel regular programming and instead, provide election coverage.
Find the optimal replacement strategy : The Navy uses a certain type of vacuum tube in a sonar scanning device. Based on past experience, the vacuum tube exhibits the following failure pattern.
Determine possible options for evaluating strategic plan : Write a 700- to 1,050-word section for your business model and strategic plan. Determine the best possible options for evaluating the strategic plan.
Compare running times with the function : Compare running times with the function - Compare the running time of your function to chisq - estimate of the permutation p-value for the Pearson statistic
What is cumulative distribution function of microprocessor : A microprocessor that controls the tuner in color TVs fails completely at random (that is, according to the exponential distribution).
How does introvert factor compare to how you see yourself : What did you learn from the results? Any surprises? How does the introvert/extravert factor compare to how you see yourself?
What is probability that transducer chosen without failure : A pressure transducer regulates a climate control system in a factory. The transducer fails according to an exponential distribution with rate one failure.
What questions did i ask manager and name at least five : What questions did I ask her? Name at least five. Describe the recommendations I made for the next steps as a new manager. Name at least five.

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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