Questions
4. Consider the triangular probability distribution with PDF f(x) = 0 if x <= 0 or...

4. Consider the triangular probability distribution with PDF f(x) = 0 if x <= 0 or x >= 4, x/2 if 0 < x <= 1, (4-x)/6 if 1 < x < 4.

(a) Obtain the CDF F

(b) Obtain its inverse F^-1

(c) Describe the inverse CDF simulation method for this given problem.

In: Statistics and Probability

A researcher is interested in studying the effect that the amount of fat in the diet...

A researcher is interested in studying the effect that the amount of fat in the diet and amount of exercise has on the mental acuity of middle-aged women. The researcher used three different treatment levels for the diet and two levels for the exercise. The results of the acuity test for the subjects in the different treatment levels are shown below.

Diet

Exercise

<30% fat

30% - 60% fat

>60% fat

<60 minutes

4

3

2

4

1

2

2

2

2

4

2

2

3

3

1

60 minutes

6

8

5

or more

5

8

7

4

7

5

4

8

5

5

6

6

a) Perform a two-way analysis of variance and explain the results. (Show all work)

b) Find the effect size for each factor and the interaction and explain the results. (Show all work)

In: Statistics and Probability

You need to complete n courses in order to complete your degree. Some of these courses...

You need to complete n courses in order to complete your degree. Some of these courses have prerequisites, for example: “course 1 has to be completed before course 3”. Your goal is to find an order to take all n courses and complete your degree.


Observe the following input file. The first line in the file has 2 numbers n and p where n is number of courses and p is the number of prerequisites.


Input:
5 3
1 2
3 1
4 5


The first line indicates that there are 5 courses numbered 1 to 5 and 3 prerequisites “1 should be taken before 2”, “3 should be taken before 1” and “4 should be taken before 5”
The output should an ordered list of the sequence of courses or “Not possible”. You can print any valid sequence. For the above example the output can be 3, 4 1, 2,5 or 4, 3, 1, 5, 2 etc…

Using topological sort (DFS or source removal) create a python algorithm.

In: Computer Science

Sentinel Company is considering an investment in technology to improve its operations. The investment will require...

Sentinel Company is considering an investment in technology to improve its operations. The investment will require an initial outlay of $245,000 and will yield the following expected cash flows. Management requires investments to have a payback period of 4 years, and it requires a 8% return on investments. (PV of $1, FV of $1, PVA of $1, and FVA of $1) (Use appropriate factor(s) from the table provided.)

Period Cash Flow
1 $ 47,900
2 52,800
3 76,000
4 94,100
5 126,600


Required:
1. Determine the payback period for this investment.
2. Determine the break-even time for this investment.
3. Determine the net present value for this investment.

Year Cash inflow (outflow) Cumulative Net Cash Inflow (outflow)
0 $(245,000)
1
2
3
4
5
Payback period =
Year Cash inflow (outflow) Table factor Present Value of Cash Flows Cumulative Present Value of Cash Flows
0 $(245,000)
1
2
3
4
5
Break-even time =
Net present value

In: Accounting

Consider the following scheduling problem. There are n jobs and a single machine. Each job has...

Consider the following scheduling problem. There are n jobs and a single machine. Each job has a length ℓi and a weight wi . The weight wi represents the importance of job i.

a) Let fi be the finishing time of job i. Design a greedy algorithm to minimize the weighted sum of the completion times ∑n i=1 wifi . Your algorithm should run in time O(n log n) and output an ordering of the jobs.

b) Prove the correctness of your algorithm and analyze its running time.

Example: Suppose there are two jobs: t1 = 1, w1 = 2, t2 = 3, and w2 = 1. Doing job 1 first would give f1 = 1, f2 = 4, and a weighted sum of 2 · 1 + 1 · 4 = 6, which is optimal. Doing job 2 first would yield f1 = 4, f2 = 3, and a larger weighted sum of 2 · 4 + 1 · 3 = 11. (Hint: how does the weighted sum change if we swap two adjacent jobs?)

In: Computer Science

