Each of the variables are described as follows.
Feelings towards Barack Obama are measured 0-100 with higher values indicating more positive opinions.
Gender is variable that equals 1 for respondents who identify as female and 0 for respondents who do not.
Race is a variable that equals 1 for respondents who identify as white and 0 for respondents who do not.
Age is the number of years the respondent reports having been alive.
Income is a 28-point scale with higher values denoting greater income earned.
Education is a four-point scale with higher values denoting greater educational attainment (High school or less, Some college, Finished college, Advanced degree).
Marital status is a variable that equals 1 for respondents who are married and 0 for respondents who are not.
Partisanship is the respondents’ self-placement on a seven-point scale ranging from 1 to 7 as follows: Strong Democrat, Weak Democrat, Democratic Leaning Independent, Independent, Republican Leaning Independent, Weak Republican, Strong Republican.
*Data:
| X. | obama | female | white | age | income | education | party | marital_status |
| 1 | 100 | 1 | 0 | 72 | 3 | 2 | 1 | 0 |
| 2 | 100 | 1 | 0 | 54 | 2 | 2 | 1 | 0 |
| 3 | 100 | 0 | 0 | 35 | 13 | 1 | 3 | 0 |
| 4 | 100 | 0 | 0 | 80 | 2 | 1 | 4 | 0 |
| 5 | 100 | 1 | 0 | 50 | 1 | 1 | 1 | 0 |
| 6 | 100 | 1 | 0 | 70 | 1 | 1 | 3 | 0 |
Fill in the empty cells of the following table. (This should be used as a template for your own linear model included in your data project.)
Table 1. Regression Estimates of Attitudes Towards Obama
| Coefficient | Standard Error | t-value | |
| Gender | |||
| race | |||
| age | |||
| income | |||
| education | |||
| partisanship | |||
| marital status | |||
| intercept |
2. Using the table you created, answer the following questions (be sure to consult the regression slides on interpreting coefficients properly):
a. What effect does being female have on attitudes towards Obama?
b. What effect does being white have on attitudes towards Obama?
c. What is the relationship between age and attitudes towards Obama?
d. What is the relationship between income and attitudes towards Obama?
e. What is the relationship between education and attitudes towards Obama?
f. What is the relationship between partisanship and attitudes towards Obama?
g. What effect does being married have on attitudes towards Obama?
3. Elaborate on the previous answers by answering the following:
a. Holding all else equal, what effect does increasing one’s age by 15 years have on attitudes towards Obama? b. Holding all else constant, what effect does increasing one’s income by 10 points on this scale have on attitudes towards Obama?
c. Holding all else constant, what effect does moving from the lowest level of education to the highest level of education have on attitudes towards Obama?
d. Holding all else constant, what effect does moving from the lowest level of partisanship to the highest level of partisanship have on attitudes towards Obama?
4. Again using the table you created, answer the following questions:
a. What is the predicted score for Obama from a respondent who is (1) female (2) white (3) 40 years old (4) falls at the median value of income (5) finished college (6) identifies as a Democratic leaning Independent and (7) is married?
b. What is the predicted score for Obama from a respondent who is (1) male (2) white (3) 60 years old (4) has the highest level of income (5) never attended college (6) identifies as a Strong Republican and (7) is married?
c. What is the predicted score for Obama from a respondent who is (1) male (2) not white (3) 23 years old (4) has the sixth-lowest level of income (5) completed college (6) identifies as a Strong Democrat and (7) is not married?
In: Statistics and Probability
|
Minutes parked |
Hrs*Fee=parking fee |
|
25 minutes (0 hour and 25 minutes) |
1*5.00 |
|
05 minutes (0 hour and 5 minutes) |
1*5.00 |
|
55 minutes (0 hours and 55 minutes) |
1*5.00 |
|
30 minutes (0 hour and 30 minutes) |
1*5.00 |
|
10 minutes (0 hour and 10 minutes) |
1*5.00 |
|
60 minutes (1 hour and 0 minutes) |
1*5.00 |
|
Minutes parked |
Hrs*Fee=parking fee |
|
65 minutes (1 hour and 5 minutes) |
2*4.00 |
|
95 minutes (1 hour and 35 minutes) |
2*4.00 |
|
120 minutes (2 hours) |
2*4.00 |
|
135 minutes (2 hour and 15 minutes) |
3*4.00 |
|
180 minutes (3 hour and 0 minutes) |
3*4.00 |
|
195 minutes (3 hour and 15 minutes) |
4*4.00 |
|
240 minutes (4 hours) |
4*4.00 |
|
260 minutes (4 hours 20 minutes ) |
5*4.00 |
|
300 minutes (5 hours) |
5*4.00 |
|
Minutes parked |
Hrs*Fee = parking fee |
|
320 minutes (5 hour and 20 minutes) |
6*2.00 |
|
400 minutes (6 hour and 40 minutes) |
7*2.00 |
|
800 minutes (13 hour and 20 minutes) |
14*2.00 |
|
825 minutes (13 hour and 45 minutes) |
14*2.00 |
|
600 minutes (10 hours) |
10*2.0 |
my work:
rate1=5
rate2=4
rate3=2
fees=0
minutes = int(input("Please Enter the number of minutes parked : "))
print(minutes)
if minutes>=0 and minutes<=60:
if minutes%60==0:
hrs=int(minutes/60)
fees=hrs*rate1
print("Parking Fees (in $) is ",fees )
else:
hrs=int(minutes/60)+1
fees=hrs*rate1
print("Parking Fees (in $) is ",fees )
elif minutes>60 and minutes<=300:
print("It Falls in Table 2")
if minutes%60==0:
hrs=int(minutes/60)
fees=hrs*rate2
print("Parking Fees (in $) is ",fees )
else:
hrs=int(minutes/60)+1
fees=hrs*rate2
print("Parking Fees (in $) is ",fees )
elif minutes>300:
print("It Falls in Table 3")
if minutes%60==0:
hrs=int(minutes/60)
fees=hrs*rate3
print("Parking Fees (in $) is ",fees )
else:
hrs=int(minutes/60)+1
fees=hrs*rate3
print("Parking Fees (in $) is ", fees)
else:
print("Invalid Minutes")
getting error line 36
else:
^
SyntaxError: invalid syntax please help.
In: Computer Science
Write a Java program (name it InputSum) that prompts the user to enter positive integer numbers using a sentinel while loop. The program should accept integer inputs until the user enters the value -1 (negative one is the sentinel value that stops the while loop). After the user enters -1, the program should display the entered numbers followed by their sum as shown below. Notice that -1 is not part of the output. The program should ignore any other negative input and should continue to run.
Hint: to remember/save the entered (good) positive values, you can concatenate them into a string (separated by comas) that you can output later on.
The following are sample runs showing the input prompt and the outputs: (Notice the user may enter one value per line. DO NOT read inputs as String type)
Enter positive integers (-1 to quit): 10 -5 2 -1
Entered Numbers: 10, 2
The Sum: 12
Enter positive integers (-1 to quit): 1 2 3 4 5 6 -1
Entered Numbers: 1, 2, 3, 4, 5, 6
The Sum: 21
Enter positive integers (-1 to quit): 1 1 -7 1 1 -9 100 -1
Entered Numbers: 1, 1, 1, 1, 100
The Sum: 104
Make sure the program validates each entered number before processing it as the user may enter negative numbers (other than the sentinel value -1).
Design your program such that it allows the user to re-run the program with a different set of inputs in the same run.
Document your code, and organize and space out your outputs as shown above.
In: Computer Science
Mr. Beautiful, an organization that sells weight training sets, has an ordering cost of $40 for the BB-1 set (BB-1 stands for Body Beautiful Number 1). The carrying cost for BB-1 is $5 per set per year. To meet demand, Mr. Beautiful orders large quantities of BB-1 4 times a year. The stockout cost for BB-1 is estimated to be $10 per set. Over the past several years, Mr. Beautiful has observed the following demand during the lead time for BB-1:
| Demand During Lead Time | Probability |
| 40 | .1 |
| 50 | .2 |
| 60 | .2 |
|
70 |
.2 |
| 80 | .2 |
| 90 | .1 |
The reorder point for BB-1 is 60 sets. What level of safety stock should be maintained for BB-1?
The optimal quantity of safety stock which minimizes expected total cost is ____sets (enter your response as a whole number).
In: Statistics and Probability
Capital Rationing Decision for a Service Company Involving Four Proposals
Renaissance Capital Group is considering allocating a limited amount of capital investment funds among four proposals. The amount of proposed investment, estimated income from operations, and net cash flow for each proposal are as follows:
| Investment | Year | Income from Operations | Net Cash Flow | |||
| Proposal A: | $680,000 | 1 | $ 64,000 | $ 200,000 | ||
| 2 | 64,000 | 200,000 | ||||
| 3 | 64,000 | 200,000 | ||||
| 4 | 24,000 | 160,000 | ||||
| 5 | 24,000 | 160,000 | ||||
| $240,000 | $ 920,000 | |||||
| Proposal B: | $320,000 | 1 | $ 26,000 | $ 90,000 | ||
| 2 | 26,000 | 90,000 | ||||
| 3 | 6,000 | 70,000 | ||||
| 4 | 6,000 | 70,000 | ||||
| 5 | (44,000) | 20,000 | ||||
| $ 20,000 | $340,000 | |||||
| Proposal C: | $108,000 | 1 | $ 33,400 | $ 55,000 | ||
| 2 | 31,400 | 53,000 | ||||
| 3 | 28,400 | 50,000 | ||||
| 4 | 25,400 | 47,000 | ||||
| 5 | 23,400 | 45,000 | ||||
| $142,000 | $ 250,000 | |||||
| Proposal D: | $400,000 | 1 | $100,000 | $ 180,000 | ||
| 2 | 100,000 | 180,000 | ||||
| 3 | 80,000 | 160,000 | ||||
| 4 | 20,000 | 100,000 | ||||
| 5 | 0 | 80,000 | ||||
| $300,000 | $700,000 |
The company's capital rationing policy requires a maximum cash payback period of three years. In addition, a minimum average rate of return of 12% is required on all projects. If the preceding standards are met, the net present value method and present value indexes are used to rank the remaining proposals.
| Present Value of $1 at Compound Interest | |||||
| Year | 6% | 10% | 12% | 15% | 20% |
| 1 | 0.943 | 0.909 | 0.893 | 0.870 | 0.833 |
| 2 | 0.890 | 0.826 | 0.797 | 0.756 | 0.694 |
| 3 | 0.840 | 0.751 | 0.712 | 0.658 | 0.579 |
| 4 | 0.792 | 0.683 | 0.636 | 0.572 | 0.482 |
| 5 | 0.747 | 0.621 | 0.567 | 0.497 | 0.402 |
| 6 | 0.705 | 0.564 | 0.507 | 0.432 | 0.335 |
| 7 | 0.665 | 0.513 | 0.452 | 0.376 | 0.279 |
| 8 | 0.627 | 0.467 | 0.404 | 0.327 | 0.233 |
| 9 | 0.592 | 0.424 | 0.361 | 0.284 | 0.194 |
| 10 | 0.558 | 0.386 | 0.322 | 0.247 | 0.162 |
Required:
1. Compute the cash payback period for each of the four proposals.
| Cash Payback Period | |
| Proposal A | |
| Proposal B | |
| Proposal C | |
| Proposal D |
2. Giving effect to straight-line depreciation on the investments and assuming no estimated residual value, compute the average rate of return for each of the four proposals. If required, round your answers to one decimal place.
| Average Rate of Return | |
| Proposal A | % |
| Proposal B | % |
| Proposal C | % |
| Proposal D | % |
3. Using the following format, summarize the results of your computations in parts (1) and (2) by placing the calculated amounts in the first two columns on the left and indicate which proposals should be accepted for further analysis and which should be rejected. If required, round your answers to one decimal place.
| Proposal | Cash Payback Period | Average Rate of Return | Accept or Reject | |
| A | % | |||
| B | % | |||
| C | % | |||
| D | % | |||
4. For the proposals accepted for further analysis in part (3), compute the net present value. Use a rate of 15% and the present value of $1 table above. Round to the nearest dollar.
| Select the proposal accepted for further analysis. | ||
| Present value of net cash flow total | $ | $ |
| Less amount to be invested | $ | $ |
| Net present value | $ | $ |
5. Compute the present value index for each of the proposals in part (4). If required, round your answers to two decimal places.
| Select proposal to compute Present value index. | ||
| Present value index (rounded) |
In: Accounting
Write a class to implement HeadTailListInterface. Instead of using an array, use a List object as your instance data variable. (List (Links to an external site.) from the Java standard library- not ListInterface!). Instantiate the List object to type ArrayList.
Inside the methods of this class, invoke methods on the List object to accomplish the task. Note: some methods might look very simple... this does not mean they are wrong!
There is one difference in how this class will work compared to the other: in this extra credit class, you do not have control over the capacity, so you should not print the capacity in display and the capacity does not have to be exactly doubled in the two add methods.
For full credit:
The class header and instance data will be:
public class ListHeadTailList<T> implements HeadTailListInterface<T> List<T> list; // initialize to type ArrayList<T> in the ListHeadTailList constructor
------------------------------------------------------------------------------------------------------------------------------------------------
/**
* An interface for a list. Entries in a list have positions that
begin with 0.
* Entries can only be removed or added to the beginning and end of
the list.
* Entries can be accessed from any position.
*
* @author Jessica Masters
*/
public interface HeadTailListInterface<T> {
/**
* Adds a new entry to the beginning of the list.
* Entries currently in the list are shifted
down.
* The list size is increased by 1.
*
* @param newEntry The object to be added as a new
entry.
*/
public void addFront(T newEntry);
/**
* Adds a new entry to the end of the list.
* Entries currently in the list are unaffected.
* The list size is increased by 1.
*
* @param newEntry The object to be added as a new
entry.
*/
public void addBack(T newEntry);
/**
* Removes an entry from the beginning of the
list.
* Entries currently in the list are shifted up.
* The list size is decreased by 1.
*
* @return A reference to the removed entry or null if
the list is empty.
*/
public T removeFront();
/**
* Removes an entry from the end of the list.
* Entries currently in the list are unaffected.
* The list size is decreased by 1.
*
* @return A reference to the removed entry or null if
the list is empty.
*/
public T removeBack();
/** Removes all entries from this list. */
public void clear();
/**
* Retrieves the entry at a given position in this
list.
*
* @param givenPosition An integer that indicates the
position of the desired entry.
* @return A reference to the indicated entry or null
if the index is out of bounds.
*/
public T getEntry(int givenPosition);
/**
* Displays the contents of the list to the console, in
order.
*/
public void display();
/**
* Determines the position in the list of a given
entry.
* If the entry appears more than once, the first index
is returned.
*
* @param anEntry the object to search for in the
list.
* @return the first position the entry that was found
or -1 if the object is not found.
*/
public int indexOf(T anEntry);
/**
* Determines the position in the list of a given
entry.
* If the entry appears more than once, the last index
is returned.
*
* @param anEntry the object to search for in the
list.
* @return the last position the entry that was found
or -1 if the object is not found.
*/
public int lastIndexOf(T anEntry);
/**
* Determines whether an entry is in the list.
*
* @param anEntry the object to search for in the
list.
* @return true if the list contains the entry, false
otherwise
*/
public boolean contains(T anEntry);
/**
* Gets the length of this list.
*
* @return The integer number of entries currently in
the list.
*/
public int size();
/**
* Checks whether this list is empty.
*
* @return True if the list is empty, or false if the
list contains one or more elements.
*/
public boolean isEmpty();
}
------------------------------------------------------------------------------------------------------------------------
********TESTING ISEMPTY AND EMPTY DISPLAY Empty is true: true Should display: 0 elements; capacity = 10 0 elements; capacity N/A ********TESTING ADD TO FRONT Should display: 1 elements; capacity = 10 [2] 1 elements; capacity N/A [2] Should display: 3 elements; capacity = 10 [3, 4, 2] 3 elements; capacity N/A [3, 4, 2] Empty is false: false ********TESTING CLEAR Should display: 0 elements; capacity = 10 0 elements; capacity N/A ********TESTING ADD TO BACK Should display: 1 elements; capacity = 10 [7] 1 elements; capacity N/A [7] Should display: 3 elements; capacity = 10 [7, 10, 5] 3 elements; capacity N/A [7, 10, 5] ********TESTING CONTAINS Contains 5 true: true Contains 7 true: true Contains 4 false: false ********TESTING ADD WITH EXPANSION Should display: 32 elements; capacity = 40 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31] 32 elements; capacity N/A [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31] ********TESTING INDEX OF Index of 0 is 0: 0 Index of 31 is 31: 31 Index of -5 is -1: -1 Index of 32 is -1: -1 Index of 3 is 0: 0 Index of 5 is 6: 6 ********TESTING LAST INDEX OF Last index of 0 is 1: 1 Last index of 31 is 32: 32 Last index of -5 is -1: -1 Last index of 35 is -1: -1 Last index of 3 is 4: 4 Last index of 5 is 33: 33 ********TESTING SIZE Size is 34: 34 ********TESTING GET ENTRY Element in position 15 is 14: 14 Element in position 0 is 3: 3 Element in position 39 is null: null Element in position -1 is null: null ********TESTING REMOVES Remove front element 3: 3 Remove back element 5 :5 Remove front element 0: 0 Remove back element 31: 31 Should display: 30 elements; capacity = 40 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] 30 elements; capacity N/A [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] Remove element null: null Remove element null: null Remove element 1: 1 Should display: 0 elements; capacity = 40 0 elements; capacity N/A Remove element 1: 1 Should display: 0 elements; capacity = 40 0 elements; capacity N/A Remove element 1: 1 Should display: 0 elements; capacity = 40 0 elements; capacity N/A Remove element 1: 1 Should display: 0 elements; capacity = 40 0 elements; capacity N/A ********TESTING MIX OF ADDS AND REMOVES Should display: 7 elements; capacity = 40 [5, 4, 3, 2, 3, 8, 9] 7 elements; capacity N/A [5, 4, 3, 2, 3, 8, 9] Should display: 5 elements; capacity = 40 [4, 3, 2, 3, 8] 5 elements; capacity N/A [4, 3, 2, 3, 8] ********TESTING WITH STRINGS Should display: 5 elements; capacity = 5 [You, did, it!, Nice, job!] 5 elements; capacity = 5 [You, did, it!, Nice, job!] Contains "Nice" is true: true Contains "You" is true: true Contains "you" is false: false Index of "it!" is 2: 2 Last index of "it!" is 2: 2
In: Computer Science
Problem 12-6A Liquidation of a partnership LO P5
Kendra, Cogley, and Mei share income and loss in a 3:2:1 ratio.
The partners have decided to liquidate their partnership. On the
day of liquidation their balance sheet appears as follows.
|
KENDRA, COGLEY, AND MEI Balance Sheet May 31 |
|||||||
| Assets | Liabilities and Equity | ||||||
| Cash | $ | 103,900 | Accounts payable | $ | 258,000 | ||
| Inventory | 537,600 | Kendra, Capital | 76,700 | ||||
| Cogley, Capital | 172,575 | ||||||
| Mei, Capital | 134,225 | ||||||
| Total assets | $ | 641,500 | Total liabilities and equity | $ | 641,500 | ||
Required:
For each of the following scenarios, complete the schedule
allocating the gain or loss on the sale of inventory. Prepare
journal entries to record the below transactions. (Do not
round intermediate calculations. Amounts to be deducted or Losses
should be entered with a minus sign. Round your final answers to
the nearest whole dollar.)
(1) Inventory is sold for $608,400.
(2) Inventory is sold for $469,200.
(3) Inventory is sold for $358,800 and any
partners with capital deficits pay in the amount of their
deficits.
(4) Inventory is sold for $298,800 and the
partners have no assets other than those invested in the
partnership.
Complete this question by entering your answers in the tabs below.
Required 1 Inventory
Required 1 GJ
Required 2 Inventory
Required 2 GJ
Required 3 Inventory
Required 3 GJ
Required 4 Inventory
Required 4 GJ
Complete the schedule allocating the gain or loss on the sale of inventory is $608,400.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. Record the sale of inventory.
2. Allocate the gain(loss) on the sale of inventory to the partners.
3. Record the payment of the liabilities.
4. Record the disbursement of the remaining cash to the partners.
Complete the schedule allocating the gain or loss on the sale of inventory is $469,200.
Complete this question by entering your answers in the tabs below.
Complete the schedule allocating the gain or loss on the sale of inventory is $469,200.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. Record the sale of inventory.
2. Allocate the gain(loss) on the sale of inventory to the partners.
3. Record the payment of the liabilities.
4. Record the disbursement of the remaining cash to the partners.
Complete the schedule allocating the gain or loss on the sale of inventory is $358,800 and any partners with capital deficits pay in the amount of their deficits.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. Record the sale of inventory.
2. Allocate the gain(loss) on the sale of inventory to the partners.
3. The partner(s) with deficit balances repay the amount of their deficit(s).
4. Record the payment of the liabilities.
5. Record the disbursement of the remaining cash to the partners.
Complete the schedule allocating the gain or loss on the sale of inventory $298,800 and the partners have no assets other than those invested in the partnership.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1. Record the sale of inventory for $298,800.
2. Record the allocation of the gain or loss on the sale of inventory to the partners.
3. Assuming that the partners have no assets other than those invested, allocate any partner(s) deficit balances to the remaining partners.
4. Record the payment of the liabilities.
5. Record the disbursement of the remaining cash to the partner(s).
In: Accounting
As part of a study on stress and its effects on aging, researchers measured telomere length in blood cells of healthy premenopausal women with chronically ill children.
Here is a link to the data.
Question: What is the correlation coefficient for these variables? Calculate your answer using the function =correl(array 1, array2) in microsoft excel. Answer to three decimal places.
| 1 | 1.63 |
| 1 | 1.24 |
| 1 | 1.33 |
| 2 | 1.5 |
| 2 | 1.42 |
| 2 | 1.36 |
| 2 | 1.32 |
| 3 | 1.47 |
| 2 | 1.24 |
| 4 | 1.51 |
| 4 | 1.31 |
| 5 | 1.36 |
| 5 | 1.34 |
| 5 | 1.57 |
| 4 | 1.03 |
| 4 | 0.84 |
| 5 | 0.94 |
| 5 | 1.03 |
| 5 | 1.14 |
| 6 | 1.17 |
| 6 | 1.23 |
| 6 | 1.25 |
| 6 | 1.31 |
| 6 | 1.34 |
| 7 | 1.36 |
| 6 | 1.22 |
| 8 | 1.32 |
| 8 | 1.28 |
| 8 | 1.26 |
| 7 | 1.18 |
| 7 | 1.03 |
| 8 | 1.1 |
| 8 | 1.13 |
| 8 | 0.98 |
| 10 | 0.85 |
| 10 | 1.05 |
| 12 | 1.15 |
| 12 | 1.14 |
| 12 | 1.56 |
B. Based on your calculated correlation coefficient, how would you describe the correlation between the length of telomeres and and the number of years healthy pre-menopausall woman cared for chronically ill children?
|
strong negative |
||||||||||||||
|
weak negative |
||||||||||||||
|
weak positive |
||||||||||||||
|
strong positive |
||||||||||||||
|
no correlation C. Based on the correlation between telomere and caring for chronically ill children, how would you expect stress to impact aging?
|
In: Statistics and Probability
You must program the game called MaDi which is described below.
There is a board of NxN (the size N is defined by the user and must
be a number greater than or equal to 2), where in each box there is
an instruction. The first (the [0] [0]) and the last box (the [N-1]
[N-1]) have no instruction. Possible instructions are:
1. Don't move
2. Advance 4 places
3. Jump to the next row
4. Go back 2 places
5. It exploded! End of the game.
In order to facilitate the visualization of the matrix for the
player, the instruction number will be displayed on the board and
below it the list of instructions with their numbering.
Instructions:
1. Don't move
2. Advance 4 places
3. Jump to the next row
4. Go back 2 places
5. Bomb! Exploded.
The instruction that goes in each square of the board will be
assigned randomly each time the game starts.
The player starts with his chip in the first position (row: 0,
column: 0) and (bottom-right corner). On each turn the player rolls
a die that will tell him how many spaces to advance. You advance
across the board from left to right and from top to bottom as
follows:
On each turn the player rolls a dice that tells him how many
positions on the board to advance. After advancing, he must execute
what is indicated in the instruction of the box where he fell. For
each turn, only execute one instruction on the board. The player
has a maximum number of rolls of the dice, which will be asked to
the player when starting the game.
The game is lost if the dice are thrown without having reached the
goal or if the product of rolling the dice advances to a square
with a bomb. The game is won if you reach the goal (it does not
have to be by exact count) before the roll of the dice runs
out.
In: Computer Science
Lester Hollar is vice president for human resources for a large manufacturing company. In recent years, he has noticed an increase in absenteeism, which he thinks is related to the general health of the employees. Four years ago, in an attempt to improve the situation, he began a fitness program in which employees exercise during their lunch hour. To evaluate the program, he selected a random sample of eight participants and found the number of days each was absent in the six months before the exercise program began and in the last six months. Below are the results.
| Employee | Before | After |
| 1 | 1 | 5 |
| 2 | 2 | 6 |
| 3 | 5 | 4 |
| 4 | 6 | 7 |
| 5 | 4 | 1 |
| 6 | 7 | 3 |
| 7 | 6 | 5 |
| 8 | 4 | 3 |
At the .05 significance level, can he conclude that the number of absences has declined? Estimate the p-value.
a. State the decision rule for 0.1 significance level: H0 : μd≤ 0; H1 : μd > 0. (Round the final answer to 3 decimal places.)
Reject H0 if t > ???
b. Compute the value of the test statistic. (Round the final answer to 3 decimal places.)
Value of the test statistic ???
c. Estimate the p-value? (Round the final answer to 4 decimal places.)
???
In: Statistics and Probability