In: Computer Science
(1) a. sentence generation
The sentence you need to generate is shown below:
Sentence: John fed a bear in the park.
In this question, you should start from the target structure, a sentence (= S). Then you expand S by applying the rule S --> S PP. There is another rule that can expand S, namely S --> NP VP. However, if you apply S --> NP VP before S --> S PP, you will not be able to include PP. Therefore, S --> S PP is the correct rule to apply first, as has been given in the table below (together with two other steps). Remember to insert the lexical items when you get to a leaf node like D or N where no rule can be further applied. If your answers are correct, then all the 14 blanks should be filled.
The rules and lexicon that you need to generate the sentence are given as below:
Rules:
S --> NP VP
NP --> D NP
VP --> V PP
VP --> V NP
S --> S PP
PP --> P NP
AdjP --> Adv Adj
NP --> N
CP --> C S
Lexicon:
V --> saw, kicked, fed
P --> in, at
D --> a, the
N --> John, bear, park
You will need only a subset of the rules for this question.
Step
Sentence generating process
0 S
1 S --> S PP
2 S --> NP VP
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Done!
(1) b. Expand the rules and lexicon
What do you need to add to the previous rules and lexicon if you want to generate the following sentence:
The boy saw a brown bear in the park.
New rule(s) that needs to be added:
____________________
New lexical item(s) that needs to be added:
_____________________
______________________
In: Computer Science
The data below is the mileage (thousands of miles) and age of your cars .
Year Miles Age
2017 8.5 1
2009 100.3 9
2014 32.7 4
2004 125.0 14
2003 115.0 15
2011 85.5 7
2012 23.1 6
2012 45.0 6
2004 123.0 14
2013 51.2 5
2013 116.0 5
2009 110.0 9
2003 143.0 15
2017 12.0 1
2005 180.0 13
2008 270.0 10
Please include appropriate Minitab Results when important
a. Identify terms in the simple linear regression population model in this context.
b. Obtain a scatter diagram for the sample data. Interpret the scatter diagram.
c. Obtain a scatter diagram with the least squares regression line included. Interpret the intercept and slope in the context of this problem.
d. In theory what ought to be the value of the population model intercept? Explain.
e. What is the informal prediction for what the mileage should be on your car? What is the error in the prediction of the mileage for your car?
f .Use some statistical reasoning to assess whether or not the prediction for the mileage on your car was “accurate”?
g. How would you respond if someone asks “about” how many miles do students drive per year?
In: Statistics and Probability
The U.S. Department of Transportation provides the number of miles that residents of the 75 largest metropolitan areas travel per day in a car. Independent simple random samples for both Buffalo and Boston are located in the Excel Online file below. Construct a spreadsheet to answer the following questions.
Open spreadsheet
Round your answers to one decimal place.
What is the point estimate of the difference between the mean number of miles that Buffalo residents travel per day and the mean number of miles that Boston residents travel per day?
What is the 95% confidence interval for the difference between the two population means?
| Buffalo | Boston |
| 24 | 23 |
| 27 | 14 |
| 39 | 11 |
| 23 | 19 |
| 16 | 22 |
| 16 | 4 |
| 21 | 9 |
| 31 | 12 |
| 1 | 12 |
| 22 | 10 |
| 32 | 32 |
| 32 | 26 |
| 24 | 21 |
| 42 | 16 |
| 37 | 17 |
| 29 | 18 |
| 16 | 16 |
| 12 | 20 |
| 29 | 20 |
| 16 | 11 |
| 18 | 10 |
| 27 | 18 |
| 2 | 11 |
| 21 | 17 |
| 35 | 20 |
| 21 | 20 |
| 29 | 25 |
| 24 | 16 |
| 17 | 17 |
| 21 | 8 |
| 38 | |
| 21 | |
| 9 | |
| 24 | |
| 31 | |
| 26 | |
| 16 | |
| 27 | |
| 24 | |
| 18 | |
| 24 | |
| 17 | |
| 13 | |
| 15 | |
| 21 | |
| 21 | |
| 21 | |
| 32 | |
| 27 | |
| 35 |
In: Statistics and Probability
a. Set up the null and the alternative hypotheses for the test.
b. Calculate the value of the test statistic.
c. Find the p-value.
d. Calculate the critical value using α = 0.01
e. Use α = 0.01 to determine if the average breaking distance differs from 120 feet.
2. Consider the following hypotheses:
H0: μ ≤ 12.6
HA: μ > 12.6
A sample of 25 observations yields a sample mean of 13.4. Assume
that the sample is drawn from a normal population with a population
standard deviation of 3.2.
a. Calculate the value of the test statistic.
b. Find the p-value.
c. Calculate the critical value using α = 0.05
d. What is the conclusion if α = 0.05? Interpret the results at α = 0.05.
e. Calculate the p-value if the above sample mean was based on a sample of 100 observations.
f. Based on a sample of 100 observations, what is the conclusion if α = 0.10? Interpret the results at α = 0.10.
In: Statistics and Probability
The data below is the mileage (thousands of miles) and age of your cars as sample.
Year Miles Age
2017 8.5 1
2009 100.3 9
2014 32.7 4
2004 125.0 14
2003 115.0 15
2011 85.5 7
2012 23.1 6
2012 45.0 6
2004 123.0 14
2013 51.2 5
2013 116.0 5
2009 110.0 9
2003 143.0 15
2017 12.0 1
2005 180.0 13
2008 270.0 10
Please include appropriate Minitab Results when important
a. Identify terms in the simple linear regression population model in this context.
b. Obtain a scatter diagram for the sample data. Interpret the scatter diagram.
c. Obtain a scatter diagram with the least squares regression line included. Interpret the intercept and slope in the context of this problem.
d. In theory what ought to be the value of the population model intercept? Explain.
e. What is the informal prediction for what the mileage should be on your car? What is the error in the prediction of the mileage for your car?
f. Use some statistical reasoning to assess whether or not the prediction for the mileage on your car was “accurate”?
g. How would you respond if someone asks “about” how many miles do students drive per year?
In: Statistics and Probability
It is necessary for an automobile producer to estimate
the number of miles per gallon (mpg) achieved by its cars. Suppose
that the sample mean for a random sample of 5050 cars is 30.630.6
mpg and assume the standard deviation is 3.63.6 mpg. Now suppose
the car producer wants to test the hypothesis that μμ, the mean
number of miles per gallon, is 31.631.6 against the alternative
hypothesis that it is not 31.631.6. Conduct a test using a
significance level of α=.05α=.05 by giving the following:
(a) The test statistic (give to 3 decimal places)
is
(b) The P -value (give to 4 decimal places)
is
(c) The final conclusion is
A. We can reject the null hypothesis that
μ=31.6μ=31.6 and accept that μ≠31.6μ≠31.6.
B. There is not sufficient evidence to reject the null
hypothesis that μ=31.6μ=31.6.
In: Statistics and Probability
It is necessary for an automobile producer to estimate
the number of miles per gallon (mpg) achieved by its cars. Suppose
that the sample mean for a random sample of 5050 cars is 30.630.6
mpg and assume the standard deviation is 3.63.6 mpg. Now suppose
the car producer wants to test the hypothesis that μμ, the mean
number of miles per gallon, is 31.631.6 against the alternative
hypothesis that it is not 31.631.6. Conduct a test using a
significance level of α=.05α=.05 by giving the following:
(a) The test statistic (give to 3 decimal places)
is
(b) The P -value (give to 4 decimal places)
is
(c) The final conclusion is
A. We can reject the null hypothesis that
μ=31.6μ=31.6 and accept that μ≠31.6μ≠31.6.
B. There is not sufficient evidence to reject the null
hypothesis that μ=31.6μ=31.6.
In: Statistics and Probability
The data below is the mileage (thousands of miles) and age of your cars .
Year Miles Age
2017 8.5 1
2009 100.3 9
2014 32.7 4
2004 125.0 14
2003 115.0 15
2011 85.5 7
2012 23.1 6
2012 45.0 6
2004 123.0 14
2013 51.2 5
2013 116.0 5
2009 110.0 9
2003 143.0 15
2017 12.0 1
2005 180.0 13
2008 270.0 10
Please include appropriate Minitab Results when important
a. Identify terms in the simple linear regression population model in this context.
b. Obtain a scatter diagram for the sample data. Interpret the scatter diagram.
c. Obtain a scatter diagram with the least squares regression line included. Interpret the intercept and slope in the context of this problem.
d. In theory what ought to be the value of the population model intercept? Explain.
e. What is the informal prediction for what the mileage should be on your car? What is the error in the prediction of the mileage for your car?
f .Use some statistical reasoning to assess whether or not the prediction for the mileage on your car was “accurate”?
g. How would you respond if someone asks “about” how many miles do students drive per year?
In: Statistics and Probability
In a hypothetical island that is 5,000 miles away from humanity and includes no frictions in the market other than human nature, there are many shipping companies going back and forth that carry goods produced in the island to the world outside the island. There is also a dock to load these goods to the ships. The shipping industry is perfectly competitive.
In the island, there is a cement factory. The price per unit of cement at the door of the factory is $200 and the world price of same cement per unit is $350. But cement should be carried to the dock to be loaded in the ships. There are two means for transporting cement to the dock: i) a pipeline that pumps the cement to the dock (Company P) and ii) truck companies. There are many truck companies in the island and this industry is also perfectly competitive. Both the pipeline and the truck companies have identical services both in terms of price, speed, and amount carried each time. Truck companies can carry any item produced in the island, but the pipeline can only carry cement.
10 years ago, Company C and Company P signed a contract that set the price per unit of cement carried through the pipeline as $25 (10 years from that date, which is today, the price per unit of cement carried is also $25 for truck companies). This contact will expire tomorrow at 8 am and the companies met to negotiate the new terms of the contract.
1. What should be the new price for this new contract, if the two companies can agree on it? Why? Explain your rationale behind this prediction.
2. What can Company P do to maximize its benefits or survive? (Hint: since this is a hypothetical world, the capital markets are efficient)
Will rate for correct answers! :)
In: Economics