1. Consider placing two point charges on an x-y plane, the first charge, q1, at (x1,...

1. Consider placing two point charges on an x-y plane, the first charge, q1, at (x1, y1), and the second charge , q2, at (x2, y2).

2. Derive an expression for the electric potential and field at any arbitrary point (x, y) in terms of q1, q2, x1, x2, y1 and y2.

3. Choose some reasonable values for q1, q2, x1, x2, y1 and y2 and make a rough sketch of what you expect the electric potential/field to look like. Your picture doesn’t necessarily have to be correct, but you should include some justification for why your sketch looks the way it does. 4. Use SageMath to draw the exact electric potential and field using the expression derived above. Below is an example. x, y = var("x y") g = Graphics() g += contour_plot(1.5 + 0.2*x*y, (x, -4, 4), (y, -4, 4), fill=False, cmap="jet", labels=True, contours=[0, 1, 2, 3, 4], label_fontsize=14) g += plot_vector_field((y/2, -x/2) , (x, -4, 4), (y, -4, 4)) g.show() Your final result should look something like the figure below. Note how you can clearly see the two point charges at (1, 2) and (2, 1.5).

In: Physics

problem 08-23 Algo (Using Regression Analysis for Forecasting Quarter:1,2,3,4 year 1: 2,0,5,5 year 2: 5,2,8,8 year...

problem 08-23 Algo (Using Regression Analysis for Forecasting

Quarter:1,2,3,4

year 1: 2,0,5,5

year 2: 5,2,8,8

year 3: 7,6,10,10

Use a multiple regression model with dummy variables as follows to develop an equation to account for seasonal effects in the data. Qtr1 = 1 if Quarter 1, 0 otherwise; Qtr2 = 1 if Quarter 2, 0 otherwise; Qtr3 = 1 if Quarter 3, 0 otherwise.
If required, round your answers to three decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300) If the constant is "1" it must be entered in the box. Do not round intermediate calculation.
ŷ =   +   Qtr1 +   Qtr2 +   Qtr3
(c) Compute the quarterly forecasts for next year based on the model you developed in part (b).
If required, round your answers to three decimal places. Do not round intermediate calculation.
Year Quarter Ft
4 1
4 2
4 3
4 4
(d) Use a multiple regression model to develop an equation to account for trend and seasonal effects in the data. Use the dummy variables you developed in part (b) to capture seasonal effects and create a variable t such that t = 1 for Quarter 1 in Year 1, t = 2 for Quarter 2 in Year 1,… t = 12 for Quarter 4 in Year 3.
If required, round your answers to three decimal places. For subtractive or negative numbers use a minus sign even if there is a + sign before the blank. (Example: -300)
ŷ =   +  Qtr1 +  Qtr2 +  Qtr3 +   t
(e) Compute the quarterly forecasts for next year based on the model you developed in part (d).
Do not round your interim computations and round your final answer to three decimal places.
Year Quarter Period Ft
4 1 13
4 2 14
4 3 15
4 4 16
(f) Is the model you developed in part (b) or the model you developed in part (d) more effective?
If required, round your intermediate calculations and final answer to three decimal places.
Model developed in part (b) Model developed in part (d)
MSE

Can you please show me how to step up excel spreadsheet for this problem. How to figure out the problems on this question.

In: Math

A researcher interviews 50 employees of a large manufacturer and collects data on each worker’s hourly...

A researcher interviews 50 employees of a large manufacturer and collects data on each worker’s hourly wage (Wage), years of higher education (EDUC), experience (EXPER), and age (AGE). The data is shown below; the data set can also be found on the text website; labeled Hourly Wage. You will be examining the relationships between the following variables: wage and any relationship of this variable to 1) education and 2) experience. Must use either Minitab or Excel to develop both the scatter plots and find the correlation coefficients.

Wage

EDUC EXPER AGE Gender
37.85 11 2 40 1
21.72 4 1 39 0
14.34 4 2 38 0
21.26 5 9 53 1
24.65 6 15 59 1
25.65 6 12 36 1
15.45 9 5 45 0
20.39 4 12 37 0
29.13 5 14 37 1
27.33 11 3 43 1
18.02 8 5 32 0
20.39 9 18 40 1
24.18 7 1 49 1
17.29 4 10 43 0
15.61 1 9 31 0
35.07 9 22 45 0
40.33 11 3 31 1
20.39 4 14 55 0
16.61 6 5 30 1
16.33 9 3 28 0
23.15 6 15 60 1
20.39 4 13 32 0
14.88 4 9 58 1
13.88 5 4 28 0
17.65 6 5 40 1
15.45 6 2 37 0
26.35 4 18 52 1
19.15 6 4 44 0
16.61 6 4 57 0
18.39 9 3 30 1
15.45 5 8 43 0
18.02 7 6 31 1
13.44 4 3 33 0
17.66 6 23 51 1
16.96 4 15 37 0
14.34 4 9 45 0
15.45 6 3 55 0
17.43 5 14 57 0
35.89 9 16 36 1
20.39 4 20 60 1
11.81 4 5 35 0
15.45 9 10 34 0
17.66 5 4 28 1
13.87 6 1 25 0
16.35 7 10 43 1
15.45 9 2 42 1
23.67 4 17 47 0
16.02 11 2 46 1
23.15 4 15 52 0
24.18 8 11 64 0

