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

  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