Questions
Data shows graduate program admission decisions (Yes: 1 and No: 2), GRE score and undergraduate GPA...

Data shows graduate program admission decisions (Yes: 1 and No: 2), GRE score and undergraduate GPA for twenty-five students.

Tasks:

Examine if the given data is suitable for the application of linear discriminant analysis.

Create a linear discriminant function predicting admission decisions.

Comment on the classification accuracy.

Predict the admission decision given GRE score = 690 and GPA = 3.2.

Perform logistic regression analysis for the data.

Compare the classification accuracies of both methods.

Admit GRE GPA
2 790 3.8
1 370 3.4
2 480 2.9
1 580 3.3
1 620 3.9
1 740 3.2
2 490 3.1
2 720 3.7
1 740 3.9
2 460 3.4
1 610 3.3
1 260 2.5
2 740 4
1 700 3.6
1 760 3.5
1 410 2.8
1 700 4
1 800 3.4
2 680 2.9
2 520 3.2
1 700 3.5
1 580 3.3
2 470 3.9
1 640 3.8
2 410 3.8

In: Statistics and Probability

Use Minitab Data shows graduate program admission decisions (Yes: 1 and No: 2), GRE score and...

Use Minitab

Data shows graduate program admission decisions (Yes: 1 and No: 2), GRE score and undergraduate GPA for twenty-five students.

Tasks:

Examine if the given data is suitable for the application of linear discriminant analysis.

Create a linear discriminant function predicting admission decisions.

Comment on the classification accuracy.

Predict the admission decision given GRE score = 690 and GPA = 3.2.

Perform logistic regression analysis for the data.

Compare the classification accuracies of both methods.

Admit GRE GPA
2 790 3.8
1 370 3.4
2 480 2.9
1 580 3.3
1 620 3.9
1 740 3.2
2 490 3.1
2 720 3.7
1 740 3.9
2 460 3.4
1 610 3.3
1 260 2.5
2 740 4
1 700 3.6
1 760 3.5
1 410 2.8
1 700 4
1 800 3.4
2 680 2.9
2 520 3.2
1 700 3.5
1 580 3.3
2 470 3.9
1 640 3.8
2 410 3.8

In: Statistics and Probability

question13: TABLE 14-1 A manager of a product sales group believes the number of sales made...

question13: TABLE 14-1

A manager of a product sales group believes the number of sales made by an employee ( Y) depends on how many years that employee has been with the company ( X 1) and how he/she scored on a business aptitude test ( X 2). A random sample of 8 employees provides the following:

Employee Y X1 X2
1 100 10 7
2 90 3 10
3 80 8 9
4 70 5 4
5 60 5 8
6 50 7 5
7 40 1 4
8 30 1 1



Referring to Table 14-1, for these data, what is the estimated coefficient for the variable representing scores on the aptitude test?

21.293

4.698

3.103

0.998

question 14:

TABLE 14-1

A manager of a product sales group believes the number of sales made by an employee ( Y) depends on how many years that employee has been with the company ( X 1) and how he/she scored on a business aptitude test ( X 2). A random sample of 8 employees provides the following:

Employee Y X1 X2
1 100 10 7
2 90 3 10
3 80 8 9
4 70 5 4
5 60 5 8
6 50 7 5
7 40 1 4
8 30 1 1



Referring to Table 14-1, if an employee who had been with the company 5 years scored a 9 on the aptitude test, what would his estimated expected sales be?

17.98

55.62

60.88

79.09

In: Math