Please use either Minitab or Excel to develop both the scatter plots and find the correlation coefficients.



A. Which variable is the response variable? Which variables are the explanatory variables?

B. Develop a scatter plot comparing wage to education. Interpret the plot.

C. Develop a scatter plot comparing wage to experience. Interpret the plot.

D. Compute the correlation coefficients for wage and education and wage and experience. Then perform a hypothesis test for both correlations to determine if the correlations are statistically significant. Be sure to show the null and alternative hypotheses, decision rule, decisions and conclusions. Use alpha = .05. Note: Since the hypotheses and decision rule are the same for both tests, only need to write those steps once.  

E. Which of the explanatory variables provides the best predictor of the response variable? Support your response by citing both the scatter plot and correlation test.

In: Statistics and Probability

A researcher interviews 50 employees of a large manufacturer and collects data on each worker’s hourly...

A researcher interviews 50 employees of a large manufacturer and collects data on each worker’s hourly wage (Wage), years of higher education (EDUC), experience (EXPER), and age (AGE). The data is shown below; the data set can also be found on the text website; labeled Hourly Wage. You will be examining the relationships between the following variables: wage and any relationship of this variable to 1) education and 2) experience. Must use either Minitab or Excel to develop both the scatter plots and find the correlation coefficients.

Wage

EDUC EXPER AGE Gender
37.85 11 2 40 1
21.72 4 1 39 0
14.34 4 2 38 0
21.26 5 9 53 1
24.65 6 15 59 1
25.65 6 12 36 1
15.45 9 5 45 0
20.39 4 12 37 0
29.13 5 14 37 1
27.33 11 3 43 1
18.02 8 5 32 0
20.39 9 18 40 1
24.18 7 1 49 1
17.29 4 10 43 0
15.61 1 9 31 0
35.07 9 22 45 0
40.33 11 3 31 1
20.39 4 14 55 0
16.61 6 5 30 1
16.33 9 3 28 0
23.15 6 15 60 1
20.39 4 13 32 0
14.88 4 9 58 1
13.88 5 4 28 0
17.65 6 5 40 1
15.45 6 2 37 0
26.35 4 18 52 1
19.15 6 4 44 0
16.61 6 4 57 0
18.39 9 3 30 1
15.45 5 8 43 0
18.02 7 6 31 1
13.44 4 3 33 0
17.66 6 23 51 1
16.96 4 15 37 0
14.34 4 9 45 0
15.45 6 3 55 0
17.43 5 14 57 0
35.89 9 16 36 1
20.39 4 20 60 1
11.81 4 5 35 0
15.45 9 10 34 0
17.66 5 4 28 1
13.87 6 1 25 0
16.35 7 10 43 1
15.45 9 2 42 1
23.67 4 17 47 0
16.02 11 2 46 1
23.15 4 15 52 0
24.18 8 11 64 0

Please use either Minitab or Excel to develop both the scatter plots and find the correlation coefficients.



A. Which variable is the response variable? Which variables are the explanatory variables?

B. Develop a scatter plot comparing wage to education. Interpret the plot.

C. Develop a scatter plot comparing wage to experience. Interpret the plot.

D. Compute the correlation coefficients for wage and education and wage and experience. Then perform a hypothesis test for both correlations to determine if the correlations are statistically significant. Be sure to show the null and alternative hypotheses, decision rule, decisions and conclusions. Use alpha = .05. Note: Since the hypotheses and decision rule are the same for both tests, only need to write those steps once.  

E. Which of the explanatory variables provides the best predictor of the response variable? Support your response by citing both the scatter plot and correlation test.

In: Statistics and Probability

One hundred teachers attended a seminar on mathematical problem solving. The attitudes of representative sample of...

One hundred teachers attended a seminar on mathematical problem solving. The attitudes of representative sample of 12 of the teachers were measured before and after the seminar. A positive number for change in attitude indicates that a teacher's attitude toward math became more positive. The twelve change scores are as follows. 4; 8; −1; 1; 0; 4; −3; 2; −1; 5; 4; −2

1.) What is the standard deviation for this sample? (Round your answer to two decimal places.)

2.) What is the median change score? (Round your answer to one decimal place.)

*Please show step by step*

In: Statistics and Probability