Questions
1. Please explain which rules of calculus lead from step 1 below to steps 2 and...

1. Please explain which rules of calculus lead from step 1 below to steps 2 and 3, and from step 3 to step 5:

Step 1: RSS = sum from i = 1 to n (yi - b0 - b1xi)^2

Step 2: deltaRSS/deltab0 = (- 2) sum from i = 1 to n (yi b0 - b1xi) = 0

Step 3: deltaRSS/deltab1 = (- 2) sum from i = 1 to n (xi(yi - b0 - b1xi)) = 0

Step 4: sum from i = 1 to n (yi) = b0n + b1 sum from i = 1 to n (xi) (normal equation 1)

Step 5: sum from i = 1 to n (xi yi) = b0 sum from i = 1 to n (xi) + b1 sum from i = 1 to n (xi^2) (normal equation 2)

In: Statistics and Probability

A B and C share profits in the ratio 2:3:5 in a partnership and have capital...

A B and C share profits in the ratio 2:3:5 in a partnership and have capital balance of $100000, 60000 and 40000 respectively prepare the journal entries necessary to admit D to the partnership under each of the following separete cases:

A. D buy 40% of A for 50000

B. D invests sufficient cash to receive a 20% interest

C. D invests $80000for a 1/4 interest. goodwill is to be rcorded

D. D invests 40000 for a 1/4 interest. The bonus method is to be used

E. D. invests 120000 for a 120,000 fir a 1/4 interest. the bonus method is to be used

In: Accounting

You have the following buffer recipe and decide to make up some concentrated solutions first so...

You have the following buffer recipe and decide to make up some concentrated solutions first so that you won't have to weigh out dry ingredients, wait for them to dissolve, and correct the pH every time you make it. How much dry ingredients do you use for each of the following 4 stock solutions? Show you work and include units in your calculations.

The Buffer Recipe is:

150 mM NaCl (formula weight 58.44 g)

10 mM Tris pH 8.0 (formula weight 121 g)

2 mM EDTA (formula weight 292 g)

0.2% bovine serum albumin

-Stock 1 of 4: 3 M NaCl, 100 mL ________ ?

-Stock 2 of 4: 1 M Tris, pH 8.0, 100 ml ________ ?

-Stock 3 of 4: 0.5 M EDTA, 500 mL ________ ?

-Stock 4 of 4: 10% bovine serum albumin, 10 mL ________ ?

In: Biology

This activity has the purpose of assessing the students knowledge how to make a time series...

This activity has the purpose of assessing the students knowledge how to make a time series forecast using quantitative models.

1. The following data represents the average “delivery speed” to fulfill customer’s orders in a hypothetical organization. In period 10, changes were made on the fulfillment process, as a result of an improvement Six Sigma initiative.

Period 1 2 3 4 5 6 7 8 9 10
Delivery Speed (Days) 5 6 8 4 6 7 6 6 7 8
Period 11 12 13 14 15 16 17 18 19 20
Delivery Speed (Days) 6 4 5 6 5 4 8 4 7 4

2.Explain if the change made in Period 10 was sound. 3. What is your forecast of delivery-speed in Period 21. You have to choose a model (consider at least three models and using the MAD explain which is the best.)

In: Operations Management

Assume that a firm that manufactures widgets can produce them with one of the three processes,...

Assume that a firm that manufactures widgets can produce them with one of the three processes, used alone or in combination. The following table indicates the amounts of capital and labor required by each of the three processes to produce one widget.

Units of Labor Units of Capital
Process 1 1 4
Process 2 2 2
Process 3 4 1

a) Assume capital costs $5 per unit and labor costs $15 per unit. Which process will be employed?

b) Determine the variable costs for quantities 10, 30, and 50 for each process.

c) For each of three output levels, how much capital and labor will be demanded?

d) Repeat numbers 1 and 3 assuming the price of capital is $10 and the price of labor is $8 per unit.

e) Explain how you can use numbers 1 and 3 of this problem to explain the impact of organized labor asking for a wage increase.

In: Economics

(LO 2, 3) The Blue Thumb Lawn Care Company began operations on April 1. At April...

(LO 2, 3) The Blue Thumb Lawn Care Company began operations on April 1. At April 30, the trial balance shows the following balances for selected accounts.
Prepaid Insurance 3,600
Equipment 28,000
Notes Payable 20,000
Unearned Service Revenue 4,200
Service Revenue 1,800
Analysis reveals the following additional data.
1.Prepaid insurance is the cost of a 2-year insurance policy, effective April 1.
2.Depreciation on the equipment is $500 per month.
3.The note payable is dated April 1. It is for 1-year at 12% interest rate.
4. $700 of the unearned service revenue was earned in April.
5.Lawn services performed for other customers but not recorded at April 30 totalled $1,500.

Instructions

Prepare the adjusting entries for the month of April. Show computations.
The entry date for all transactions is 4/30
GENERAL JOURNAL
Date Account Name Debit Credit
0 0