Java Starter Code: import java.util.Scanner; public class GameScore { static Scanner keyboard = new Scanner(System.in); public...

Java

Starter Code:

import java.util.Scanner;

public class GameScore {

static Scanner keyboard = new Scanner(System.in);

public static void main(String[] args) {
int team1[] = new int[4];
int team2[] = new int[4];

for (int qtr = 0; qtr < 4; qtr++) {
quarterScoring(team1, team2, qtr);
}

int team1Total = teamTotal(team1);
int team2Total = teamTotal(team2);

displayGameResults(team1, team2);

if (team1Total > team2Total) {
System.out.println("Team 1 has won the game!");
} else {
System.out.println("Team 2 has won the game!");
}
}

static int teamTotal(int[] team) {
// This method will add the points a team has scored during all four quarters of a game.
return 0;
}

static void quarterScoring(int[] team1, int[] team2, int qtr) {
// This method will continue to prompt user which team scored, and how many points are scored
// When this method finishes, the appropriate team's score for the quarter will be assigned
}

static void displayGameResults(int[] team1, int[] team2) {
// This method will display the scores for each team per quarter as well as the total score

}
}

Sample Output:
Quarter: 1
Which team scored? (1 or 2)
1
How many points did they score (1, 2, or 3)?
1
Which team scored? (1 or 2)
1
How many points did they score (1, 2, or 3)?
2
Which team scored? (1 or 2)
2
How many points did they score (1, 2, or 3)?
3
Which team scored? (1 or 2)
3
Invalid team - quarter has ended.
Quarter: 2
Which team scored? (1 or 2)
2
How many points did they score (1, 2, or 3)?
3
Which team scored? (1 or 2)
2
How many points did they score (1, 2, or 3)?
3
Which team scored? (1 or 2)
1
How many points did they score (1, 2, or 3)?
3
Which team scored? (1 or 2)
0
Invalid team - quarter has ended.
Quarter: 3
Which team scored? (1 or 2)
1
How many points did they score (1, 2, or 3)?
1
Which team scored? (1 or 2)
1
How many points did they score (1, 2, or 3)?
1
Which team scored? (1 or 2)
2
How many points did they score (1, 2, or 3)?
2
Which team scored? (1 or 2)
3
Invalid team - quarter has ended.
Quarter: 4
Which team scored? (1 or 2)
0
Invalid team - quarter has ended.

Team Scores by quarter:
Q1 Q2 Q3 Q4 Total
3 3 2 0 8
3 6 2 0 11

Team 2 has won the game!

In: Computer Science

​As you can see in the following table, demand for heart transplant surgery at Washington General Hospital has increased steadily in the past few years

As you can see in the following table, demand for heart transplant surgery at Washington General Hospital has increased steadily in the past few years: 

Year12345
Heart Transplants48.052.053.057.057.0

The director of medical services predicted 6 years ago that demand in year 1 would be 44.0 surgeries.

a) Using exponential smoothing with a of 0.60 and the given forecast for year 1, the forecasts for years 2 through 6 are (round your responses to one decimal place): 

Year123456
Forecast44.046.449.851.754.956.2

For the forecast made using exponential smoothing with a = 0.60 and the given forecast for year 1, MAD = 4.1 surgeries (round your response to one decimal place). 

Using exponential smoothing with a of 0.90 and the given forecast for year 1, the forecasts for years 2 through 6 are (round your responses to one decimal place): 

Year123456
Forecast44.047.651.652.956.657.0

For the forecast made using exponential smoothing with a = 0.90 and the given forecast for year 1, MAD = 2.9 surgeries (round your response to one decimal place). 


b) Forecasts for years 4 through 6 using a 3-year moving average are (round your responses to one decimal place): 

Year456
Forecast51.054.055.7

For forecasts made using a 3-year moving average, MAD = 4.5 surgeries (round your response to one decimal place).

c) Forecasts for years 1 through 6 using the trend-projection method are (round your responses to one decimal place): 

Year123456
Forecast






In: Other

Reading journal articles can be challenging for students, as they are often technical in nature. A...

Reading journal articles can be challenging for students, as they are often technical in nature. A high school that prides itself on preparing students for college wants to purchase journals that are written at a level accessible to students. The school librarian recruits four students with varying academic ability to read articles from four different journals and rate their readability from 1 (very difficult to read and understand) to 7 (very easy to read and understand). Some hypothetical data are shown in the table.

Table: Journal and Readability

Journal 1 Journal 2 Journal 3 Journal 4
2 3 4 5
1 3 3 5
2 4 4 6
2 4 3 6


a) Perform an F test at alpha level .05, using excel. Submit your workbook showing the results.


b) What is the conclusion in terms of the null hypothesis, reject or fail to reject? Explain why.

In: Statistics and Probability

Use this constant dictionary as a global variable: tile_dict = { 'A': 1, 'B': 3, 'C':...

Use this constant dictionary as a global variable:

tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }

Implement function scrabblePoints(word) that returns the calculated points for the word based on the tile_dict above. The word parameter is a string. This function takes the string and evaluates the points based on each letter in the word (points per letter is set by the global dictionary). P or p is worth the same points. No points calculated for anything that is not A-Z or a-z.

[You may use upper() and isalpha() ONLY and no other method or built-in function]

Examples:

word = “PYTHON”

print(scrabblePoints(word))

returns:

14

word = “hello!!”

print(scrabblePoints(word))

returns:

8

word = “@#$=!!”

print(scrabblePoints(word))

returns:

0

Note: This function relies on scrabblePoints. Function you solved in Question 2.

Implement function declareWinner(player1Word = “skip”, player2Word = “skip”) that returns either “Player 1 Wins!”, “Player 2 Wins!”, “It’s a Tie”, “Player 1 Skipped Round”, “Player 2 Skipped Round”, “Both Players Skipped Round”. The player1Word and player2Word parameters are both type string. Assume input is always valid. This function should call on the function scrabblePoints to earn credit.

[No built-in function or method needed]

Examples:

player1Word = “PYTHON”

