Questions
Vehicle Sales: Consider the data below ( in thousands of units):   year Quarter 1 Quarter 2...

Vehicle Sales: Consider the data below ( in thousands of units):  

year Quarter 1 Quarter 2 Quarter 3 Quarter 4

2016: 4072 4521 4452 4418

2017: 4010 4392 4399 4334

2018: 4092 4484 4277     4360

Obtain the seasonal factors and enter them into the appropriate yellow cells below:

Quarter 1 Quarter 2 Quarter 3 Quarter 4

Seasonal Factor

Using the columns Year and Total (Annual Sales) below, obtain the regression equation from the Excel's Scatter Diagram

Year Quarter 1 Quarter 2 Quarter 3 Quarter 4

2016: 4072 4521 4452 4418

2017: 4010 4392 4399 4334

2018: 4092 4484 4277 4360

(enter equation and paste graph in appropriate yellow areas below) Enter equation --->

Paste Scatter Diagram --------------------------------------------------------------------------------------------------------------->

Using the regression equation, what is your forecast for year 2018? (enter answer in yellow cell below)

Enter Forecast for Year 2019 -->

Using the seasonal factors obtained and your forecast for Year 2019, forecast Quarters 1 to 4 of Year 2019 (enter values in appropriate yellow cells below)

Year Quarter 1 Quarter 2 Quarter 3 Quarter 4

2016: 4072 4521 4452 4418

2017: 4010 4392 4399 4334

2018: 4092 4484 4277 4360

Quarter 1 Quarter 2 Quarter 3 Quarter 4

Forecast for 2019

In: Economics

Continued from previous question. Price SQFT Bed Bath LTSZ 399900 5.026 4 4.5 0.3 375000 3.2...

Continued from previous question.

Price

SQFT

Bed

Bath

LTSZ

399900

5.026

4

4.5

0.3

375000

3.2

4

3

5

372000

3.22

5

3

5

370000

4.927

4

4

0.3

325000

3.904

3

3

1

325000

2.644

3

2.5

5

319500

5.318

3

2.5

2.5

312900

3.144

4

2.5

0.3

299900

2.8

4

3

5

294900

3.804

4

3.5

0.2

269000

3.312

5

3

1

250000

3.373

5

3.5

0.2

249900

3.46

2

2.5

0.6

244994

3.195

4

2.5

0.2

244900

2.914

3

3

0.3

239900

2.881

4

5

0.3

234900

1.772

3

2

3.6

234000

2.248

3

2.5

0.3

229900

3.12

5

2.5

0.2

219900

2.942

4

2.5

0.2

209900

3.332

4

2.5

0.2

209850

3.407

3

2.5

0.3

206900

2.092

3

2

0.3

200000

3.859

4

2

0.2

In: Statistics and Probability

Continued from previous question. Price SQFT Bed Bath LTSZ 399900 5.026 4 4.5 0.3 375000 3.2...

Continued from previous question.

Price

SQFT

Bed

Bath

LTSZ

399900

5.026

4

4.5

0.3

375000

3.2

4

3

5

372000

3.22

5

3

5

370000

4.927

4

4

0.3

325000

3.904

3

3

1

325000

2.644

3

2.5

5

319500

5.318

3

2.5

2.5

312900

3.144

4

2.5

0.3

299900

2.8

4

3

5

294900

3.804

4

3.5

0.2

269000

3.312

5

3

1

250000

3.373

5

3.5

0.2

249900

3.46

2

2.5

0.6

244994

3.195

4

2.5

0.2

244900

2.914

3

3

0.3

239900

2.881

4

5

0.3

234900

1.772

3

2

3.6

234000

2.248

3

2.5

0.3

229900

3.12

5

2.5

0.2

219900

2.942

4

2.5

0.2

209900

3.332

4

2.5

0.2

209850

3.407

3

2.5

0.3

206900

2.092

3

2

0.3

200000

3.859

4

2

0.2

In: Statistics and Probability

Which receptor doesn't use second messenger? 1. nicotinic receptor 2. alpha 2 receptor 3. muscarinic receptor...

Which receptor doesn't use second messenger?
1. nicotinic receptor
2. alpha 2 receptor
3. muscarinic receptor
4. beta 2 receptor
5. alpha 1 receptor

