Questions
Consider a Cournot duopoly with the following inverse demand function:p(Q) =a−Q where p is the price...

Consider a Cournot duopoly with the following inverse demand function:p(Q) =a−Q where p is the price of the product and Q is the total amount of goods exchanged in the market. The total costs areC(q1) = 300q1, C(q2) = 300q2 for firm 1 and firm 2, respectively. But the demand is uncertain (i.e., a new product may be introduced soon which will decrease the demand drastically). Firm 1 learns whether demand will be high (a =1800) or small (a=900) before it makes its quantity decision. However, firm 2 knows just the probability of high demand (1/4) and the probability of low demand (3/4). All of this is common knowledge. In particular, firm 2 knows that firm 1 knows the demand for certain. The two firms simultaneously choose quantity. What is the Bayesian equilibrium of the game (price in both states of the world and quantity produced by each firm)?

In: Economics

The data below represent scores from three different therapies used to treat depressive symptoms. Scores represent...

The data below represent scores from three different therapies used to treat depressive symptoms. Scores represent depressive symptoms on a scale of 1-10, with higher scores indicating greater depressive symptoms.

Treatment 1

Treatment 2

Treatment 3

0

1

4

0

4

3

G = 24

0

1

6

ΣX2 = 92

2      

0       

3      

_______

T1 = 2

T2 = 6

T3 = 16

SS1 = 3

SS2 = 9

SS3 = 6

a.   SST is what?
b.   SSW is what?
c.   SSB is what?
d    dfT is what?
e.   dfW is what?
f.   dfB is what?
g.   MSB is what?
h.   MSW is what?
i.   F is what?
j.   η2 is what?
k.   Statistically significant?
l.   Tukey HSD critical value is what?
m. APA Conclusion?

In: Statistics and Probability

PleaSe write a GENERATOR function in Python: how to write it with yield ? XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Thanks...

PleaSe write a GENERATOR function in Python: how to write it with yield ?

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks in advance

Write /the/ generator /function/ genAccum(seq, fn), which takes in an iterable and a function fn and yields each accumulated value from applying fn to the running total and the next element. (Note: to convert an iterable into an iterator you use iter(iterable))

'''
>>> add = lambda x, y: x + y
>>> mul = lambda x, y: x * y
>>> list(genAccum([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], add))
[1, 3, 6, 10, 15, 21, 28, 36, 45, 55]
>>> list(genAccum([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], mul))
[1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800]
'''

In: Computer Science

1- Given following data structure of Single linked list :           class ListNode                     &n

1- Given following data structure of Single linked list :

          class ListNode                        

           { int item ;                             

             ListNode next ;                        

             ….

           }

Choose the correct answer :                                                           

  1. Suppose reference refers to a node in a List (using the ListNode ) . What statement changes reference so that it refers to the next node?

                       1-      reference++ ;

2-    reference = next ;

3-    reference+= next ;

  1. reference = reference.next ;
  1. Suppose p refers to a node in a List (using the ListNode ) . What boolean expression will be true when p refers to the last node of the List?

1-   (p == null)

2- (p.next == null)

  1. (p.item == null)

4- (p.item == 0)

      5- None of the above.

  1. Which boolean expression indicates whether the items in two nodes (n and m) are the same. Assume that neither n nor m is null.

1-   n == m

2-   n.item == m.item

  1. n.next == m.next

4- None of the above

In: Computer Science

On January 2, Year 1, the ABC Inc. a private-held company whose fiscal year end is...

On January 2, Year 1, the ABC Inc. a private-held company whose fiscal year end is December 31, issued $2,200,000, five-year, 12% of bonds, dated January 2, Year 1. The bonds provided for semiannual interest payments to be made on June 30 and December 31 of each year. The bond comes with a call option which allows ABC to call back at 102 after one year. The bonds were issued when the market interest rate was 8%.

● ABC uses the effective interest method for amortizing bond discounts and premiums.

● The company called the bonds at 102 on June 30, Year 2.

Present Value Factors

PV of $1 at 12% for 5 periods                                                          0.5674

PV of $1 at 6% for 10 periods                                                          0.5584

PV of $1 at 4% for 10 Periods                                                          0.6756

PV of an annuity of $1 at 12% for 5 periods                                     3.6048

PV of an annuity of $1 at 6% for 10 periods                                     7.3601

PV of an annuity of $1 at 4% for 10 periods                                     8.1109

Required:

Please prepare the bond amortization table for the original ABC bond which issued 1/2/Year 1.

Please calculate the gain or loss on the early retirement of the bond.

In: Accounting

There are N different models of mobiles manufactured at a mobile manufacturing unit. Each mobile must...

There are N different models of mobiles manufactured at a mobile manufacturing unit. Each
mobile must go through 2 major phases: ‘parts manufacturing’ and ‘assembling’. Obviously,
‘parts manufacturing’ must happen before “assembling’. The time for ‘parts manufacturing’
and ‘assembling’ (pmi and ai for ith mobile) for every mobile may be different. If we have only
1 unit for ‘parts manufacturing’ and 1 unit for ‘assembling’, how should we produce n mobiles
in a suitable order such that the total production time is minimized?

Requirements:
1. Write a Greedy Algorithm to select the mobile ‘parts manufacturing’ and ‘assembling’
in such a way that total production time is minimized.
2. Analyse the time complexity of your algorithm.
3. Implement the above problem statement using Python.
Input:
For example, now there are 6 different Mobiles in total. Time for each mobile ‘parts
manufacturing’ and ‘assembling’ are given as shown:

Mobile i pmi (minutes) ai (minutes)
1 5 7
2 1 2
3 8 2
4 5 4
5 pm5 a5
6 pm6 a6


Sample Output: (Vary based on your input)
Mobiles should be produced in the order: 2, 5, 6, 1, 4, 3.
Total production time for all mobiles is: 28
Idle Time of Assembly unit: 2

Question:

Which algorithmnto use?

Whats time complexity?

How to calculate Total production time for all mobiles, Idle Time of Assembly unit?

Note: You can assume any value for pm5, a6 etc. Output value shown above is just example.

In: Computer Science

Consider the table given below for a fixed memory allocation scheme: Given the jobs list information...

Consider the table given below for a fixed memory allocation scheme:

Given the jobs list information and memory information in the table below, answer the questions that follow:

Job Number

Memory Requested

                       

Memory Block

Memory Block Size

Job 1

600

Block 1

1200

Job 2

920

Block 2

300

Job 3

1100

Block 3

930

Job 4

700

Block 4

950

           

(Assume all jobs are in a waiting queue in the order given, also assume that the memory blocks are in the given order)                                                               

Choose from the options below the correct illustration/diagram that represents the Next-fit algorithm when the jobs are assigned in the main memory.     [4]  

     

In: Computer Science

A cost accountant has derived the following data on the weekly output of standard size boxes...

A cost accountant has derived the following data on the weekly output of standard size boxes from a factory.

Week Output (thousands) Total cost (thousand dollars)
1

20

60
2 2 25
3 4 26
4 23 66
5 18 49
6 14 48
7 10 35
8 8 18
9 13 40


(a) Determine the regression equation from which we can predict the total cost in terms of the weekly production. (4%)

(b) In the following week it is planned to produce 15,000 standard size boxes. Estimate the total cost of producing this quantity. (1%)

(c) Compute the linear correlation coefficient. Interpret the result.

In: Finance

Dalia Wahebi sells one type of machine, a mini-blender. She provides the following information for May...

Dalia Wahebi sells one type of machine, a mini-blender. She provides the following information for May 2018.

Dalia held 2 mini-blenders in inventory at 1 May 2018. They cost $1,200 each

Date

Purchases

Date

Sales

1 May

3 @ $1,250

2 May

4 @ $2,900

7 May

4 @ $1,300

17 May

4 @ $3,000

21 May

8 @ $1,450

24 May

7 @ $3,000

Dalia wants to know the value of closing inventory and also her Gross Profit for the month of May 2018.

REQUIRED

(a)    Calculate the value of the closing inventory using FIFO and AVCO.

(b)   Calculate the Gross Profit for the month of May 2018.

In: Accounting

The samples below give the readings for volume of a precious liquid in ml in an...

The samples below give the readings for volume of a precious liquid in ml in an industrial chemical manufacturing plant.Determine if the process of manufacturing is in control.

sample 1 2 3 4 5
1 4.03 4.02 4.13 4.03 4.04
2 4.07 4.03 4.30 4.02 4.05
3 4.09 4.07 4.07 4.00 4.05
4 4.08 4.50 4.08 4.06 4.05
5 4.06 4.07 4.05 4.10 4.05
6 4.06 4.01 3.23 4.02 4.04
7 4.08 4.01 4 4.24 4.05
8 4.04 3 4.09 4.07 4.1
9 4.07 4.01 4.07 4.13 3.30
10 4.07 4.02 4.06 4.06 4.02

In: Operations Management