Questions
In a state lottery, if 6 numbers are chosen out of 50. If you match all 6, you win a million dollars. Is this a combination or permutation?

In a state lottery, if 6 numbers are chosen out of 50. If you match all 6, you win a million dollars. Is this a combination or permutation? How do you know? If it was the other one, would your chances be higher or lower and as a result would the pay out be higher or lower?

In: Statistics and Probability

Adele Weiss manages the campus flower shop. Flowers must be ordered three days in advance from...

Adele Weiss manages the campus flower shop. Flowers must be ordered three days in advance from her supplier in Mexico. Although Valentine’s Day is fast approaching, sales are almost entirely last-minute, impulse purchases. Advance sales are so small that Weiss has no way to estimate the probability of low (25 dozen), medium (60 dozen), or high (130 dozen) demand for red roses on the big day. She buys roses for $15 per dozen and sells them for $40 per dozen.  Payoff table is given below.

Demand for Red Roses

Alternative

Low
(25 dozen)

Medium
(60 dozen)

High
(130 dozen)

Order 25 dozen

  $625

  $625

  $625

Order 60 dozen

  $100

  $1,500

  $1,500

Order 130 dozen

  -$950

  $450

  $3,250

Do nothing

  $0

  $0

  $0

Which decision is indicated by each of the following decision criteria?

  • Maximin (pessimistic)  

  • Maximax (optimistic)

  • Laplace (Equally likely)

  • Minimax regret

In: Advanced Math

Hello. Please answer the following question in Scheme. Not Python, not any form of C, but...

Hello. Please answer the following question in Scheme. Not Python, not any form of C, but in the language Scheme. If you do not know Scheme, please do not answer the question. I've had to upload it multiple times now. Thank you.

4 Write a recursive function called mergesort that sorts a list by doing the following:
(a) Use split to split the list into two roughly equal-sized partitions.
(b) Recursively sort both partitions.
(c) Use merge to merge the sorted partitions together.
Once again you will need two base cases, one for the empty list and the other for a single-element list.
> (mergesort '())

()

> (mergesort '(9))

(9)

> (mergesort '(8 6 7 5 3 0 9))

(0 3 5 6 7 8 9)

In: Computer Science

A.) myNums is an array of 50 elements of type int and k is an int...

A.) myNums is an array of 50 elements of type int and k is an int variable. For which one we get the index of out of bounds?

a.

for (k = 0; k <= 49; k++)

    cout << myNums[k] << " ";

b.

for (k = 1; k < 50; k++)

    cout << myNums[k] << " ";

c.

for (k = 0; k <= 50; k++)

    cout << myNums[k] << " ";

d.

for (k = 0; k <= 48; k++)

    cout << myNums[k] << " ";

B.)

if we have int myNums[4] = {10, 20, 30, 40};. Which one is equivalent to this statement?

a.

int myNums[] = {10, 20, 30, 40};

b.

int myNums[] = {10 20 30 40};

c.

int myNums[4] = [10, 20, 30, 40];

d.

int myNums[] = (10, 20, 30, 40);

C.)

The C-string cityName[30] can contain ________.

A) thirty characters

B) thirty one characters

C) twenty nine characters and the null terminator

D) thirty characters and the null terminator

E) None of the above

D.)

What is the output of the following C++ code?

int nums[5] = {0, 5, 10, 15, 20};

int j;

for (j = 1; j <= 4; j++)

      cout << nums[j] << " ";

cout << endl;

a.

0 5 10 15

c.

5 10 15 20

b.

10 15 20 0

d.

Code results in index out-of-bounds

D.)

What is the output of the following C++ code?

int nums[5] = {2, 4, 6, 8, 10};

int j;

for (j = 3; j >= 0; j--)

    cout << nums[j] << " ";

cout << endl;

a.

4 6 8 10

c.

6 4 2 0

b.

3 2 1 0

d.

8 6 4 2

In: Computer Science

Forecasting labour costs is a key aspect of hotel revenue management that enables hoteliers to appropriately...