In: Biology

For each hypothesis test, you must state (a) hypotheses, (b) test statistic, p-value, (c) rejection rule,...

  • For each hypothesis test, you must state (a) hypotheses, (b) test statistic, p-value, (c) rejection rule, and (d) both parts of the conclusion. It is only necessary to calculate the effect size if the problem calls for it. Use a .05 level of significance for all hypothesis tests. Use StatCrunch to complete all hypothesis tests and confidence intervals. Make sure you copy and paste the relevant output for the solutions.
  • Honor code expectations: you are not allowed any collaboration or discussion, regardless of how minor, with anyone about this exam.
  1. (11 points) Several engaged couples getting married were asked their religion and the number of children they plan to have. A sociologist wants to know if the mean number of children couples plan to have is different by religion.

Religion A

Religion B

Religion C

Religion D

3

2

6

3

3

3

1

3

1

3

2

2

2

5

4

1

4

1

3

2

2

1

1

2

3

2

2

4

  1. Test whether the mean number of children differs by religion.
  2. Calculate the coefficient of determination. Interpret it, both in terms of the size and what it tells about the variability.

In: Statistics and Probability

Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as...

Java question, Please answer everything. Thank you

Answer the following questions as briefly (but completely) as possible:

  1. What is a checked exception, and what is an unchecked exception?
  2. What is NullPointerException?
  3. Which of the following statements (if any) will throw an exception? If no exception is thrown, what is the output?
    1: System.out.println( 1 / 0 );
    2: System.out.println( 1.0 / 0 );
  4. Point out the problem in the following code. Does the code throw any exceptions?
    1: long value = Long.MAX_VALUE + 1;
    2: System.out.println( value );
  5. What are the differences between constructors and methods?
  6. What is wrong with each of the following programs?
    1. 1: public class ShowErrors {
      2:    public static void main ( String [] args ) {
      3:       ShowErrors t = new ShowErrors( 5 );
      4:    }
      5: }
    2. 1: public class ShowErrors {
      2:    public static void main ( String [] args ) {
      3:       ShowErrors t = new ShowErrors();
      4:       t.x();
      5:    }
      6: }
    3. 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: }
    4.  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: }
  7. Which of the following statements are valid?
    1. int i = new int(30);
    2. double d[] = new double[30];
    3. char[] r = new char(1..30);
    4. int i[] = (3, 4, 3, 2);
    5. float f[] = {2.3, 4.5, 6.6};
    6. char[] c = new char();
  8. Given an array of doubles, write Java statements to do the following:
    1. Assign the value 5.5 to the last element in the array.
    2. Display the sum of the first two elements of the array.
    3. Write a loop that computes the sum of all elements in the array.
    4. Write a loop that finds the minimum element in the array.
    5. Randomly generate an index and display the element of this index in the array.
    6. Use an array initializer to create another array with the initial value 3.5, 5.5, 4.52, and 5.6.
  9. Use the following illustration as an example, show how to apply the binary search approach to a search first for key 10 and then key 12, in the list:
    [2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79].
    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.)

  10. What types of array can be sorted using the Java.util.Arrays.sort method? Does this sort method create a new array?
  11. Which of the following statements are valid?
    1. int[][] r = new int[2];
    2. int[] x = new int[];
    3. int[][] y = new int [3][];
    4. int[][] z = {{1, 2}};
    5. int[][] m = {{1, 2}, {2, 3}};
    6. int[][] n = {{1, 2}, {2, 3}, };
  12. How do you do the following tasks?
    1. Create an ArrayList for storing double values?
    2. Append an object to a List?
    3. Insert an object at the beginning of a List?
    4. Find the number of objects in a List?
    5. Remove a given object from a List?
    6. Remove the last object from a List?
    7. Check whether a given object is in a List?
    8. Retrieve an object at a specified index from a List?
  13. Identify the errors in the following code fragment:
    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) );
  14. Explain why the following code fragment displays [1, 3] rather than [2, 3].
    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 );
  15. Describe the difference between passing a parameter of a primitive type and passing a parameter of a reference type. Then show the output of the following program:
     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: }
  16. What is wrong in the following code?
    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: }
  17. If a class contains only private data fields and no “set” methods, is the class considered to be immutable?
  18. If a class contains only data fields that are both private and primitive, and no “set” methods, is the class considered to be immutable?
  19. What is wrong in the following code?
     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: }
  20. What is wrong in the following code?
    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