In: Accounting

TO BE DONE IN C LANGUAGE BEFORE READING THE QUESTION PLEASE NOTE THAT YOUR FUNCTION SHOULD...

TO BE DONE IN C LANGUAGE

BEFORE READING THE QUESTION PLEASE NOTE THAT YOUR FUNCTION SHOULD EXACTLY PRODUCE THE GIVEN OUTPUT AND THE TIME COMPLEXITY SHOULD BE O(N^2)

YOU NEED TO KNOW ABOUT COCKTAIL SHAKER SORT ALGORITHM:

Cocktail-shaker sort is a modification of Bubble sort. Cocktail-shaker sort traverses the data structure in one direction, pushing the largest element ahead towards one end of the data structure, and then in the opposite direction, pushing the smallest element towards the other end, until all elements are sorted.

Implement cocktailshaker_sort that sorts the array data with length data_len. It also prints out data right at the beginning, i.e., before any sorting has occurred, and every time one element has reached its correct location SEE SAMPLE OUTPUT! (this means likely after moving one element all the way up or down respectively).

DO NOT CHANGE THE PARAMETER NAMES

TIME COMPLEXITY: O(N^2) , SEE THE GIVEN OUTPUT!

void cocktailshaker_sort(int *data, const int data_len) {
// your implementation goes here
}

INPUT:

1 10 8 20 5 4

OUTPUT:

[1, 10, 8, 20, 5, 4]
[1, 8, 10, 5, 4, 20]
[1, 4, 8, 10, 5, 20]
[1, 4, 8, 5, 10, 20]
[1, 4, 5, 8, 10, 20]

PLEASE MAKE SURE TO IMPLEMENT IN A WAY SO THAT THE DESIRED OUTPUT IS PRINTED

In: Computer Science

Using JavaScript You must submit a file, called indentation.js indentation.js: program to indent The following program...

Using JavaScript

You must submit a file, called indentation.js

indentation.js: program to indent


The following program is difficult to follow because of its indentation:


print ( "binary");
var n = Math.pow (2, 31) - 1;
var bits = 0;
while (n> 0) {
bits + = n & 1;
n >> = 1;
}
print ("Number of bits at 1:" + bits);
for (var i = 1; i <= bits; i ++) {
var str = "";
if (i% 3 == 0) {str + = "Fizz";}
if (i% 5 == 0) {str + = "Buzz";}
if (i% 3! = 0) if (i% 5! = 0)
str + = i;
print (str);
}
var x = 2;
var y = 4;
var z = 4;
for (var i = 0; i <x; i ++) {
for (var j = 0; j <y; j ++) {str = ""; for (var k = 0; k <z; k ++) {
str + = j == k? 'x': '';
}
print (str);} if (i <x - 1) print ("");


You must make the program above more readable by indenting each line correctly.

Remember that:

* The content of a conditional structure (for, if, while, ...) should be indented by one more level (4 spaces or a tab)

* There should be only one statement per line (and we do not put a "}" on the same line as an instruction)

* Nested structures require to indent more deeply the code:

// Code excluding conditional structures
print ( "test");

if (condition) {
    // Everything in this if should be indented by 4 spaces
    print ( "Hello");
    while (condition) {
        // Everything in this while is already indented
        // of 4 spaces and is indented by 4 other spaces = 8 spaces
        print ( "...");
    }
}

In: Computer Science

In python import numpy as np Given the array b = np.arange(-6, 4) compute and print...

In python

import numpy as np

Given the array b = np.arange(-6, 4) compute and print

1.) The array formed by \(bi^2 - 1\), where the \(bi\) are the elements of the array b.

2.) The array formed by multiplying b with the scalar 100.

3.)The array formed by 2.0 b i in reverse order. (Note: the base 2.0 must be a floating point number; for integer values a ValueError: Integers to negative integer powers are not allowed. is raised.)

4.) The array delta of length len(b)-1 that contains the differences between subsequence entries of \(bi^3\), namely \(\deltai = b{i+1}^3 - bi^3 \) with 0 ≤ i < N − 1 where N is the length of b. Print both delta.shape and delta.

In: Computer Science

What is the output of the StackQueueMystery algorithm (below) when we have enqueued 1, 2, 5,...

What is the output of the StackQueueMystery algorithm (below) when we have enqueued 1, 2, 5, 6, 3, 7, 4, 10, 8, 9 on q and pushed 8, 6, 9, 7, 10, 5, 4, 3, 2, 1 on stk (in that order) before calling this algorithm. Show your work.

StackQueueMystery:

Input: stk: stack with integers 1-n

Input: q: queue with integers 1-n

Input: n: size and range of stk and q

Pseudocode:

count = 0

while stk and q are not empty:

{

    x = x0 = stk.pop()

    y = y0 = q.dequeue()

    while x != y0 and stk is not empty

        x = stk.pop()

    while y != x0 and q is not empty

        y = q.dequeue()

    count = count + 1

}

return count

In: Computer Science