Question

In: Statistics and Probability

1. Consider Beta pdf and plot it on the same paper for various values of alpha...

1. Consider Beta pdf and plot it on the same paper for various values of
alpha and beta: alpha = 1,2,3,4,5 and beta=1/2, 1, 3/2, 2, 5/2. Consider
all combinations.

2. Consider gamma pdf and plot it on the same paper for various values of
alpha and beta: alpha = 1/2, 1, 3/2, 2, 5/2 and beta = 1, 2, 3, 4, 5.
Consider all possible combinations.

3. Consider Normal pdf and plot it on the same paper for various values of
mu and sigma: mu=0, -1, 1, -2, 2 and sigma = 1, 2, 3, 4, 5. Consider all
possible combinations.

You can use R or Excel or Matlab!


yes 25 solutions per problem

Solutions

Expert Solution

Answer:

1)

R code:

alpha=1:5
beta=(1:5)*0.5
x=seq(0,0.99, by=0.01)
n=length(x)
D=array(0,dim=c(5,n,5))
for(i in 1:5)
{
for(j in 1:5)
{
D[i,,j]=dbeta(x, alpha[i], beta[j], ncp = 0, log = FALSE)
}
}
plot(x,D[1,,1],lwd=2,type="n",col=1,xlab="x", ylab="f(x)",ylim=c(0,12),main=expression(beta(alpha,beta)))
for(i in 1:5)
{
for(j in 1:5)
{
lines(x,D[i,,j],lwd=2,type="l",lty=i)
}
}

2)

R code:

alpha=(1:5)*0.5
beta=1:5
x=seq(0,0.99, by=0.01)
n=length(x)
D=array(0,dim=c(5,n,5))
for(i in 1:5)
{
for(j in 1:5)
{
D[i,,j]=dgamma(x, beta[i], alpha[j])
}
}
plot(x,D[1,,1],lwd=2,type="n",col=1,xlab="x", ylab="f(x)",ylim=c(0,2.7),main=expression(gamma(beta,alpha)))
for(i in 1:5)
{
for(j in 1:5)
{
lines(x,D[i,,j],lwd=2,type="l",lty=i)
}
}

3)

R code:

mu=c(-2,-1,0,1,2)
sigma=1:5
x=seq(-17,17, by=0.01)
n=length(x)
D=array(0,dim=c(5,n,5))
for(i in 1:5)
{
for(j in 1:5)
{
D[i,,j]=dnorm(x, mu[i], sigma[j])
}
}
plot(x,D[1,,1],lwd=2,type="n",col=1,xlab="x", ylab="f(x)",ylim=c(0,0.45),main=expression(N(mu,sigma)))
for(i in 1:5)
{
for(j in 1:5)
{
lines(x,D[i,,j],lwd=2,type="l",lty=i)
}
}


Related Solutions

. Consider Beta pdf and plot it on the same paper for various values of alpha...
. Consider Beta pdf and plot it on the same paper for various values of alpha and beta: alpha = 1,2,3,4,5 and beta=1/2, 1, 3/2, 2, 5/2. Considr all combinations. 2. Consider gamma pdf and plot it on the same paper for various values of alpha and beta: alpha = 1/2, 1, 3/2, 2, 5/2 and beta = 1, 2, 3, 4, 5. Consider all possible combinations. 3. Consider Normal pdf and plot it on the same apper for various...
Consider an economy with two countries, Alpha and Beta. In Alpha, Computers cost $600 to produce,...
Consider an economy with two countries, Alpha and Beta. In Alpha, Computers cost $600 to produce, and Cell Phones cost $150 to produce. In Beta, Computers cost $750 to produce, and Cell Phones cost $250 to produce. Both countries are operating efficiently and with closed trade borders. If these countries agree to open their borders and trade with one another, is it possible for them to find a mutually beneficial trade agreement? If so, who will focus on computers and...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 53,000 302,000 108,000 206,000 Number of units now being sold to outside customers 53,000 302,000 84,000 206,000 Selling price per unit to outside customers $ 97 $ 42 $ 67 $ 45 Variable costs per unit...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 57,000 291,000 101,000 200,000 Number of units now being sold to outside customers 57,000 291,000 75,000 200,000 Selling price per unit to outside customers $103 $40 $62 $48 Variable costs per unit $65 $21 $39 $32...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 51,000 298,000 109,000 195,000 Number of units now being sold to outside customers 51,000 298,000 84,000 195,000 Selling price per unit to outside customers $ 99 $ 42 $ 70 $ 47 Variable costs per unit...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 58,000 284,000 106,000 191,000 Number of units now being sold to outside customers 58,000 284,000 82,000 191,000 Selling price per unit to outside customers $ 97 $ 45 $ 65 $ 45 Variable costs per unit...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 57,000 319,000 109,000 205,000 Number of units now being sold to outside customers 57,000 319,000 84,000 205,000 Selling price per unit to outside customers $ 103 $ 43 $ 68 $ 45 Variable costs per unit...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 53,000 282,000 105,000 200,000 Number of units now being sold to outside customers 53,000 282,000 80,000 200,000 Selling price per unit to outside customers $ 104 $ 44 $ 69 $ 45 Variable costs per unit...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 55,000 291,000 109,000 204,000 Number of units now being sold to outside customers 55,000 291,000 84,000 204,000 Selling price per unit to outside customers $ 102 $ 40 $ 62 $ 47 Variable costs per unit...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated...
Alpha and Beta are divisions within the same company. The managers of both divisions are evaluated based on their own division’s return on investment (ROI). Assume the following information relative to the two divisions: Case 1 2 3 4 Alpha Division: Capacity in units 50,000 284,000 103,000 192,000 Number of units now being sold to outside customers 50,000 284,000 80,000 192,000 Selling price per unit to outside customers $ 98 $ 39 $ 62 $ 45 Variable costs per unit...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT