The proportion of eligible voters in the next corporation election (in tumkur) who will vote for the incumbent is assumed to be 55%. What is the probability that in a random sample of 500 voters less than 49% say they will vote for the incumbent? Write your conclusion.
Write a Python code that will read 5 numbers from the user. Your program should print the first number, the sum of the first 2 numbers, the sum of the first 3 numbers, and so on up to the sum of 5 numbers.
==========================================================
Sample Input 1:
1
2
3
4
5
Sample Output 1:
1
3
6
10
15
explain the backward bending supply curve of labour through the price effect method
A random sample of n= 21 items is taken, resulting in a sample mean x¯= 17.0 with a sample standard deviation of s= 4.9. Assume x is normally distributed and use this information and α 0.05 test the following hypotheses.
H0: μ = 16
Ha: μ ≠ 16
Determine the critical value tc and t score value t based on the sample data.
How to implement this using vector
#ifndef __ROCKPAPERSCISSOR_H__
#define __ROCKPAPERSCISSOR_H__
enum ObjectType { ROCK, PAPER, SCISSOR };
void displayRules();
ObjectType retrievePlay(char selection);
bool validSelection(char selection);
void convertEnum(ObjectType object);
ObjectType winningObject(ObjectType player, ObjectType computer);
void gameResult(ObjectType player, ObjectType computer, int &winner);
void displayResults(int g_count, int w_count1, int w_count2);
#endif
Write a program to take a String as input then display the number of x characters word has in ascending order.
Example:
Enter a String
China is world most populous country
Number of 2 characters word : 1
Number of 4 characters word : 1
Number of 5 characters word : 2
Number of 7 characters word : 1
Number of 8 characters word : 1
Here, ascending is 2,4,5,7,8 don't return like 5,2,4,8,7
Hint: length(), charAt(), indexOf(), compareTo(), substring(), equals() can be used.
Note: Array, Split function as well as ternary operators i.e. ? : are not to be used.
1. Let S be the set of all strings of English letters. Determine whether these relations are reflexive, irreflexive, symmetric, antisymmetric, and/or transitive.
a) R1 = {(a, b) | a and b have no letters in common}
b) R2 = {(a, b) | a and b are not the same length}
c) R3 = {(a, b) | a is longer than b}
Find the new location of point G, initially at G = [3 0 -1] If, (i) it is rotated by 60deg. about z-axis and then translated by 3 units along y-axis, and (ii) it is first translated by 3 units along y-axis and then rotated by 60deg bout z-axis. Are the two locations same? Check and justify, whether the final position in two cases is same or different.
24. Explain the Hausman test as it is applied in discriminating between fixed effects and random effects methods.
22. Suppose you have a data set on wealth (w), and access to credit (credit) for 1000 farmers randomly selected from the Gamo-Gofa Zone over the period 2015 to 2020. The data includes individuals who did not participate in the credit scheme.
(a) Suppose you want to evaluate how wealth changed over time as a result of the credit facility. How do you specify your model?
Indicate what impacts the parameters in your model measure.
[Hint: Recall the importance of time dummies].
(b) Suppose you have a reason to believe that level of education (E), gender of the head of the household (gender ), land size (land), distance from urban centers (distance), are other major variables that are believed to affect wealth status. Can you use fixed effects method in estimating your model in (a) by including theses variables? Why or why not? What other means can you craft to apply fixed effects method on the model?
(c) Given the information in (b), under what condition a random effects method could be an option?