A game is to be played by first flipping a fair coin, and then drawing balls without replacement from a bin. If you flip heads you get to draw one ball, and if you flip tails you get two draw two balls. The bin contains 7 red balls, and 4 white balls. Let W = 4x - 2 be your win amount, where X represents the number of white balls drawn. What is your expected win amount on any given play?
In: Math
|
178 |
30 |
91 |
44 |
35 |
61 |
56 |
46 |
20 |
32 |
41 |
38 |
36 |
15 |
25 |
31 |
30 |
19 |
19 |
19 |
24 |
16 |
15 |
15 |
19 |
|
122 |
28 |
28 |
20 |
27 |
29 |
16 |
16 |
19 |
15 |
25 |
25 |
18 |
14 |
15 |
24 |
23 |
17 |
17 |
22 |
22 |
21 |
20 |
17 |
20 |
In: Statistics and Probability
PART I
Demand and supply of office visits with cardiologists in Fairfax (market period: 1 week)
Assume no insurance
Price Demand Supply
140 1000 1375
130 1100 1350
120 1200 1325
110 1300 1300
100 1400 1275
90 1500 1250
80 1600 1225
70 1700 1200
60 1800 1175
50 1900 1150
3. What was the percentage increase in the price of cardiology office visits over this five year period? Show your work
4. What was the percentage increase in the quantity of office visits? Show your work
5. Based on the demand schedule shown above (D1), calculate the Price Elasticity of Demand between a price per office visit of $80 and $90. Use the midpoint formula as shown in class or the arc elasticity formula as shown in the textbook. Show your work.
6. Based on your answer in #4, would you expect prices to trend upwards or downwards between a price of $80 and $90 if individual doctors have some control over setting their own prices. Explain in brief.
7. Based on the demand schedule shown above, calculate the Price Elasticity of Demand between a price per office visit of $120 and $130. Show your work.
8. In one sentence describe what your answer means. Be specific. (imagine that you have to describe it to someone who does not know economics)
9. Why is there a different elasticity coefficient at a higher price compared to the lower price, even though the demand curve is a straight line? (Think about how we calculate elasticity).
10. If the price elasticity of demand for milk is 3.2 between a price of $3.00 and $3.50, and if consumers are now buying 1000 gallons per day at a price of $3.25, how many gallons of milk will be bought per day if the price goes down to $3.00?
In: Economics
a) $200,000 U.S. Treasury 7 7/8% bond maturing in 2002 purchased and then settled on October 23, 1992, at a dollar price of 105-20 (this is the clean price) with a yield to maturity of 7.083% with the bond originally being issued at 11/15/1977. Face value per unit is $1,000.
i) Calculate the clean price of the bond issue
ii) Calculate the accrued interest of the bond issue
iii) Calculate the full price of the bond issue
b) $200,000 U.S. Treasury 7 7/8% bond maturing in 2002 purchased and then settled on October 23, 1992, at a dollar price (clean price) with a yield to maturity of 7.083% with the bond originally being issued at 11/15/1977. Calculate the full price (per unit of the bond). Note: On a per unit basis, the answers to(a)and(b)should be the same.Anydifferencemustbe due to rounding error only.
In: Finance
a) $200,000 U.S. Treasury 7 7/8% bond maturing in 2002 purchased and then settled on October 23, 1992, at a dollar price of 105-20 (this is the clean price) with a yield to maturity of 7.083% with the bond originally being issued at 11/15/1977. Face value per unit is $1,000.
i) Calculate the clean price of the bond issue
ii) Calculate the accrued interest of the bond issue
iii) Calculate the full price of the bond issue
b) $200,000 U.S. Treasury 7 7/8% bond maturing in 2002 purchased and then settled on October 23, 1992, at a dollar price (clean price) with a yield to maturity of 7.083% with the bond originally being issued at 11/15/1977.
Calculate the full price (per unit of the bond).
Note: On a per unit basis, the answers to(a)and(b)should be the same.Anydifferencemustbe due to rounding error only.
In: Finance
a) $200,000 U.S. Treasury 7 7/8% bond maturing in 2002 purchased and then settled on October 23, 1992, at a dollar price of 105-20 (this is the clean price) with a yield to maturity of 7.083% with the bond originally being issued at 11/15/1977. Face value per unit is $1,000.
i) Calculate the clean price of the bond issue
ii) Calculate the accrued interest of the bond issue
iii) Calculate the full price of the bond issue
b) $200,000 U.S. Treasury 7 7/8% bond maturing in 2002 purchased and then settled on October 23, 1992, at a dollar price (clean price) with a yield to maturity of 7.083% with the bond originally being issued at 11/15/1977. Calculate the full price (per unit of the bond). Note: On a per unit basis, the answers to(a)and(b)should be the same.Anydifferencemustbe due to rounding error only.
In: Finance
A = [4, 5, 9]
B = [-4, 5, -7]
C = [2, -7, -8, 5]
D = [1, -9, 5, -3]
E = [3, 3, -1]
Uz = 1/|z| ^z
d(X,Y) = (Rθ) d = diameter R = Radius θ = Theta
Find
a. Uc
b. d (D, C)
c. Let P = B + 3E, UP =
d. A x B
e. 3B x E
f. C x D
In: Advanced Math
For your first project, write a C program (not a C++ program!)that will read in a given list of non-negative integers and a target integer and checks if there exist two integers in the list that sum up to the target integer.
Example:List: 31, 5, 8, 28, 15, 21, 11, 2
Target: 26 Yes!, 44 No!
your C program will contain the following:
•Write a function that will make a copy of the values from one array to another array.
Suggested prototype: void makeArrayCopy (int fromArray[], int toArray[], int size);
•Write your own function that will sort an array in ascending order. You may use whatever sorting algorithm you wish. Suggested prototype: void myFavoriteSort (int arr[], int size);
•Write your own function that will find whether there exist two integers that sum to the target integer. The function is to “return” three values. First, return “1” if the integers were found, return “-1” if your search was not successful. If you find two integers which add up to the target value, you should return their respective index position inside the array. Suggested prototype:int TwoSumFunction(int arr[], int size, int target, int*index1, int* index2);
inside TwoSumFunction:
•Pass the sorted array to the function. Set two pointers at the beginning and the end of the array, then start moving the pointers inward while checking their sum. If it’s exactly the “target”, then we are done, and you can return 1. If it exceeds the “target” value, then any sum using the larger element is too large, so move the pointer corresponding to that element inward. If the sum is less than “target” value, then any sum using the lower element is too small, so move the pointer corresponding to that element inwards. If you are done with scanning the array and cannot find any two elements that sum up to “target” value, return -1.
Inside of main:
•Read in integer input from standard input and store these values into a dynamic array. This array is to grow in size if the array is full. The values will have a “terminal value” of -999. So, you read in these values in a loop that stops when the value of -999 is read in. The use of informative prompts is required for full credit. You may not assume how many numeric values are given on each line, nor the total number of values contained in the input. The use of a scanf() with the following form is expected to read in the values:scanf (“%d”,&val);
•make a copy of the integer array using the array copy() function described above
•sort the copy array(using the myFavoriteSort() function described above)
•read in integer input from standard input (again, the use of scanf() is expected) and for each of the values read in perform the TwoSum evaluation. Using the information returned/sent back from the search functions, print out from main():
1.The target value,
2.Whether the Two Sum evaluation was successful or not
3.Locations of the elements in the array which make up the sum.
The above information MAY NOT be printed out in TwoSum Function. The function MUST RETURN/SEND BACK the information to be printed by the main function. Not doing this will SEVERELY LOWER your score on this project. Repeat reading in integer values and searching the array until the terminal value of -999 is read in. The use of informative prompts AND descriptive result output is required for full credit. Again, scanf() is expected to read the input.
You may not assume the input will be less than any set size. Thus you will need to dynamically allocate space for the array.
Dynamic Array Allocation:
Dynamic Array Allocation allows the space in an array to change during the course of the execution of a program. In C, this requires the use of the malloc() function. To dynamically allocate space for 100 integers,the malloc() code would be as follows:
int *darr;
int allocated= 100;
darr = (int *) malloc (allocated* sizeof(int) );
This array can only hold 100 integers and is not really dynamic. To make it truly dynamic, we need to grow the array when we try to put more values into it than can be held by its current size. The following code will double the size of the array.
int *temp= darr;
darr= (int *) malloc ( allocated* 2 * sizeof(int) );
int i;
for ( i = 0 ; i < allocated; i++)
darr[i] = temp[i];
free (temp);
allocated = allocated* 2;
Make sure your program runs properly when compiled using gcc on the bert.cs.uic.edu machine!(Do not use g++ or any other C++ compiler with this program.)
project base:
#include <stdio.h>
int main (int argc, char** argv)
{
int val;
/* prompt the user for input */
printf ("Enter in a list of numbers ito be stored in a dynamic array.\n");
printf ("End the list with the terminal value of -999\n");
/* loop until the user enters -999 */
scanf ("%d", &val);
while (val != -999)
{
/* store the value into an array */
/* get next value */
scanf("%d", &val);
}
/* call function to make a copy of the array of values */
/* call function to sort one of the arrays */
/* loop until the user enters -999 */
printf ("Enter in a list of numbers to use for searching. \n");
printf ("End the list with a terminal value of -999\n");
scanf ("%d", &val);
while (val != -999)
{
/* call function to perform target sum operation */
/* print out info about the target sum results */
/* get next value */
scanf("%d", &val);
}
printf ("Good bye\n");
return 0;
} In: Computer Science
he managers of a brokerage firm are interested in finding out if the number of new clients a broker brings into the firm affects the sales generated by the broker. For the last year, the managers sampled 16 brokers and determined the number of new clients they enrolled during that year and their sales amounts in millions of dollars for that year. This data is presented in the table that follows. In your answers, sales should be left as a decimal as in the data table. It is not necessary to multiply by one million dollars. Perform a simple linear regression analysis of this data and answer the following questions. Suggestion: Read all of the questions before doing any analysis. Broker New Clients Sales 1 27 5.32 2 11 3.44 3 42 7.96 4 33 6.62 5 15 4.06 6 15 3.16 7 25 4.9 8 36 6.84 9 28 5.8 10 30 5.84 11 17 3.56 12 22 4.58 13 18 3.7 14 24 5.34 15 35 6.9 16 40 7.56
A. Prepare a plot of the residuals. Does this data meet the equal variance assumption? Explain.
B.Prepare a scatter diagram of this data. The trend line does not need to be on this scatter diagram. Does this data appear to have a linear pattern? Explain.
In: Statistics and Probability
Air pollution control specialists in southern California monitor the amount of ozone, carbon dioxide, and nitrogen dioxide in the air on an hourly basis. The hourly time series data exhibit seasonality, with the levels of pollutants showing similar patterns over the hours in the day. On July 15,16 and 17, the observed level of nitrogen dioxide in a city�s downtown area for the 12 hours from 6:00 A.M. to 6:00 P.M. were as follows. 15-July 25, 28, 35, 50, 60, 60, 40, 35, 30, 25, 25, 20 16-July 28, 30, 35, 48, 60, 65, 50, 40, 35, 25, 20, 20 17-July 35, 42, 45, 70, 72, 75, 60, 45, 40, 25, 25, 25 a. Construct a time series plot. What type of pattern exists in the data? b. Use a multiple linear regression model with dummy variables as follows to develop an equation to account for seasonal effects in the data: Hour 1 = 1 if the reading was made between 6 am and 7 am; 0 otherwise Hour 2 = 1 if the reading was made between 7 am and 8 am; 0 otherwise Hour 3 = 1 if the reading was made between 8 am and 9 am; 0 otherwise Hour 4 = 1 if the reading was made between 9 am and 10 am; 0 otherwise continue this pattern until Hour 11 = 1 if the reading was made between 4 pm and 5 pm' 0 otherwise Note that when the values of the 11 dummy variables are equal to 0, the observation corresponds to the 5 pm to 6 pm hour. c. using the equation developed in part (b), compute estimates of the levels of nitrogen dioxide for July 18 d. Let t = 1 to refer to the observation in hour 1 on July 15; t = 2 to refer to the observation in hour 2 of July 15 ..., and t = 36 to refer to the observation in hour 12 of July 17. using dummy variables devined in part (b) and t, develop an equation to account for seasonal effects and any linear trend in the time series. Based upon the seasonal effects in the data and linear trend, compute estimates of the levels of nitrogen dioxide for July 18 I only need the answer for part D. This is my 3rd time submitting for the same answer. Thanks.
In: Math