lines = [ { "name": "student19",
"test1": "70",
"test2": "70",
"test3": "83",
"test4": "99",
"test5": "97"
},
{
"name": "student20",
"test1": "68",
"test2": "68",
"test3": "81",
"test4": "74",
"test5": "76"
},
{
"name": "student21",
"test1": "74",
"test2": "73",
"test3": "84",
"test4": "84",
"test5": "69"
},]
I need to sort the test3 only in descending order using python lambda function.
it should look like something like this:
l_func=lambda line: here goes the function
return output=sorted(lines, key=l_func)
thanks
In: Computer Science
One of your new employees notes that your debt has a lower cost of capital (5%) than your equity (15%). So, he suggests that the firm swap its capital structure from 26% debt and 74% equity to 74% debt and 26% equity instead. He estimates that after the swap, your cost of equity would be 21%.
a. What would be your new cost of debt? Make your calculations based on your firm's pre-tax WACC.
b. Have you lowered your overall cost of capital?
In: Finance
Check if the following data set corresponds to normal distribution or not?
Life Expectancies for Men in European Countries in 2011:
73 79 67 78 69 66 78 74 71 74 79 75 77 71 78 78 68 78 78 71 81 79 80 80 62 65 69 68 79 79 79 73 79 79 72 77 67 70 63 82 72 72 77 79 80 80 67 73 73 60 65 79 66
In: Statistics and Probability
Simulation and Expected Values: Yale Law School says 74% of their students pass the bar exam on their first try.
To simulate passing students, we could assign the random digits as:
00 to 49 = pass first try, 50 to 99 = fail first try
0 to 7 = pass first try, 8 to 9 = fail first try
00 to 73 = pass first try, 74 to 99 = fail first try
0 to 4 = pass first try, 5 to 9 = fail first try
The outcomes for this experiment are __________________, with a probability of ________________, and __________________, with a probability of __________________.
In: Statistics and Probability
Check My Work
|
The National Football League (NFL) polls fans to develop a rating for each football game. Each game is rated on a scale from 0 (forgettable) to 100 (memorable). The fan ratings for a random sample of 12 games follow.
a. Develop a point estimate of mean fan rating
for the population of NFL games (to 2 decimals). b. Develop a point estimate of the standard deviation for the population of NFL games (to 4 decimals) |
In: Math
QUESTION 5
Use your TI83 (or Excel):
A normally distributed population has a mean of 72 and a standard
deviation of 14. Determine the probability that a random sample of
size 35 has an average of less than 73.
Round to four decimal places.
QUESTION 6
A normally distributed population has a mean of 71 and a standard
deviation of 15. Determine the probability that a random sample of
size 26 has an average greater than 74.
Round to four decimal places.
QUESTION 7
A normally distributed population has a mean of 76 and a standard
deviation of 14. Determine the probability that a random sample of
size 25 has an average of less than 74.
Round to four decimal places.
QUESTION 8
Use your TI83 (or Excel):
A normally distributed population has a mean of 76 and a standard
deviation of 16. Determine the probability that a random sample of
size 36 has an average greater than 74.
Round to four decimal places.
In: Statistics and Probability
A company produces electric motors for use in home appliances. One of the company’s managers is interested in examining the relationship between delivery costs in a month and the number of motors produced that month that were returned by dissatisfied customers (Y). He has collected the data in the file.Write the theoretical formula and calculate using excel the r-square of the regression equation and interpret the result.
| Month | Delivery cost (k$) X | Motors_Returned Y |
| 1 | 43,55 | 67 |
| 2 | 55,83 | 64 |
| 3 | 48,53 | 65 |
| 4 | 48,55 | 65 |
| 5 | 69,29 | 65 |
| 6 | 64,39 | 64 |
| 7 | 58,32 | 64 |
| 8 | 76,90 | 67 |
| 9 | 65,98 | 64 |
| 10 | 43,44 | 67 |
| 11 | 41,50 | 67 |
| 12 | 55,07 | 64 |
| 13 | 60,74 | 64 |
| 14 | 41,06 | 68 |
| 15 | 64,58 | 64 |
| 16 | 70,22 | 65 |
| 17 | 68,25 | 65 |
| 18 | 50,93 | 65 |
| 19 | 76,35 | 67 |
| 20 | 43,93 | 67 |
| 21 | 60,25 | 64 |
| 22 | 42,22 | 67 |
| 23 | 79,18 | 68 |
| 24 | 66,63 | 64 |
| 25 | 79,67 | 68 |
| 26 | 52,79 | 65 |
| 27 | 50,58 | 65 |
| 28 | 66,86 | 64 |
| 29 | 42,95 | 67 |
| 30 | 62,45 | 64 |
| 31 | 42,73 | 67 |
| 32 | 78,45 | 67 |
| 33 | 74,49 | 66 |
| 34 | 62,68 | 64 |
| 35 | 74,41 | 66 |
| 36 | 42,41 | 67 |
In: Statistics and Probability
17, 22, 26, 29, 34, x, 42, 67, 70, y
24, 62, 20, 65, 27, 67, 69, 32, 40, 53, 55, 47, 33, 45, 55, 56, 49, 58
|
Production level (‘000) |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
|
Average Total cost (sh 000) |
70 |
65 |
50 |
40 |
30 |
25 |
20 |
21 |
|
Class |
10-19 |
20-29 |
30-39 |
40-49 |
50-59 |
60-69 |
|
Frequency |
4 |
66 |
47 |
36 |
12 |
4 |
Find
|
Price (x) |
32 |
33 |
35 |
40 |
47 |
46 |
44 |
38 |
50 |
58 |
|
Demand (y) |
28 |
25 |
27 |
30 |
20 |
18 |
18 |
31 |
12 |
10 |
Determine the linear regression equation of the form y= a+bx that relates price (x) and demand (y).
There are three arrangements of the word DAD, namely DAD, ADD, and DDA. How many arrangements are there of the word PROBABILITY?
In: Statistics and Probability
Five observations taken for two variables follow.X= 6 10 15 20 27 Y= 6 10 6 18 12 a. What does the scatter diagram indicate about a relationship between and ? b. Compute the sample covariance (to 2 decimal). c Compute the sample correlation coefficient (to 3 decimals). What can you conclude, based on your computation of the sample correlation coefficient?
In: Statistics and Probability
25. In Data Mining, ___ is a set of input variables used to predict an observation's outcome class or continuous outcome value.
26. During each iteration of cluster analysis, the distances between new clusters are determined until any two clusters are sufficiently close to be linked using an algorithm called ___.
27. In the CRISP-DM process for data mining, which phase is the cleaning of the data so it is ready for modeling tools?
In: Computer Science