9. An analyst believes that long-distance running reduces muscle mass. She collects data on subjects (pounds of muscle mass, hours of running per week, and calories consumed per week) and performs a regression. Here are the results:
| Coefficient | Standard Error | |
| Intercept | 20 | 2.23 |
| Running | -3.5 | 0.56 |
| Calories | 0.009 | 0.44 |
Interpret the RUNNING coefficient:
a. Running one more hour per week will reduce calories by 3.5
b. People with greater muscle mass run than
3.5 less miles per week
c. Running more than 3.5 miles per week will reduce muscle mass
d. Running one more hour per week will reduce muscle mass by 3.5 pounds
Is the Running variable statistically significant?
a. Yes
b. No
If Frank runs 3 hours per week and consumes 12,000 calories per week, estimate his weight with the regression model..?
If the coefficient of determination (R2) is 0.76 for this regression, this means that
a.24 percent of the variation in the dependent variable is explained by the regression.
b.24 percent of the variation in the independent variable is explained by the regression.
c.76 percent of the variation in the dependent variable is explained by the regression.
d.76 percent of the variation in the independent variable is explained by the regression
In: Economics
|
A piece of newly purchased industrial equipment costs $1,020,000 and is classified as seven-year property under MACRS. The MACRS depreciation schedule is shown in MACRS Table. |
| Required: |
|
Calculate the annual depreciation allowances and end-of-the-year book values for this equipment. (Do not include the dollar signs ($). Enter rounded answers as directed, but do not use the rounded numbers in intermediate calculations. Leave no cells blank. You must enter "0" for the answer to grade correctly.) |
|
Beginning Year |
Beginning Book Value |
Depreciation Allowance |
Ending
Book Value |
|
| 1 | $ | $ | $ | |
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
In: Finance
|
A piece of newly purchased industrial equipment costs $1,020,000 and is classified as seven-year property under MACRS. The MACRS depreciation schedule is shown in MACRS Table. |
| Required: |
|
Calculate the annual depreciation allowances and end-of-the-year book values for this equipment. (Do not include the dollar signs ($). Enter rounded answers as directed, but do not use the rounded numbers in intermediate calculations. Leave no cells blank. You must enter "0" for the answer to grade correctly.) |
|
Beginning Year |
Beginning Book Value |
Depreciation Allowance |
Ending
Book Value |
|
| 1 | $ | $ | $ | |
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
In: Finance
The success of an airline depends heavily on its ability to provide a pleasant customer experience. One dimension of customer service on which airlines compete is on-time arrival. The tables below contains a sample of data from delayed flights showing the number of minutes each delayed flight was late for two different airlines, Company A and Company B.
| 34 | 59 | 43 | 30 | 3 |
| 32 | 42 | 85 | 30 | 48 |
| 110 | 50 | 10 | 26 | 70 |
| 52 | 83 | 78 | 27 | 70 |
| 27 | 90 | 38 | 52 | 76 |
| 44 | 64 | 41 | 32 | 65 |
| 104 | 45 | 27 | 37 | 84 |
| 76 | 45 | 34 | 51 | 63 |
| 43 | 34 | 32 | 63 | 66 |
(a)
Formulate the hypotheses that can be used to test for a difference between the population mean minutes late for delayed flights by these two airlines. (Let μ1 = population mean minutes late for delayed Company A flights and μ2 = population mean minutes late for delayed Company B flights.)
H0: μ1 − μ2 ≤ 0
Ha: μ1 − μ2 > 0
H0: μ1 − μ2 < 0
Ha: μ1 − μ2 = 0
H0: μ1 − μ2 ≥ 0
Ha: μ1 − μ2 < 0
H0: μ1 − μ2 = 0
Ha: μ1 − μ2 ≠ 0
H0: μ1 − μ2 ≠ 0
Ha: μ1 − μ2 = 0
(b)
What is the sample mean number of minutes late for delayed flights for each of these two airlines?
Company A minCompany B min
(c)
Calculate the test statistic. (Round your answer to three decimal places.)
What is the p-value? (Round your answer to four decimal places.)
p-value =
Using a 0.05 level of significance, what is your conclusion?
Reject H0. There is statistical evidence that one airline does better than the other in terms of their population mean delay time.Do not reject H0. There is no statistical evidence that one airline does better than the other in terms of their population mean delay time. Do not Reject H0. There is statistical evidence that one airline does better than the other in terms of their population mean delay time.Reject H0. There is no statistical evidence that one airline does better than the other in terms of their population mean delay time.
In: Statistics and Probability
Java question, Please answer everything. Thank you
Answer the following questions as briefly (but completely) as possible:
1: System.out.println( 1 / 0 ); 2: System.out.println( 1.0 / 0 );
1: long value = Long.MAX_VALUE + 1; 2: System.out.println( value );
1: public class ShowErrors {
2: public static void main ( String [] args ) {
3: ShowErrors t = new ShowErrors( 5 );
4: }
5: }1: public class ShowErrors {
2: public static void main ( String [] args ) {
3: ShowErrors t = new ShowErrors();
4: t.x();
5: }
6: }1: public class ShowErrors {
2: public void method1 () {
3: Circle c;
4: System.out.println( "What is radius "
5: + c.getRadius() );
6: c = new Circle();
7: }
8: } 1: public class ShowErrors {
2: public static void main(String[] args) {
3: C c = new C(5.0);
4: System.out.println(c.value);
5: }
6: }
7:
8: class C {
9: int value = 2;
10: }key is 11
0 1 2 3 4 5 6 7 8 9 10 11 12
11<50 [ 2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79]
low=0 mid=6 hi=12
11>7 [ 2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79]
low=0 mid=2 hi=5
11=11 [ 2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79]
low=3 hi=5
mid=4
(Note how binary search eliminates half of the list from further consideration after each comparison.)
1: ArrayList<String> list = new ArrayList<String>(); 2: list.add( "Denver" ); 3: list.add( "Austin" ); 4: list.add( new java.util.Date() ); 5: String city = list.get( 0 ); 6: list.set( 2, "Dallas" ); 7: System.out.println( list.get(2) );
1: ArrayList<Integer> list = new ArrayList<Integer>(); 2: list.add(1); 3: list.add(2); 4: list.add(3); 5: list.remove(1); 6: System.out.println( list );
1: class Test {
2: public static void main ( String [] args ) {
3: Count myCount = new Count();
4: int times = 0;
5: for ( int i = 0; i < 100; i++ )
6: increment( myCount, times );
7: System.out.println( "count is " + myCount.count );
8: System.out.println( "times is " + times );
9: }
10: public static void increment ( Count c, int times ) {
11: c.count++;
12: times++;
13: }
14: }
15:
16: class Count {
17: public int count;
18: public Count ( int c ) {
19: count = c;
20: }
21: public Count () {
22: count = 1;
23: }
24: }1: public class Test {
2: public static void main ( String [] args ) {
3: java.util.Date[] dates = new java.util.Date[10];
4: System.out.println( dates[0] );
5: System.out.println( dates[0].toString() );
6: }
7: } 1: public class C {
2: private int p;
3:
4: public C () {
5: System.out.println( "C's no-arg constructor invoked" );
6: this(0);
7: }
8:
9: public C ( int p ) {
10: p = p;
11: }
12:
13: public void setP ( int p ) {
14: p = p;
15: }
16: }1: public class Test {
2: private int id;
3: public void m1 () {
4: this.id = 45;
5: }
6: public void m2 () {
7: Test.id = 45;
8: }
9: }In: Computer Science
Exercise 9.2 (c++) (max, min, average, and median code)
Write a program that asks users to input up to 20 integers, and then finds the maximum, minimum, average, and median of the numbers that were entered. Use the following information to write your program. The median is the number that appears in the middle of the sorted list of numbers. If the array has an odd number of elements, median is a single number in the middle of the list (array). If the array has an even number of elements, then median is the average of the two numbers in the middle.
Example:
Odd number of elements: 1 4 6 3 8, first sort the
numbers: 1 3 4 6 8, then find the median, i.e, 4.
Even number of elements: 1 4 8 3, first sort the
numbers: 1 3 4 8, then find the median as the average of 3 and 4,
i.e., 3.5
The minimum is the smallest element of the array. To find the smallest element in an array, you need to find the index of the smallest number and access it. You can use the following function to do this. This function is also used in the sort_array function.
int index_of_smallest(const int a[], int start_index, int
used_size)
{
int min =
a[start_index], index_of_min = start_index;
for(int i = start_index+1; i <
used_size; i++)
{
if(a[i]
< min )
{
min = a[i];
index_of_min = i;
}
}
return index_of_min;
}
To sort an array that has used_size elements, use the following function:
void sort_array(int a[], int used_size)
{
int
index_of_next_smallest;
int temp;
for(int i = 0; i <
used_size -1; i++)
{
index_of_next_smallest = index_of_smallest(a, i,
used_size);
// swap two elements
temp = a[i];
a[i] = a[index_of_next_smallest];
a[index_of_next_smallest] = temp;
}
}
Note that you should write three more functions; 1) one similar to the one that finds the index of smallest number for finding the index of the largest number, 2) one that computes the average and returns it to the main, 3) and the last one that takes the sorted array and will return the median. Call your programex92.cpp.
use c++ and #include <iostream>
In: Computer Science
7. Halliford Corporation expects to have earnings this coming year of $3 per share. Halliford plans to retain all of its earnings for the next two years. For the subsequent two years, the firm will retain 50% of its earnings. It will then retain 20% of its earnings from that point onward. Each year, retained earnings will be invested in new projects with an expected return of 25% per year. Any earnings that are not retained will be paid out as dividends. Assume Halliford’s share count remains constant and all earnings growth comes from the investment of retained earnings. If Halliford’s equity cost of capital is 10%, what price would you estimate for Halliford stock?
In: Finance
Recall that to create a ‘butterfly spread’, an investor buys one unit of an in-themoney call option, buys one unit of an out-of-the money call option, and sells two units of an at-the-money call option. Three European call options with exercise prices of 45, 50, and 55 are currently trading in the market. These options have the same expiration date and are on the same underlying stock. The stock is currently trading at a price of 50. i. Graph the payoff diagram of the butterfly spread at maturity. ii. What view on the future direction of the underlying stock price does an investor who purchases this butterfly spread hold?
In: Finance
Assume that there two investments of different risk. A return of 0.05 is required on one investment: on the other a return of 0.10 is required. Compare the present values obtained for each investment for expected cash flows of $1 billion 1 year, 20 years, and 50 years from now at the required rates of return.
In: Finance
Our class has 50 students. Assuming that no students are born on leap days (February 29), what is the probability that no two students share the same birthday? What is the probability that at least one of the students has the same birthday as another student in the class? Please provide your answers in the form of a fraction.
In: Statistics and Probability