Write a MapReduce program in hadoop to find the words that occurs more than 2000 times in book.txt file. To count the occurrences of the words and filter the Filterwords in book.txt, convert all words into lower case. Also filter the digits (0-9) and punctuation. The class made to filter the word are below. Filterwords.isOneOfThem(String in) returns true if in is a Filterword.
class Filterwords {
public static String [] myFilterWordsArray = { "a", "an", "the", "am", "are", "is","at"};
public static Set myFilterWords = new HashSet(Arrays.asList(myFilterWordsArray));
public static boolean isOneOfThem(String in) {
return myFilterWords.contains(in);
}
}In: Computer Science
A survey is conducted using 2000 registered voters who are asked to choose between candidate A and candidate B. Let p denote the fraction of voters in the population who prefer candidate A and let ˆp denote the fraction of voters who prefer Candidate B.
i You are interested in performing the following hypothesis test H0 : p = 0.4 (1) H1 : p 6= 0.4
(2) Determine the size of the test and compute the power of the test if the true value is p = 0.45
ii Assuming that in the survey ˆp = 0.44. Test H0 : p = 0 − 4 vs H1 : p 6= 0.4 using a 10% significance level
iii Assuming that in the survey ˆp = 0.44. Test H0 : p = 0 − 4 vs H1 : p < 0.4 using a 10% significance level
iv Construct a 90% confidence interval for p
iv Construct a 95% confidence interval for p iv Construct a 99% confidence interval for p
In: Math
QUESTION 31
On January 1, 2000 the price of gold was $282 per ounce. On January 1, 2013 the price was $1,890. What is the compound rate of growth in the price of gold over this period?
21.10%
19.17%
17.18%
none of the above
QUESTION 32
What is the monthly discount factor (or present value factor) at 3% for 30 years?
11.26%
19.60%
20.30%
21.33%
None of the above
Please solve both questions showing a step by step solution with formulas.
In: Finance
In: Operations Management
In the movie Remember the Titans (2000),
Cite an example from the movie when Coach Boone used a Supporting leadership style. What specifically did he do (behavior) that indicated he was being Supportive? Describe the situation, and assess follower Readiness (follower Ability and Willingness). Did Coach Boone utilize an appropriate leadership style in this situation, and why or why not?
In: Operations Management
In the movie Remember the Titans (2000),
Cite an example from the movie when Coach Boone used a Coaching leadership style. What specifically did he do (behavior) that indicated he was Coaching? Describe the situation, and assess follower Readiness (follower Ability and Willingness). Did Coach Boone utilize an appropriate leadership style in this situation, and why or why not?
In: Operations Management
explain one of the evaluation microprocessor family your explanation should be with 2000 words and also the degree of plagiarism .this should be less than 20% for the report and less than 2% from each source if its possible i want two essay for me and for my friend
In: Electrical Engineering
A CM basin with a volume of 475 m3 receives a flow of 2000 m3 d−1. The basin has a dead volume of 42 m3. Find the effluent tracer curve if a mass of 5 g of tracer is added instantaneously to the influent. Also plot the effluent tracer curve for the reactor without dead volume.
In: Civil Engineering
Sustainable Concept
Air pollution in Asia has worsened since 2000 and is responsible for deaths of thousands of people in Beijing, Jakarta, Seoul and Manila. The pollution is a result of the use of fossil fuels by the industry and transport sectors. The problem got aggravated in Asia due to the use of poor quality fuel, inefficient method of energy production, use of vehicles in poor condition and traffic congestion. This was revealed during a research conducted by World Bank and Stockholm Development Institute. The research states that air pollution in the continent has surpassed the combined emissions in Europe and North America. The deaths caused by fine particulate matter far exceed those caused by sulphur dioxide, nitrogen oxide, ozone and lead. The health cost in major Asian cities now exceed for 15-18 percent of urban income expenditure, claims World Bank officials.
a) A comprehensive campaign to address air pollution need to be launched through school children, what programme (one) would you envisage for this. What is outcome anticipated?
b) There is a sudden decision to remove all vehicles from the road that fails to meet specified norms of emission level within a specified time period. As part of citizen forum you are requested to give views on the enforced regulation. State your views on this.
c) A massive campaign on environmental degradation is to be initiated. Bring out a slogan and the key message that need to be addressed.
d) Suppose you are a Carbon Credit Auditor appointed to assess the greenhouse gas emission reduction strategies. Identify a component of assessment and brief the methodology that could be adopted in connection with this.
In: Civil Engineering
In: Civil Engineering