5. This problem illustrates an interesting variation of simple random sampling.
a. Open a blank spreadsheet and use the RAND() function to create a column of 1000 random numbers. Don’t freeze them. This is actually a simple random sample from the uniform distribution between 0 and 1. Use the COUNTIF function to count the number of values between 0 and 0.1, between 0.1 and 0.2, and so on. Each such interval should contain about 1/10 of all values. Do they? (Keep pressing the F9 key to see how the results change.)
b.Repeat part a, generating a second column of random numbers, but now generate the first 100 as uniform between 0 and 0.1, the next 100 as uniform between 0.1 and 0.2, and so on, up to 0.9 to 1. (Hint: For example, to create a random number uniformly distributed between 0.5 and 0.6, use the formula =0.5+0.1*RAND(). Do you see why?) Again, use COUNTIF to find the number of the 1000 values in each of the intervals, although there shouldn’t be any surprises this time. Why might this type of random sampling be preferable to the random sampling in part a? (Note: The sampling in part a is called Monte Carlo sampling, whereas the sampling in part b is basically Latin Hypercube sampling, the form of sampling we advocate in Chapters 15 and 16 on simulation.)
In: Statistics and Probability
• This assignment calls for generating a Binary Search Tree (BST) and scanning it in a preorder and a Breadth First Search (BFS) way.
• The program gets a parameter ? from the command line and stores ? randomly generated integers in a dynamic array. To generate a random integer between 1 and Max-Rand (a system constant):
▪ Use srand() to seed the rand() function. Then, call rand() again and again (? times) to generate ? random integers. Next, printout the values stored in the dynamic array.
• Next, the program stores the content of the array into a BST.
• Next, the program performs a preorder exploration of the BST and prints out the contents of the tree according to the pre-order exploration during visit.
• Finally, the program performs BFS on the BST and prints out the content of the tree according to the BFS visit order.
▪ You can use queue for the BFS.
In: Computer Science
1. ( six parts) Harmony is a South African mining company that sells gold globally. Gold is priced in dollars but South African miners are paid in rand (“rand” is the South African currency). The current price of gold is $1,288 an ounce. The current exchange rate is 8.62 rand (R) per $1. Harmony’s current costs are R10,930 per ounce. Expected one-year inflation rates are 2% in the U.S. and 8% in South Africa. [Note that the “ounces” in this case are like “BMW cars” in quiz 6, but the questions below are per ounce, or “per car”]
a) (3points) How much profit per ounce is Harmony currently generating (in rands)?
b) (3 points) What exchange rate does PPP predict in one year?
c) (3 points) What level of revenues in one year would maintain Harmony’s profitability in real (inflation-adjusted) terms?
d) (3 points) If in one year the actual exchange rate is R6.60 per $1, has the rand appreciated or depreciated against the dollar in nominal terms?
e) (3 points) Based on the exchange rate in d), what will be Harmony’s profit per ounce in one year?
f) (3 points) State whether Harmony benefits from an appreciation or depreciation of the dollar against the rand?
In: Finance
Please Just find some articles related to the RAND Health Insurance Experiment and then answer the following questions.
In: Nursing
FCAU will receive 1 million rand in six months. FCAU can hedge their exposure to the rand by buying rand in the forward market.
True or False?
In: Finance
Dana Rand owns a catering company that prepares banquets and parties for both individual and business functions throughout the year. Rand’s business is seasonal, with a heavy schedule during the summer months and the year-end holidays and a light schedule at other times. During peak periods, there are extra costs; however, even during nonpeak periods Rand must work more to cover her expenses.
One of the major events Rand’s customers request is a cocktail party. She offers a standard cocktail party and has developed the following cost structure on a per-person basis.
| Food and beverages | $ | 13.00 | |
| Labor (0.4 hr. @ $11 per hour) | 4.40 | ||
| Overhead (0.4 hr. @ $13 per hour) | 5.20 | ||
| Total cost per person | $ | 22.60 | |
When bidding on cocktail parties, Rand adds a 15 percent markup to
this cost structure as a profit margin. Rand is quite certain about
her estimates of the prime costs but is not as comfortable with the
overhead estimate. This estimate was based on the actual data for
the past 12 months presented in the following table. These data
indicate that overhead expenses vary with the direct-labor hours
expended. The $13 estimate was determined by dividing total
overhead expended for the 12 months ($782,000) by total labor hours
(58,500) and rounding to the nearest dollar.
| Month | Labor Hours |
Overhead Expenses |
||||
| January | 7,400 | $ | 86,000 | |||
| February | 5,200 | 87,000 | ||||
| March | 4,100 | 47,000 | ||||
| April | 4,900 | 60,000 | ||||
| May | 2,600 | 76,000 | ||||
| June | 7,100 | 46,000 | ||||
| July | 4,600 | 40,000 | ||||
| August | 3,800 | 67,000 | ||||
| September | 2,300 | 51,000 | ||||
| October | 5,300 | 52,000 | ||||
| November | 3,700 | 86,000 | ||||
| December | 7,500 | 84,000 | ||||
| Total | 58,500 | $ | 782,000 | |||
Rand recently attended a meeting of the local chamber of commerce and heard a business consultant discuss regression analysis and its business applications. After the meeting, Rand decided to do a regression analysis of the overhead data she had collected. The following results were obtained.
| Intercept (a) | 55,000 |
| Coefficient (b) | 2 |
Required:
Using data from the regression analysis, develop the following cost estimates per person for a cocktail party. Assume that the level of activity remains within the relevant range. a. variable cost per person? b. absorption (full) cost per person?
Dana Rand has been asked to prepare a bid for a 240-person cocktail party to be given next month. Determine the minimum bid price that Rand should be willing to submit. Minimum Bid Price?
What other factors should Dana Rand consider in developing the bid price for the cocktail party?
The chart below shows the correct answers for 4. in order.
|
In: Math
1. Create a color image of size 200 × 200. The image should have a blue background.
2. Create 100 yellow regions within the image that have a variable size. More specifically, their width should be an odd number and vary between 3 and 7 and their height should also be an odd number and vary between 3 and 7. For example, you may get rectangular regions of size 3 × 3, 3 × 5, 5 × 3, 5 × 5, 7 × 5, etc. These 100 yellow regions should be placed at random locations within the 200 × 200 image, but we should make sure that they do not overlap with each other. Important: These regions should be created by modifying the image pixels, and not as plots on top of the image. In other words, these regions should be part of the image.
3. Plot horizontal and vertical white lines on top of the image for every 40 pixel rows and every 40 pixel columns. Now, these white lines will not be part of the image, but an extra layer on top of the image. You may use hold on and hold off, and also plot to achieve this. Display the image with the yellow regions and the white lines in figure(1).
This is what i have for 1 and 2, which is working correctly
clear all;
close all;
clc;
im=zeros(200,200,3);%image
im(:,:,3)=1;
for i=1:100
while true;
w=2*round(1+2*rand(1,1))+1;
h=2*round(1+2*rand(1,1))+1;
x=round(1+(199-w)*rand(1,100));
y=round(1+(199-h).*rand(1,100));
x_dash=x+w;
y_dash=y+h;
if all(im(x:x_dash,y:y_dash,2)!=1)
im(x:x_dash,y:y_dash,3)=0;
im(x:x_dash,y:y_dash,1:2)=1;
break;
end
end
end
Need help with Part 3
In: Computer Science
Burlington Mills produces denim cloth that it sells to jeans manufacturers. It is negotiating a new contract to provide cloth on a weekly basis to BJ Jeans. The demand for cloth from BJ Jeans is expected to vary each week according the following discrete probability distribution:
Demand (yd)
0 0.05
100 0.15 200 0.40 300 0.30 400 0.10
Burlington’s plant capacity available for this new job will vary each week because of other commitments and occasional breakdowns. Burlington estimates that available capacity will vary from 100 to 500 yards and follow a Uniform probability distribution (see note below).
Simulate the performance of the Burlington plant for 20 weeks. You may manually write your results provided your work is clear, neat, and easy to read. Attach your simulation to the Managerial Report.
Using your simulation results, determine the following:
Average weekly demand for cloth from BJ Jeans.
Average weekly available capacity for this contract at the Burlington plant.
Number of weeks that demand exceeds available plant capacity. Based on this result, also
calculate the probability that demand will exceed available capacity.
Probability
Page 2 of 3
NOTE:
A Uniform probability distribution is one for which any value in a number interval is equally likely. In the Burlington example, then, available capacity will vary from 100 to 500 yards, with any value in this interval as probable as any other.
Since the calculator’s rand function returns a random real number from a Uniform distribution between 0.0 and 1.0, we can use it to model any Uniform distribution:
Low Value + rand*(High Value – Low Value)
For example, the weekly available capacity for the BJ Jeans contract varies uniformly from 100 to 500 yards. If in the simulation of some week, the rand function generates a value of 0.3486, then for that week the randomly selected available capacity will be:
100 + 0.3486*(500 – 100) = 239.44 yards
In: Statistics and Probability
A careless click on Facebook.... potential damaging private thoughts online … Riley calls the bride “a stuck up cow”…and his military career is derailed Why is it important that you should be careful about what you post on Facebook?
In: Operations Management
1.4 "the rand depreciated, on average, against the US dollar (from 13.90 to 14.90 rand per USD) during the period under review."
critically evaluate the possible impact of the depreciation of the Rand on the trade balance in South Africa.(10)
In: Economics