Forecasting labour costs is a key aspect of hotel revenue management that enables hoteliers to appropriately allocate hotel resources and fix pricing strategies. Mary, the President of Hellenic Hoteliers Federation (HHF) is interested in investigating how labour costs (variable L_COST) relate to the number of rooms in a hotel (variable Total_Rooms). Suppose that HHF has hired you as a business analyst to develop a linear model to predict hotel labour costs based on the total number of rooms per hotel using the data provided. 3.1 Use the least squares method to estimate the regression coefficients b0 and b1 3.2 State the regression equation 3.3 Plot on the same graph, the scatter diagram and the regression line 3.4 Give the interpretation of the regression coefficients b0 and b1 as well as the result of the t-test on the individual variables (assume a significance level of 5%) Determine the correlation coefficient of the two variables and provide an interpretation of its meaning in the context of this problem.Check statistically, at the 0.05 level of significance whether there is any evidence of a linear relationship between labour cost and total number of rooms per hotel

STARS Total_Rooms Region_ID ARR_MAY ARR_AUG L_COST
5 412 1 95 160 2.165.000
5 313 1 94 173 2.214.985
5 265 1 81 174 1.393.550
5 204 1 131 225 2.460.634
5 172 1 90 195 1.151.600
5 133 1 71 136 801.469
5 127 1 85 114 1.072.000
4 322 1 70 159 1.608.013
4 241 1 64 109 793.009
4 172 1 68 148 1.383.854
4 121 1 64 132 494.566
4 70 1 59 128 437.684
4 65 1 25 63 83.000
3 93 1 76 130 626.000
3 75 1 40 60 37.735
3 69 1 60 70 256.658
3 66 1 51 65 230.000
3 54 1 65 90 200.000
2 68 1 45 55 199.000
1 57 1 35 90 11.720
4 38 1 22 51 59.200
4 27 1 70 100 130.000
3 47 1 60 120 255.020
3 32 1 40 60 3.500
3 27 1 48 55 20.906
2 48 1 52 60 284.569
2 39 1 53 104 107.447
2 35 1 80 110 64.702
2 23 1 40 50 6.500
1 25 1 59 128 156.316
4 10 1 90 105 15.950
3 18 1 94 104 722.069
2 17 1 29 53 6.121
2 29 1 26 44 30.000
1 21 1 42 54 5.700
1 23 1 30 35 50.237
2 15 1 47 50 19.670
1 8 1 31 49 7.888
1 15 1 40 55 3.500
1 18 1 35 40 112.181
4 10 1 57 97 30.000
2 26 1 35 40 3.575
5 306 2 113 235 2.074.000
5 240 2 61 132 1.312.601
5 330 2 112 240 434.237
5 139 2 100 130 495.000
4 353 2 87 152 1.511.457
4 324 2 112 211 1.800.000
4 276 2 95 160 2.050.000
4 221 2 47 102 623.117
4 200 2 77 178 796.026
4 117 2 48 91 360.000
3 170 2 60 104 538.848
3 122 2 25 33 568.536
5 57 2 68 140 300.000
4 62 2 55 75 249.205
3 98 2 38 75 150.000
3 75 2 45 70 220.000
3 62 2 45 90 50.302
5 50 2 100 180 517.729
4 27 2 180 250 51.000
3 44 2 38 84 75.704
3 33 2 99 218 271.724
3 25 2 45 95 118.049
2 30 2 30 55 40.000
3 10 2 40 70 10.000
2 18 2 60 100 10.000
2 73 2 22 41 70.000
2 21 2 55 100 12.000
1 22 2 40 100 20.000
1 25 2 80 120 36.277
1 25 2 80 120 36.277
1 31 2 18 35 10.450
3 16 2 80 100 14.300
2 15 2 30 45 4.296
1 16 2 25 70 379.498
1 22 2 30 35 1.520
4 12 2 215 265 45.000
4 34 2 133 218 96.619
2 37 2 35 95 270.000
2 25 2 100 150 60.000
2 10 2 70 100 12.500
5 270 3 60 90 1.934.820
5 261 3 119 211 3.000.000
5 219 3 93 162 1.675.995
5 280 3 81 138 903.000
5 378 3 44 128 2.429.367
5 181 3 100 187 1.143.850
5 166 3 98 183 900.000
5 119 3 100 150 600.000
5 174 3 102 211 2.500.000
5 124 3 103 160 1.103.939
4 112 3 40 56 363.825
4 227 3 69 123 1.538.000
4 161 3 112 213 1.370.968
4 216 3 80 124 1.339.903
3 102 3 53 91 173.481
4 96 3 73 134 210.000
4 97 3 94 120 441.737
4 56 3 70 100 96.000
3 72 3 40 75 177.833
3 62 3 50 90 252.390
3 78 3 70 120 377.182
3 74 3 80 95 111.000
3 33 3 85 120 238.000
3 30 3 50 80 45.000
3 39 3 30 68 50.000
3 32 3 30 100 40.000
2 25 3 32 55 61.766
2 41 3 50 90 166.903
2 24 3 70 120 116.056
2 49 3 30 73 41.000
2 43 3 94 120 195.821
2 20 3 70 120 96.713
2 32 3 19 45 6.500
2 14 3 35 70 5.500
2 14 3 50 80 4.000
1 13 3 25 45 15.000
1 13 3 30 50 9.500
2 53 3 55 80 48.200
3 11 3 95 120 3.000
1 16 3 25 31 27.084
1 21 3 16 40 30.000
1 21 3 16 40 20.000
1 46 3 19 23 43.549
1 21 3 30 40 10.000

