def sum_gt_avg(num_list): Implement a function that returns the sum of the numbers in num_list that have a value greater than the average value in the list. • Parameters: num_list is a list of numbers (mixed integers and floats) • Examples: sum_gt_avg([1,2,3,4,5]) → 9 # 4+5
sum_gt_avg([1,2,3,-4,5]) → 10 # 2+3+5
sum_gt_avg([-1,-2,-3,-4,-5]) → -3 # -1-2
in python
In: Computer Science
You are considering two mutual funds as an investment. The possible returns for the funds are dependent on the state of the economy and are given in the accompanying table.
State of the Economy Fund 1 Fund 2 Good 42 % 46 % Fair 18 % 25 % Poor −4 % −17 % You believe that the likelihood is 10% that the economy will be good, 40% that it will be fair, and 50% that it will be poor. a. Find the expected value and the standard deviation of returns for Fund 1. (Round intermediate calculations to at least 4 decimal places and final answers to 2 decimal places.) b. Find the expected value and the standard deviation of returns for Fund 2. (Round intermediate calculations to at least 4 decimal places and final answers to 2 decimal places.) c. Which fund will you pick if you are risk averse? Fund 1 Fund 2
In: Statistics and Probability
2. Given the project information below, what is the probability of completing the National Holiday Toy project in 93 time units?
Note 1: The Critical Path activities are: 1, 2, 4, 5, 6, 7. Note 2: Using the examples in Appendix 7.1 as a guide, calculate the weighted average activity time of each task (te). Determine the project duration. Calculate the variance. Use the Z-score formula, in Appendix 7.1 to calculate the Z-score. Note that non-critical path activities are not included in Z-score calculations. Also be aware that a critical path activity may not need to be included, if it occurs parallel with another critical path activity and has the same te. Then use the statistical table A7.2 (or look for a Z-score table on the Internet, because the one is the text is abbreviated) and find the probability of completing the project in 93 time units.
| ID | Description | Predecessor | (a) | (m) | (b) | te | Variance |
| 1 | Design package | none | 6 | 12 | 24 | ||
| 2 | Design product | 1 | 16 | 19 | 28 | ||
| 3 | Build package | 1 | 4 | 7 | 10 | ||
| 4 | Secure patent | 2 | 21 | 30 | 39 | ||
| 5 | Build product | 2 | 17 | 29 | 47 | ||
| 6 | Paint | 3, 4, 5 | 4 | 7 | 10 | ||
| 7 | Test market | 6 | 13 | 16 | 19 |
In: Operations Management
The major features of the management-union relations in the USA
are found among the elements
inserted below:
1. the negotiations take place at the company level;
2. the negotiations take place at two levels - company and
branch;
3. the negotiations take place at three levels - company, branch
and national;
4. the negotiations have a constructive character;
5. the negotiations have an adversarial character;
6. the power of trade unions tends to remain constant;
7. the power of trade unions tends to increase;
8. The power of trade unions tends to diminish.
Which of the following combinations correctly and completely
represents the main characteristics of the
relations between management and trade unions in the USA:
a. 1-4-6;
b. 2-5-8;
c. 1-4-7;
d. 1-5-8;
e. 2-4-6.
In: Operations Management
Write a python function image compress() that takes one argument called filename, which is the name of a file that contains a N × N (N-pixel by N-pixel) “grayscale bitmap image”.
A “grayscale bitmap image” is an image of the following form where every pixel contains a grayscale color value between 0 − 255 (inclusive). Colour value 0 means that pixel should appear completely black and color value 255means completely white. Any other value in between stands for different shades of gray.
The bitmap representation of the above 5 × 5 image would be a text file as follows:
255 255 125 200 000 255 255 255 255 255 125 255 255 255 255 200 255 255 255 255 000 255 255 255 255
The function compresses the image by storing information about only those pixels which have color values other than 255 by storing only those pixels which are not white. It returns a list of tuples such that each tuple contains three elements: (the row of the pixel, the column of the pixel, the colour value)
For this example,for the above image,the returned list would be[(0, 2, 125), (0, 3, 200), (0, 4, 0), (2, 0, 125), (3, 0, 200), (4, 0, 0)].
Additional Examples:
Input file: image1.txt
255 255 125 200 000 255 125 255 255 255 125 255 000 255 255 200 255 255 000 255 000 255 255 255 000
Return value of image compress ("image1.txt"):[(0, 2, 125), (0,
3, 200), (0, 4, 0), (1, 1, 125), (2, 0, 125), (2, 2, 0), (3, 0,
200), (3, 3, 0), (4, 0, 0),
(4, 4, 0)]
Input file: image2.txt
255 255 255 000 255 255 255 000 255 255 255 000
Return value of image compress("image2.txt"): [(1, 0, 0), (2, 1, 0), (3, 2, 0)]
Input file: image3.txt
128 255 255 255 192 128 000 255 255 180 000 255 000 255 149 076 255 255 000 134
Return value of image compress("image3.txt"):[(0, 0, 128), (0,
4, 192), (1, 0, 128), (1, 1, 0), (1, 4, 180), (2, 0, 0), (2, 2, 0),
(2, 4, 149), (3, 0, 76),
(3, 3, 0), (3, 4, 134)]
In: Computer Science
The table shows the numbers of new-vehicle sales (in thousands) in the United States for Company A and Company B for 10 years. The equation of the regression line is ModifyingAbove y with caret equals 0.975 x plus 1 comma 259.19. Complete parts (a) and (b) below. New-vehicle sales left parenthesis Company Upper A right parenthesis comma x 4 comma 144 3 comma 880 3 comma 595 3 comma 443 3 comma 295 3 comma 110 2 comma 849 2 comma 489 1 comma 946 2 comma 086 New-vehicle sales left parenthesis Company Upper B right parenthesis comma y 4 comma 891 4 comma 836 4 comma 836 4 comma 701 4 comma 652 4 comma 469 4 comma 681 3 comma 832 2 comma 971 2 comma 779
(a) Find the coefficient of determination and interpret the result.
r^2=
(b) Find the standard error of estimate and interpret result.
Se=
In: Statistics and Probability
A lab instructor asked her class of 30 college seniors how many beers or mixed drinks they had last Saturday night that marked the beginning of the Spring Break. The data are presented below.
|
Female |
Male |
|
1 |
4 |
|
0 |
3 |
|
2 |
3 |
|
3 |
5 |
|
0 |
8 |
|
0 |
0 |
|
0 |
3 |
|
1 |
4 |
|
2 |
0 |
|
2 |
5 |
|
3 |
5 |
|
6 |
0 |
|
4 |
3 |
|
0 |
4 |
|
0 |
4 |
Using SPSS, perform an independent t-test to test whether there was a significant gender difference in alcohol consumption in last Saturday's party.
I am also confused as to how to put this into SPSS to get the answer.
In: Statistics and Probability
Find the volume of the solid generated by revolving the region bounded by y = sqrt(x) and the lines and y=2 and x=0 about:
1) the x-axis.
2) the y-axis.
3) the line y=2.
4) the line x=4.
In: Math
Use the following to answer questions 6-10:
Suppose that firms 1, and 2 are Cournot duopolists in the salt industry. The market demand curve can be specified as Q=20-p, Q=q1+q2
(The firms choose their quantities simultaneously.)
The cost to firm 1 is C(q1)=1q1.
The cost to firm 2 is C(q2)=2q2.
6) Find Firm 1 optimal production levels q1=?.
Select one:
a.
0<q1<2
b.
2<q1<4
c.
4<q1<6
d.
6<q1
e.
None of the above
7) Find Firm 2 optimal production levels q2=?.
Select one:
a.
0<q2<2
b.
2<q2<4
c.
4<q2<6
d.
6<q2
e.
None of the above
8) Determine the equilibrium price? (p=?)
Select one:
a.
0<P<3
b.
3<P<4
c.
4<P<5
d.
5<P
e. None of the above
9) Firm 1 will earn? (pi1=?)
Select one:
a.
0<Pi1<10
b.
10<Pi1<20
c.
20<Pi1<22
d.
22<Pi1<23
e.
None of the above
10) Firm 2 will earn? (pi2=?)
Select one:
a.
0<Pi2<10
b.
10<Pi2<20
c.
20<Pi2<22
d.
22<Pi2<23
e.
None of the above
In: Economics
how do you find the range of the following equations y=(x^2+3x)/(x^2-4) (the range y can't equal zero please explain how to get the answer because I assumed it's the coefficient of x^2 divided by x^2 which is one not zero)
Question 2) find the range of y=(2x^2-5x-3)/(x^2-4x+3) (the range is y can't equal to 2 and 3.5, please explain why when 3.5 is the non permissible value)
Question 3) find the range of y=(x^2-4)/(x^2-5x+6) (the range is y can't equal to 2 and -4) please explain why
thank you very much
In: Math