player2Word = “Pizza”

     print(declareWinner(player1Word, player2Word))

     returns:           

     Player 2 Wins!

              print(declareWinner(player1Word))

              returns:           

              Player 2 Skipped Round

In: Computer Science

A chain of four matrices A1, A2, A3 and A4, with order 3 X 4, 4...

A chain of four matrices A1, A2, A3 and A4, with order 3 X 4, 4 X 2, 2 X 8 and 8 X 7 respectively. Deduce m[1, 4] to find best possible minimum number of multiplication

In: Computer Science

An article in the journal PLOS ONE describes a study in which the oviposition preferences of...

An article in the journal PLOS ONE describes a study in which the oviposition preferences of Tecia solanivora, the Central American potato tuberworm or Guatemalan potato moth, are compared across different varieties of Solanum tuberosum (potato).

Suppose that Paul, a plant pathologist, collects a sample of 194 potato plants. Paul records the total number of T. solanivora eggs laid on and around each plant. The egg counts are provided in the data file.

CrunchIt!    CSV   Excel   JMP   Mac Text    Minitab   PC Text   R   SPSS   TI Calc  

Let ? be a random variable taking on values equal to the number of eggs laid on or around each plant.

Compute   x¯ , the mean number of eggs laid on or around each plant. Report your answer to at least two decimal places of precision.

x¯=

eggs

Compute  s , the sample standard deviation of the number of eggs laid on or around each plant. Report your answer to at least three decimal places of precision.

s=

eggs

"EGGCNT"
6
3
3
10
1
80
9
5
5
39
2
0
64
31
21
23
9
17
6
20
2
7
5
30
29
6
52
5
4
1
47
8
15
43
3
23
2
5
54
22
13
12
20
4
2
4
13
75
28
13
72
78
5
78
58
63
60
22
16
48
3
2
81
6
18
1
60
40
15
9
11
39
0
14
2
49
4
52
1
4
0
45
10
0
3
7
3
53
4
0
5
16
20
2
0
0
0
27
1
0
28
1
9
0
0
0
10
0
2
0
31
1
0
10
8
2
10
0
39
42
33
3
2
0
0
0
0
0
7
6
0
2
26
7
32
8
32
1
11
2
1
3
1
0
26
8
0
7
2
1
0
23
0
3
98
3
3
3
0
13
0
2
12
0
10
18
24
115
10
10
0
0
0
2
28
2
0
27
0
3
0
8
0
7
27
29
3
0
70
9
7
17
15
2

In: Statistics and Probability

Question 1 Office Support, Inc. provides on-site repair for most large photocopy machines. It currently has...

Question 1

Office Support, Inc. provides on-site repair for most large photocopy machines. It currently has five trained repair teams that it sends out on an on-call basis. Since the company advertises one-day service, it will not accept more than five requests for service per day. Two months ago, the vice president started considering expanding the workforce. At that time he asked the call desk to record the actual calls for each of the next 40 days. The data to respond to the questions below are provided in the Office worksheet. Define the random variable x as the number of service calls per day.   Clearly x is a discrete random variable.

4 points: Use built-in Excel functions to find the minimum and maximum values of x. That is, find the minimum number and maximum number of service calls per day over the 40 day period.   

Place the minimum in cell E2.

Place the maximum in cell E3.

4 points: Based on the minimum and maximum number of service calls per day in the sample of 40 days, specify the complete range of x. That is, make a list of all possible outcomes of x under the column labeled x starting in cell G2.

9 points: Using the built-in Excel function named COUNTIF, calculate the count (frequency) of each outcome (x) in the sample. In general, your function with its arguments will appear as
“=COUNTIF(argument 1, argument 2),” where argument 1 is the data range and argument 2 is a cell reference containing a specific outcome value. Start by finding the count for x = 0, then finding the count for all other outcomes. The values will be under the column labeled “Count.”

In the first unused cell following the last count value (from above), use Excel’s built-in SUM function to calculate the total count (frequency). For example, if the count cells went from H2:H7, enter the sum in cell H8. Format the sum cell (box, color, etc.) to highlight that it contains the sum of the values above it.

Day Number of Service Calls Range of x Value 1a x Count P(x)
1 2 Min(x) = 0 1
2 1 Max(x) = 6 2
3 3 3
4 2 4
5 4 5
6 3 6
7 2
8 0 E(x) = Var(x) =
9 5 StdDev(x) =
10 2 Grader
11 5 1b
12 3 1c
13 4 1d
14 2 1e
15 6 1f
16 1 1g
17 0 1h
18 3
19 5
20 2
21 4
22 3
23 5
24 1
25 5
26 2
27 2
28 4
29 3
30 6
31 2
32 4
33 0
34 4
35 5
36 1
37 3
38 4
39 2
40 3

In: Statistics and Probability