In: Statistics and Probability

Owen’s Electronics has nine operating plants in seven southwestern states. Sales for last year were $100...

Owen’s Electronics has nine operating plants in seven southwestern states. Sales for last year were $100 million, and the balance sheet at year-end is similar in percentage of sales to that of previous years (and this will continue in the future). All assets (including fixed assets) and current liabilities will vary directly with sales. The firm is working at full capacity.

Balance Sheet
(in $ millions)

Assets

Liabilities and Stockholders' Equity

Cash

$

6

Accounts payable

$

19

Accounts receivable

24

Accrued wages

6

Inventory

27

Accrued taxes

12

Current assets

$

57

Current liabilities

$

37

Fixed assets

44

Notes payable

14

Common stock

19

Retained earnings

31

Total assets

$

101

Total liabilities and stockholders' equity

$

101

Owen’s Electronics has an aftertax profit margin of 9 percent and a dividend payout ratio of 40 percent.

If sales grow by 15 percent next year, determine how many dollars of new funds are needed to finance the growth. (Do not round intermediate calculations. Enter your answer in dollars, not millions, (e.g., $1,234,567).)

I’m getting 15,520,000 but I don’t think it’s right :-(

In: Finance

Consider the following heart disease mortality data from two hypothetical countries, including a low-income and high-income...

Consider the following heart disease mortality data from two hypothetical countries, including a low-income and high-income country.

Age Group (years % of population in age group Death rate from heart disease
Hypothetical Low-Income
0-20 30% 2/100,000 person- years
21-50 40% 20/100,000 person- years
51-85 30% 40/100,000 person- years
Hypothetical high- income
0-20 20% 2/100,000 person- years
21-50 30% 20/100,000 person -years
51-85 50% 40/100,000 person- years

A. Use these data to calculate the overall crude death rates from heart disease in the hypothetical high and low income countries.

B. Based on these data, do you think that it is better to compare the heart disease death rates in the two countries using the overall crude rate or the age-standardized rate for each country? Briefly justify your answer.

In: Math

You want to make one single deposit today (year 0), so that whenyou retire in...

You want to make one single deposit today (year 0), so that when you retire in 39 years from now, you can make annual withdrawals for the subsequent 21 years. Your first withdrawal will be at time 40 and your last withdrawal will be at time 60. You want your first withdrawal (in year 40) to be $57,000 and then increase this payment by 4% every year after the prior one to compensate for inflation. If your interest rate is 8% APR, how much money did you deposit today?

In: Finance

IN C LANGUAGE 16.16 Lab 5: merge Name this program merge.c - This program will take...

IN C LANGUAGE

16.16 Lab 5: merge

Name this program merge.c - This program will take two arguments from the command-line which will be the names of the two text files the program will read from. These text files contain a list of numbers each in ascending order. You'll open the text files and begin merging the two sets of numbers together until every unique number is printed to the screen once and in order. For example:

file1.txt file2.txt
1 2
2 4
3 6
6 7

file3.txt: 1 2 5 7 9 10 11 13 15 17 19 20 21 24 25

file4.txt: 3 4 6 8 10 11 12 14 16 18 20

Note: make sure your input text files end with an empty newline, or the last number may be skipped. Lines must end with a newline character, according to the standards we follow.

Example executions:

./a.out file1.txt file2.txt
1 2 3 4 6 7
./a.out file3.txt file4.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 24 25

Here is the solution in pseudo-code:

Read number1 from file1
Read number2 from file2
While ( not EOF for file1 AND not EOF for file2 )
    If number1 is less than number2
       Print number1 and read the next number from file1
    Else if number1 is greater than number2
       Print number2 and read the next number from file2
    Else (the numbers are the same)
       Print the number and read the next number from both files
End while
// at most one of the following two while statements will be true
While( file1 has not yet hit EOF)
   Print number1 and read the next number from file1
While( file2 has not yet hit EOF)
   Print number2 and read the next number from file2

In: Computer Science

1) An eight-month European put option on a dividend-paying stock is currently selling for $3. The...

1) An eight-month European put option on a dividend-paying stock is currently selling for $3. The stock price is $30, the strike price is $32, and the risk-free interest rate is 8% per annum. The stock is expected to pay a dividend of $2 three months later and another dividend of $2 six months later. Explain the arbitrage opportunities available to the arbitrageur by demonstrating what would happen under different scenarios.

