Ask Question, Ask an Expert


Ask Statistics and Probability Expert

Please follow these instructions carefully, read them first! Your answers should be well structured and concise, and written in complete English sentences. Include your graphs and your code (in typepreparer font), comment it. Do not forget to number your answers to refer to the corresponding tasks below.



Create a data frame in R that will look like this:

fact variable1
A .
A .
. .
B .
B .
. .
C .
. .
D .
. .
The final dimension of the data set should be 48 rows by 2 columns. Each factor level (A, B, C, D) is replicated 12 times. For variable 1, use the following code:
Give this data frame a name of your choice and show the code you used to create it. describe as much of the code to populate variable 1 with numbers. Comment on the details of the code.

problem 2)

Think of a situation (an experiment or observational study) within your (future) area of research that could produce such a data set. describe (hypothetically) what was done and how the data were obtained. Throughout the rest of this assignment, pretend these are real data. However, in your interpretation, you may comment at any stage on how the data were created.

problem 3)

Explore your data set using at least 2 commands to summarise your data and at least 2 commands to visually depict your data (plots, histograms,...). At each step / for each plot you create, comment on what you see and what you learn from it.

problem 4)

Compare the maximum and minimum values within each group (factor level) to their respective group means. What is the largest absolute difference between one of your values and its group mean? What are the chances of obtaining such a value, assuming the data are normally distributed and centered around the respective group mean with a standard deviation of 1?

problem 5)
 Formulate a hypothesis based on task 1 that you can test using ANOVA. Perform the analysis. Briefly describe what the F-value tells you and interpret the p-value. Draw a conclusion.

problem 6)

Regardless of whether you found significant differences between groups or not, perform a Tukey’s HSD test to determine what groups are significantly different from each other (even if none are). Briefly interpret this result in view of the nature of your data.

problem 7)

describe why the output contains an ‘adjusted p-value’. What does it adjust for? Can you outline a simulation experiment in R (you don’t need but you can show how you would program it) that illustrates the problem of multiple comparisons?

problem 8)

Compute the group means and then the variance of the group means for variable1 and assign this number to an object called ‘betweenVar’, meaning ‘between group variance’. Also compute the within-group variance of variable1 and assign this number to an object called ‘withinVar’ for ‘within group variance’.

problem 9)

Using the within- and between groups variances from the task above, conduct a power test for your ANOVA. Regardless of whether your ANOVA result was significant or not, discuss all aspects of the power test (sample size, type I and type II error, power, within- and between group variance) in accordance with the outcome of your ANOVA (as in task 4) and the nature of your data as you described it in task 1. For ex, if your ANOVA did not find a significant difference between groups, discuss how you could change your experimental set-up to find an expected difference. Or, if your ANOVA was significant, discuss the power of your test and (for ex) your type I error probability and whether / how you could reduce it. Talk about what the design of a larger experiment could look like based on the results of your pilot study, e.g. by bringing in financial aspects.

problem 10)

Show the differences between groups in a bar plot with standard errors. Mark those groups that do not differ significantly with the same letters. Adjust the margins, the label and tick size and position etc. until you think this graph could be published in a journal. Draft a figure caption that contains all the needed information: What is shown? Where? How was it measured? When? What test are the letters referring to?

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M9427

Have any Question? 

Related Questions in Statistics and Probability

Read isl p43-51 the lab section of chapter 1 this is a good

Read ISL p.43-51, the Lab section of chapter 1. This is a good getting-started guide to R. To follow along you will need to download the data sets from Data Sets and Figures from the ISL website ( ...

For some integer l and constant c two discrete random

For some integer L and constant c, two discrete random variables have a joint PMF given by   (a) Find the value of the constant c in terms of L . (b) Find the marginal PMFs, P M (m) and P N (n). (c) Find Pr(M+N

In a test of the effectiveness of garlic for lowering

In a test of the effectiveness of garlic for lowering cholesterol, 45 subjects were treated with garlic in a processed tablet form. Cholesterol levels were measured before and after the treatment. The changes in their le ...

Letnbsp stnbsp be a periodic square wave as illustrated in

Let  S(t)  be a periodic square wave as illustrated in the accompanying figure. Suppose a random process is created according to   is a random variable uniformly distributed over   (a) Find the probability mass function ...

A discrete-time linear filter has a unit pulse

A discrete-time linear filter has a unit pulse response   The input to this filter is a random sequence with uncorrelated samples. Show that the output PSD is real and non-negative.

A charity holds a raffle in which each ticket is sold for

A charity holds a raffle in which each ticket is sold for $40. A total of 11200 tickets are sold. They raffle one grand prize which is a Mercedes Benz E350 valued at $55000 along with 2 second prizes of Honda motorcycles ...

A box contains 11 two-inch screws of which 6 have a philips

A box contains 11 two-inch screws, of which 6 have a Philips head and 5 have a regular head. Suppose that you select 3 screws randomly from the box. What is the probability that there will be more than one Phillips head ...

Regression exercises assignmentpart 1 we will start this in

Regression Exercises Assignment Part 1 (We will Start this in class.) Suppose that theory predicts that Y is related to X by a linear function of the form: Y = m X + b, but random experimental error has been making it di ...

A communication system transmits bits over a channel such

A communication system transmits bits over a channel such that the probability of being received in error is P=0.02 . Bits are transmitted in blocks of length 1023 bits and an error correction scheme is used such that bi ...

Suppose you have a population with two men- one democrat

Suppose you have a population with two men- one democrat; and one a republican; and two women- one a democrat and one a republican. For a simple random sample of size 2, all samples of size 2 have the same chance of bein ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate