Decide on the two grocery stores to use in this activity
Decide on the 15 products you want to compare.
The brand name, product, and size have to be exactly the same at each store. Therefore, do not compare generic brands as they have different names at different stores.
You may have to wait until your visit to the first store to determine the “size” as you may not be aware of the different size packages for different products.
Use a variety of products to get a good representation of all items at the stores.
At each store, record the price of each product on your list. (A question always comes up whether to use a sales prices or a club card price. You should use the price of the item that you’d pay on the particular day you visit the store.)
If you didn’t record the prices in an electronic spreadsheet (such as an Excel spreadsheet) at each store, do so after you collect all your data.
Questions to answer after collecting your data
The question of interest is, “Are the items at one of the two grocery stores in your study more expensive, on average, than the other store?”
Answer these questions to answer the question of interest. (R tutorial 2 may be helpful in answering some of these questions.)
1. (1 point) Give the two stores you are comparing and a personal motivation on why you chose those two stores.
2. (2 points) Give a brief summary of how you chose the 15 items you used in the study. Do you feel these items are representative of all items at the store? (In other words, do you feel that you’ll be able to answer the question of interest based the items in your sample?) Why or why not?
3. (3 points) What method of inference you used and why? (Include a check of the conditions to use that particular method. If you use a graph to assess any condition, include the graph) (Hint: think about the samples you took – are the samples independent or dependent?)
4. (3 points) State the null and alternative hypotheses in statistical notation. Define any parameters used.
5. (2 points) Obtain and include an appropriate graphical display that will allow you to make an initial guess as to whether you feel the null hypothesis will be rejected or not. (Hint: think about what method you will be using to perform the hypothesis test.) Comment on whether or not you feel the null hypothesis will be rejected and why or why not.
6. (1 point) Perform the analysis in R. Report the test-statistic (with degrees of freedom) and p-value.
7. (3 points) State a conclusion in the context of the problem that answers the question of interest supported with the p-value obtained in #6.
8. (3 points) Use R to construct a 95% confidence interval for the average difference in prices between the two stores. Include and interpret the confidence interval in the context of the problem. (3 pts)
9. (2 points) Which store would you shop at? Why?
10. (2 points) Provide a copy of your data.
DATA:
Vons:
Almond Milk 3.49
Strawberry pop tarts 2.59
1 lb Bananas .69
Head lettuce 1.69
Pace Salsa 3.39
Ball park beef franks 4.49
Ball park buns 2.49
Kraft American Cheese 5.99
Crest toothpaste 4.00
Strawberries 3.50
Special K 4.99
Hidden Valley Ranch 3.99
Core Water 1.99
Jif Peanut Butter 3.09
Egglands best 3.99
Smiths:
Almond Milk 3.19
Strawberry pop tarts 2.29
1 lb Bananas .59
Pace Salsa 3.29
Head lettuce .99
Ball Park Beef Franks 4.99
Ball Park Buns 2.99
Kraft American Cheese 3.19
Crest toothpaste 2.99
Strawberries 2.50
Special K 2.49
Core Water 1.50
Jif Peanut Butter 2.79
Hidden Valley Ranch 3.29
Egglands Best 2.89
In: Statistics and Probability
For this coding exercise, you need to create a new Java project in Eclipse and finish all the coding in Eclipse. Run and debug your Eclipse project to make sure it works. Then you can just copy and paste the java source code of each file from Eclipse into the answer area of the corresponding box below.
The boxes will expand once you paste your code into them, so don’t worry about how it looks J
All data members are private and all methods are public in each class/interface in the exercise below.
Creare a class named CreditCard, which has three private data members:
Provide:
There are two effector methods:
/** CreditCard.java */
Code a subclass named ExpressCard that inherits from the superclass CreditCard, which has two private data members:
Provide:
There are two effector methods:
/** ExpressCard.java */
Code a subclass named PremiumCard that inherits from the superclass CreditCard, which has two private data members:
Provide:
There are two effector methods:
/** PremiumCard.java */
Code a class named JohnDoeTest that has a main method. Replace JohnDoe with your name.
In the main method, create two objects:
When creating these two objects, you need to use the constructor that has all parameters in each class, and you need to hardcode reasonable values for the parameters needed by the constructor in each class. (There is no need to ask user to input data - so don’t include the Scanner class!).
Then in the main method, use each object created above to invoke the necessary methods, so that you can calculate each object’s transaction fee and mileage award, then output the transaction fee and mileage award.
Keep 2-digit precision in the output for transaction fee, and keep 1-digit precision in output for mileage award.
/** JohnDoeTest.java, and replace JohnDoe with your name*/
In: Computer Science
Please explain the steps to calculate the answer. thx!
1. Your investment has a 10% chance of earning a 30% rate of return, a 50% chance of earning a 10% rate of return and a 40% chance of losing 6%. What is your expected return on this investment?
2. Consider a T-bill with a rate of return of 5 percent and the
following risky securities:
Security A: E(r) = 0.15; Variance = 0.04
Security B: E(r) = 0.10; Variance = 0.0225
Security C: E(r) = 0.12; Variance = 0.01
Security D: E(r) = 0.13; Variance = 0.0625
From which set of portfolios, formed with the T-bill and any one of
the 4 risky securities, would a risk-averse investor always choose
his portfolio?
3. You are considering investing $1,000 in a complete portfolio. The complete portfolio is composed of treasury bills that pay 5% and a risky portfolio, P, constructed with 2 risky securities X and Y. The optimal weights of X and Y in P are 60% and 40% respectively. X has an expected rate of return of 14% and Y has an expected rate of return of 12%. To form a complete portfolio with an expected rate of return of 11%, you should invest __________ of your complete portfolio in treasury bills.
4. Which of the following correlations coefficients will produce the least diversification benefit?
|
-0.6 |
||
|
-0.3 |
||
|
0.5 |
||
|
0.00 |
5.
The standard deviation of a portfolio consisting of 30% of Stock X and 70% of Stock Y is:
| Stock | Expected Return | Standard Deviation | Correlation Coefficient |
| X | 5% | 20% | 0.4 |
| Y | 10% | 25% |
6. Stocks A and B have the following returns in each of the states given below:
| Good | Bad | Ugly | |
| Stock A return | 10% | -1% | -10% |
| Stock B return | 2% | 0% | -3% |
The probability of the good state is 0.4, the probability of the bad state is 0.3 and the probability of the ugly state is 0.3. What is the covariance between the returns of A and B?
7. Assume that you manage a risky portfolio with an expected rate of return of 15% and a standard deviation of 30%. The T-bill rate is 10%. Suppose that you have a client that prefers to invest in your risky portfolio a proportion (y) of his total investment budget so that his overall portfolio will have an expected rate of return of 15%. What is the investment proportion y?
In: Finance
I am trying to make a Risk Management tool in Python. I have it partially started. The scenario is that the Project Manager needs to be able to log on and enter information ( the required information is located in the code). I then need to capture that data and store it in an array with the ability to call back and make changes if necessary. Could you please help me out and explain what was done?
Current code:
Start of Code:
import os
import numpy
# Clear Screen
clear = lambda: os.system ('cls')
while True:
# Clear Screen
clear()
# Username and Password input from user
username = input("Enter Username: ")
Password = input("Enter Password: ")
# Checks user input against known users
if username == "Teague" and Password == "Pre$c0tt966":
break
if username == "David" and Password == "W0lvert0n354":
break
if username == "Seth" and Password == "D0ugl@s537":
break
if username == "Mike" and Password == "Tunber&156":
break
if username == "Kim" and Password == "Hu&nh565":
break
# Clear Screen
clear()
print ("Login Succesful!")
while True:
menu = input("Press 'p' for project setup: ")
name = ['-']
date = ['-']
risk = ['-']
likelihood = ['-']
consequences = [0.0]
percentage = [0.0]
riskstate = [0.0]
x = 0
if menu == 'p':
clear()
while True:
name[x] = input("Enter Project Name: ")
date[x] = input("Enter Project Date: ")
risk[x] = input("Enter Risk Name:")
likelihood[x] = input("Enter Likelihood of Risk (A-E): ")
if likelihood == "A":
likelihood = 0.1
if likelihood == "B":
percentage = 0.3
if likelihood == "C":
percentage = 0.5
if likelihood == "D":
percentage = 0.7
if likelihood == "E":
percentage = 0.9
consequences[x] = input("Enter Consequence Level (1-5): ")
riskstate[x] = percentage * consequences
if Like == 0.1:
state = "low"
if Like == 0.3 and Con < 3:
state = "low"
if Like == 0.3 and Con > 3:
state = "medium"
if Like == 0.5 and Con < 3:
state="low"
if Like == 0.5 and Con < 5:
state = "medium"
if Like == 0.5 and Con == 5:
state = "high"
if Like == 0.7 and Con < 2:
state="low"
if Like == 0.7 and Con< 4:
state ="medium"
if Like == 0.7 and Con> 4:
state="high"
if Like == 0.9 and Con < 3:
state="medium"
if Like == 0.9 and Con > 3:
state="high"
x+1
break
print(name[0])
In: Computer Science
Burlington has tracked daily sales of coats for the three locations below:
|
Date |
Chicago |
Seasonal Relatives for Chicago Sales |
California |
New York |
|
1/4/18 |
152 |
0.3 |
640 |
456 |
|
1/5/18 |
195 |
0.4 |
586 |
650 |
|
1/6/18 |
653 |
1.5 |
420 |
543 |
|
1/7/18 |
187 |
0.5 |
645 |
632 |
|
1/8/18 |
240 |
0.6 |
507 |
546 |
|
1/9/18 |
207 |
0.8 |
623 |
531 |
|
1/10/18 |
311 |
0.9 |
511 |
544 |
|
1/11/18 |
373 |
1.2 |
500 |
639 |
|
1/12/18 |
225 |
0.5 |
576 |
570 |
|
1/13/18 |
276 |
0.3 |
540 |
544 |
|
1/14/18 |
475 |
0.7 |
475 |
674 |
|
1/15/18 |
755 |
1.1 |
645 |
711 |
|
1/16/18 |
732 |
1.4 |
534 |
594 |
|
1/17/18 |
975 |
2.2 |
511 |
564 |
|
1/18/18 |
170 |
0.3 |
650 |
693 |
|
1/19/18 |
203 |
0.7 |
699 |
645 |
|
1/20/18 |
288 |
0.8 |
580 |
570 |
|
1/21/18 |
378 |
0.9 |
520 |
456 |
|
1/22/18 |
400 |
1.3 |
546 |
609 |
|
1/23/18 |
798 |
1.6 |
576 |
585 |
|
1/24/18 |
1111 |
1.9 |
649 |
609 |
|
1/25/18 |
176 |
0.5 |
657 |
480 |
|
1/26/18 |
213 |
0.6 |
600 |
544 |
|
1/27/18 |
240 |
0.9 |
703 |
560 |
|
1/28/18 |
311 |
0.7 |
657 |
476 |
|
1/29/18 |
456 |
1 |
546 |
656 |
|
1/30/18 |
Question Set 1. Using only the Chicago sales data, generate the following sales forecasts:
1. Naïve forecasts (using the deseasonalized sales data) for January 5th through January 30th. You will need to adjust the sales data to remove the seasonality effects. (6pts)
2. Four-day moving average forecasts for January 8th through January 30th. (3pts)
3. Twelve-day moving average forecasts for January 16th through January 30th. (3pts)
Note that, for example, you will not be able to make a four-day moving average forecast for January 7th since four previous sales figures are required.
In: Finance
1.HPY is negative does not mean that ending value of
the investment is negative Select one:
True
False
2.Nominal Risk Free Rate investment is one which has one possible
return which has a probability of 1.0
True
False
3.Some types of life insurance policy payments contribute towards
increasing the amount of money you have for your retirement years
Select one:
True
False
In: Finance
John buys and consumes only two goods, X and Y. At point A on the demand curve for X, quantity demanded is 2 when the price of X is $4 a unit. At point B, quantity demanded is 3 at price of X equal to $2 a unit. . Marginal rate of substitution between X and Y at point A is equal to 2. (MRSxy =2). At point B, MRSxy will be:
15 | |
1.0 | |
0.50 | |
2.0 | |
None of the above. Not enough information to determine |
In: Economics
Imagine that a relaxed sarcomere is 2.4 μm long and that a contracted sarcomere is 2.1 μm long. Imagine further that the thin filaments are 1.0 μm long and the thick filaments are 1.5 μm long. To the nearest hundredths, what is the difference between the overlap (overlap of one thin filament with the thick filament) that occurs in a contracted sarcomere and the overlap that occurs in a relaxed sarcomere? It might help to draw a crude model of the sarcomere to help you visualize this problem.
In: Biology
3) Consider a voltaic cell in which the following reaction occurs: Zn(s) + Sn2+(aq) Zn2+(aq) + Sn(s)
a) Calculate Eo for the cell.
b) when the cell operates, what happens to the concentration of
Zn2+? The concentration
of Sn2+ ?
c) When the cell voltage drops to zero, what is the ratio of the concentration of Zn2+ to that of Sn2+ ?
d) If the concentration of both cations is 1.0 M originally, what are the concentrations when the voltage drops to zero?
In: Chemistry
If you expect the market to increase which of the following
portfolios should you purchase?
Select one:
a. a portfolio with a beta of 1.0
b. a portfolio with a beta of 0
c. a portfolio with a beta of -0.5
d. a portfolio with a beta of 1.9
he final step in the capital budgeting process is ______.
Select one:
a. decision making
b. implementation
c. review and analysis
d. follow-up
Please Solve As soon as
Thank's
Abdul-Rahim Taysir
In: Finance