What is the distribution of the profit

Assignment Help Applied Statistics
Reference no: EM132389192

Assignment - Problem Set

Please complete the following tasks regarding the data in R. Please generate a solution document in R markdown and upload the .Rmd document and a rendered .doc, .docx, or .pdf document. Your solution document should have your answers to the questions and should display the requested plots.

The questions have a strong sequential dependence, so please do ask for help if you're unsure of your solutions. These questions were rendered in R markdown through RStudio.

Question 1 - (Hypothetical) In analyzing a motel business, a consultant finds that the number of single rooms occupied on mid-week October days can be modeled as having a binomial distribution with size equal to the number of rooms s and probability of success equal to p. Suppose the profit on each occupied room is Normal(μ, σ2), independently, and on each unoccupied room is Normal(η, ρ2), independently. (Presumably η is negative number.)

1a. In terms of the Normal distribution, k, μ, σ2 and η and ρ2, what is the distribution of the profit if k rooms are occupied?

1b. Write an R function for the density function for the distribution of the profit, "profit<-function(x, s, p, mu, sigma, eta)" where "x" is the profit, "s" and "p" are as above and "mu"=μ, "sigma"=σ and "eta"=η. You may use "dbinom" and "dnorm".

Please run the integral and the plot commands below.

Note that in order for "integrate" and "stat_function" to perform correctly, the function "profit" must return a vector value given a vector for "x". Given a function that performs correctly on scalar "x", it can be applied to rows of "matrix(x,ncol=1)" to return the correct values for the entries in the vector "x".

1c. Please use the function "profit" and the function "integrate" to estimate the mean and variance of "profit" for s=10,p=.7,mu=200,sigma=35,eta=-25,rho=5.

1d. Please give a closed form formula (without use of integrals) for the mean of the distribution of profit in terms of s, p, μ, σ2 and η and ρ2 based on the density function for profit. Please check the formula by applying it to s=10, p=.7, μ=200, σ=35, η=-25, ρ=5.

1e. Please give a closed form formula (without use of integrals) for the variance of the distribution of profit in terms of s, p, μ, σ2 and η and ρ2 based on the density function for profit. Please check the formula by applying it to s=10, p=.7, μ=200, σ=35, η=-25, ρ=5.

The fact that E[X2]= Var[X2]+E[X]2 may be useful.

1f. Note that the density function for profit is equal to that produced by viewing profit as the sum of s independent variables based on the profit for an individual room as follows: model that each room is occupied with probability p, that the profit from an occupied room has the Normal(μ, σ2) distribution, and the profit from an unoccupied room has the Normal(η, ρ2) distribution. The total profit is the random variable equal to the sum of the s independent random variables modeling the profit from each room.

Based on this model and the theorems for the mean and variance of sums of independent random variables, give closed form formulas for the mean and variance of profit.

Please check the formulas by applying them to s=10, p=.7, μ=200, σ=35, η=-25, ρ=5.

Attachment:- Assignment Files.rar

Reference no: EM132389192

Questions Cloud

What carbon fixation pathway operates : In CAM plants what carbon fixation pathway operates at night, the C3 pathway or the C4 pathway?
Hour period when are the stomata : In CAM plants during a 24 hour period when are the stomata open and when are the stomata closed?
Please give me at least five environmental challenges : Please give me at least five environmental challenges a land plant faces compared to its algal ancestors.
Provide brief description and explanation of error : Provide brief description and explanation of error that occur (non-disjunction) in the process of meiosis.
What is the distribution of the profit : Please generate a solution document in R markdown and upload the .Rmd document and What is the distribution of the profit
What percentage of the f1 and f2 generations : If two of these brown offspring are mated, what percentage of the F1 and F2 generations will be brown?
What is the function of an enzyme : What is the function of an enzyme? What is the function of catalase in living cells?
What medical conditions may cause a deficiency in thiamine : What medical conditions may cause a deficiency in thiamine? How would cellular respiration be affected in those conditions? What symptoms should I observe?
Calculate the fraction of b alleles in the population : Calculate the fraction of b alleles in the population (remember, each bear has two copies of the gene).

Reviews

Write a Review

Applied Statistics Questions & Answers

  Producing the 101st item will increase the total profit

producing the 101st item will increase the total profit

  What are the two independent variables in this study

What are the two independent variables in this study? What is the dependent variable? 2.Why is a two-way between-subjects factorial ANOVA the correct statistic to use for this research design?

  What does it mean for a sample to have a standard deviation

What does it mean for a sample to have a standard deviation of 0? Describe the scores in such a sample.

  What is the mean of sampling distribution of means

The average time scheduled for a doctor's visit is 25 minutes with a standard deviation of 22 minutes.  A researcher uses a sampling distribution made up of samples of size 271.  According to the Central Limit Theore, what is the mean of sampling dis..

  Write a formula for the steady state distribution

Write a formula for N (Δt), the steady state distribution of monthly sales for each value of Δt, if P(Δt) is known. Prove that N (Δt) is a probability distribution with Δt=0∑∞ N(Δt) = 1

  Conduct a chi-square analysis

Is there a relationship between an employee's level and their interest in a 401k plan? Support your answer using data from the analysis.

  Cigarettes cause the pulse rate to increase

Describe the error in the conclusion. Given: There is a linear correlation between the number of cigarettes smoked and the pulse rate. As the number of cigarettes increases the pulse rate increases. Conclusion: Cigarettes cause the pulse rate to incr..

  What are the independent variables and their levels

What are the independent variables and their levels? What is the dependent variable?State all null hypotheses associated with independent variables.

  Hdtv''s need repairs at the manufacturer expense

The warranty period must be long enough to make the purchase attractive to the buyer. For a new HDTV the mean number of months until repairs are needed is 36.84 with a standard deviation of 3.34 months. Where should the warranty limits be set ..

  Check the assumption of constant variance

STAT 425 - Display your plots and the R code you used to produce them - Describe two distinct ways in which these plots tend to differ in appearance

  What influences the probability of a type ii error

What influences the probability of a Type II error?- What is the difference between statistical significance and practical significance?

  Test a manufacturer''s claim that the average life

Test a manufacturer's claim that the average life of its product is 100 hours (H0: µ = 100). There is evidence that the true average life of the product is not as advertised.

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