2) The volatility of a non-dividend-paying stock whose price is $40, is 35%. The risk-free rate is 6% per annum (continuously compounded) for all maturities. Use a two-step tree to calculate the value of a derivative that pays off [max(?!−52,0)]" where is the stock price in six months?
3) A stock is expected to pay a dividend of $0.60 per share in one month, in four months and in seven months. The stock price is $25, and the risk-free rate of interest is 6% per annum with continuous compounding for all maturities. You have just taken a long position in an eight-month forward contract on the stock. Six months later, the price of the stock has become $29 and the risk-free rate of interest is still 6% per annum. What is the value your position six months later?

4) Suppose that the term structure of interest rates is flat in England and Germany. The GBP interest rate is 5% per annum and the EUR rate is 4% per annum. In a swap agreement, a financial institution pays 8% per annum in GBP and receives 6% per annum in EUR. The exchange rate between the two currencies has changed from 1.2 EUR per GBP to 1.15 EUR per GBP since the swap’s initiation. The principal in British pounds is 15 million GBP. Payments are exchanged every year, with one exchange having just taken place. The swap will last three more years. What is the value of the swap to the financial institution in terms of euros? Assume all interest rates are continuously compounded.

5) The premium of a call option with a strike price of $45 is equal to $5 and the premium of a call option with a strike price of $50 is equal to $3.5. The premium of a put option with a strike price of $45 is equal to $3. All these options have a time to maturity of 3 months. The risk-free rate of interest is 8%. In the absence of arbitrage opportunities, what should be the premium of a put option with a strike price of $50?

6) A financial institution has just bought 9-month European call options on the Chinese yuan. Suppose that the spot exchange rate is 14 cents per yuan, the exercise price is 15 cents per yuan, the risk-free interest rate in the United States is 3% per annum, the risk-free interest rate in China is 5% per annum, and the volatility of the yen is 10% per annum. Calculate vega of the financial institution’s position. Check the accuracy of your vega estimate by valuing the option at a volatility of 10% and 10.1% sequentially.
TS
7) A fund manager has a portfolio worth $55 million with a beta of 1.37. The manager is concerned about the performance of the market over the next five months and plans to use six-month futures contracts on the S&P 500 to hedge the risk. The current level of the index is 3,000, one contract is on 250 times the index, the risk-free rate is 5% per annum, and the dividend yield on the index is 3% per annum. The current 6-month futures price is 3,030. The fund manager takes a position in S&P 500 index futures to eliminate half of the exposure to the market over the next five months. Calculate the effect of your strategy on the fund manager’s returns if the level of the market in five months is 2,950 and one-month futures price is 1% higher than the index level in five months.

8) Suppose that zero interest rates with continuous compounding are as follows:

Maturity (months) Rate (% per annum) 3 6.0 6 6.2 9 6.4 12 6.5 15 6.6 18 6.7

Assume that a bank can borrow or lend at the rates above. What is the value of an FRA where it will earn 6.9% (per annum with quarterly compounding) for a three-month period starting in fifteen months on a principal of $1,500,000?

In: Finance