Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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.

Tasks

problem1)

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:
                          variable1=rnorm(48,10)*(rep(rpois(4,.2),each=12)/8+1)
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

During this course you have compiled a marketing plan for

During this course, you have compiled a marketing plan for your fictional start-up company. Share the most important part of the marketing plan, and include an explanation of your company and product/service, situation a ...

Let x be a random variable with range rx -1 0 1 and let px

Let X be a random variable with range RX = {-1, 0, 1} and let P(X = 1) = P(X = -1) = p/2 for some p ∈ [0, 1]. a) Compute P(X = 0). b) Compute the expectation E[X] and variance Var(X) of X as a function of p, and determin ...

How do i figure a cusomers expected return when borrowing

How do I figure a cusomer's expected return when borrowing money? Example, the customer wants an investment that costs $100 and considers borrowing $80 for one year at 4.6% to help pay for the investment. What is the cus ...

A manufacture claims that the life span of its tires is

A manufacture claims that the life span of its tires is 52,000 miles. You work for a consumer protection agency and you are testing these tires. Assume the life spans of these tires are normally distributed. You select 1 ...

Table 1 fasting bloodfbs of group afbs of group

Table 1. Fasting Blood FBS of Group A FBS of Group B 95  90 100 100 125 125 175 200 250  550 1. What is the mean fasting blood sugar value for each group? What is the median? Mode? Group A: mean:145, median: 125, mode: n ...

A project has an initial outlay of 2034 it has a single

A project has an initial outlay of $2,034. It has a single cash flow at the end of year 6 of $4,743. What is the internal rate of return (IRR) for the project? Round the answer to two decimal places in percentage form.

For a population of individuals that has a standard

For a population of individuals that has a standard deviation of 10, what is the standard error of the mean for samples of size (a) 2, (b) 3, (c) 4, (d) 5, (e) 10, (f) 20, (g) 100?

A study if the impact of stress on the amount of

A study if the impact of stress on the amount of beta-endorphins released in the blood was reported. Researchers took beta-endorphin levels for 19 patients 12 hours before surgery and again 10 minutes before surgery. If ...

A random sample of 25 values is drawn from a mound-shaped

A random sample of 25 values is drawn from a mound-shaped and symmetric distribution. The sample mean is 12 and the sample standard deviation is 2. Use a level of significance of 0.05 to conduct a two-tailed test of the ...

Suppose that 20 of men p20 and 15 of women p 15 are

Suppose that 20% of men (P=.20) and 15% of women (P= .15) are carriers of a particular genetic trait. That trait can only be inherited by a child if both parents are carriers. What is the probability that a child is born ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As