A researcher wanted to learn whether the urge to smoke cigarettes was associated with the number...

A researcher wanted to learn whether the urge to smoke cigarettes was associated with the number of times a person exercised in the last week. So the researcher gathered 10 who smoke for the study. Participants were asked to rate their urge to smoke on a scale of 0 (no urge) to 10 (extreme urge), and to give the number of times each had worked out in the last week. Using the data below, an alpha of .05 (two-tailed), use a Pearson correlation to determine the outcome.

n the box below, provide the following information:

Null Hypothesis in sentence form (1 point):

Alternative Hypothesis in sentence form (1 point):
Critical Value(s) (2 points):

Calculations (4 points): Note: the more detail you provide, the more partial credit that I can give you if you make a mistake.

Outcome (determination of significance or not, and what this reflects in everyday language, 2 points)

Participant

Smoking Urge

Workouts

1

6

2

2

7

1

3

3

3

4

3

5

5

5

1

6

3

2

7

5

4

8

6

0

9

4

2

10

3

3

In: Statistics and Probability

4) Using the key below, Cash Accounts receivable Inventory Equipment Accumulated depreciation Accounts payable Capital stock...

4)

Using the key below,

Cash Accounts receivable Inventory Equipment Accumulated depreciation Accounts payable Capital stock Retained earnings
1 2 3 4 5 6 7 8 9 10 11 12 13   14          15     16    

where should a corporation record depreciation on equipment?

15 and 10

9 and 16

7 and 16

15 and 8

5)

Using the key below,

Cash Accounts receivable Inventory Equipment Accumulated depreciation Accounts payable Capital stock Retained earnings
1 2 3 4 5 6 7 8 9 10 11 12 13   14          15     16    

where should a corporation record paying for advertising for the period?

15 and 2

15 and 12

1 and 16

11 and 16

6)

Using the key below,

Cash Accounts receivable Inventory Equipment Accumulated depreciation Accounts payable Capital stock Retained earnings
1 2 3 4 5 6 7 8 9 10 11 12 13   14          15     16    

where should a corporation record paying for cash dividends?

15 and 2

13 and 12

1 and 16

13 and 2

In: Accounting

Problem 1 There is no need for government intervention when positive externalities are present because no...

Problem 1
There is no need for government intervention when positive externalities are present because no one is being harmed”. Discuss the validity of this statement.


Problem 2
Evaluate the following statement:
The only amount of acceptable pollution is no pollution at all

Problem 3

Following are marginal abatement costs of three firms, related to the quantity of emissions. Each firm is now emitting 10 tons/week, so total emissions are 30 tons/week. Suppose we wish to reduce total emissions by 50 percent, to 15 tons per week.
Compare the total costs of doing this:
(a) With an equiproportionate decrease in emissions
(b) With a decrease that meets the equimarginal principle

Emission (tons/week) 10 9 8 7 6 5 4 3 2 1 0
Firm 1 ($/ton) 0 4 8 12 16 20 24 28 36 46 58
Firm 2 ($/ton) 0 1 2 4 6 8 12 20 24 28 36
Firm 3 ($/ton) 0 1 2 3 4 5 6 7 8 9 10

In: Economics

Call Center Shift A Average Call Time Shift B Average Call Time Average Satisfaction Level Average...

Call Center Shift A Average Call Time Shift B Average Call Time Average Satisfaction Level Average Number of Employees
1 14 29 2 100
2 1 1 1 90
3 53 60 4 80
4 10 25 2 54
5 85 71 4 69
6 18 33 2 54
7 24 40 2 42
8 58 65 4 67
9 33 46 3 30
10 9 19 1 48
  1. Use the z-score to determine which call centers, if any, should be considered outliers in each of the four variables. If there are any outliers in any category, please list them and state for which category they are an outlier.
  2. Compute the sample correlation coefficient, showing the relationship between Satisfaction Level and each of the other three variables (Shift A Average Call time, Shift B Average Call Time, Average Number of Employees). Explain what the correlation coefficients tell us about the three pairs of relationships. Use tables, charts, or graphs to support your conclusions.

In: Statistics and Probability