ME435Lab3
.pdf
keyboard_arrow_up
School
Pennsylvania State University *
*We aren’t endorsed by this school
Course
435
Subject
Economics
Date
Apr 3, 2024
Type
Pages
3
Uploaded by PENNY.2
Q1: If we are planning to use two features to identify the Brush teeth motion, which two features could we choose? Explain your choices. Hint: Change the predictors combination next to the Scatter Plot. Answer: Average acceleration Z and average resultant acceleration because it creates the largest gap between the brush teeth values and the other activities while keeping them somewhat clustered. This is shown in the graph below where brush teeth is blue. Original data set: reference_table o L5 —@ [ o o ° - 2 S 11} ® [ D » © g ° g . o °n £ e ® o % 5105— ¥ o0 © 3 g . Ty d > @ e ° ® * @ e @ ® 9 5} » & ° ° o ° e %%, z .‘o o ® H e g0 e® e 0. o o o . o © 1 -no..". L L @ ° %% ® @ & .\ = - e % o‘.fi’ ° o 0.95 i i i i i i 0 02 04 06 08 1 AverageAccelerationZ Q2: Repeat the above steps with the two features you chosen to track the Brush teeth motion in question 1. Compare at least three models by showing their confusion matrix and explain which one gives the best prediction for separating the Brush teeth movement from other activities. The best model is the fine KNN since it has no false positives and a 100% true positive detection rate for our data. Fine Tree is significantly worse because it miscategorizes brushing teeth as drinking water a third of the time. Cosine KNN on the other hand, miscategorizes drinking water as brushing teeth. Fine KNN Model 3.4 Brush_teeth Drink_glass H33% 26.7% Liedown_bed 66.7% | 33.3% True Class Pour_water 733% | 26.7% Walk SN 3.3% Brush_teet®rink_gladsedown_beBour_water Walk TPR FNR Predicted Class Fine Tree
Model 3.1 Brush_teeth | 186.7% | 33.3% Drink_glass 63.3% | 36.7% 12 0w s ?, Liedown_bed 66.7% | 33.3% e }.— Pour_water 70.0% | 30.0% Walk eagx 6.7% Brush_teetBrink_gladsedown_beBour_water Walk TPR FNR Predicted Class Cosine KNN Model 3.7 &, Brush_teeth [N66:7% 33.3% ,-_66 1% | 33.3% Drink_glass 0.0% 30.0% 1 70.0% | 30.0% . } 0 = . g Liedown_bed | 33.3% 1.1% | 556% . 100.0% 3 = Pour_water 50.0% 50.0% 50.0% Walk 00.0 100.0% Brush_teet®rink_gladsedown_beBour_water Walk TPR FNR Predicted Class Q3: Train your model by adding and changing features, applying different model type and/or validation method. Our goal is to obtain a model which will provide at least 75% true predicition for all five activites. Summarize your choice, attach and explain the confusion matrix result. Students must complete this task by using no more than 5 features. We used average acceleration x, average acceleration y, average acceleration z, average absolute difference x, and average peak to peak time x. The three average accelerations provide a good basis for accelerations in the motion, but the absolute difference and the time give a good idea of how each one varies.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Use graphical method to solve the following LPP:
Maximise Z = x +4y
Subject to the constraints:
x + y < 1
2x + 2y 2 4
*2 0, y 2 0
arrow_forward
An economic researcher has been asked to determine the
relationship between a proposed local sales tax on beef and
local tax revenues. He has estimated that the maximum tax
revenue will occur at a tax rate of 6%, which will yield tax
revenues of $5,000.
Using the 3-point curved line drawing tool, show the approximate
relationship between tax rates and tax revenues, as based on
this research. Label the curve 'Laffer'.
Carefully follow the instructions above, and only draw the
required objects.
Tax Revenues (thousands)
10₁
9-
1-
0-
0
1
2
3
4 5 6 7
Sales Tax Rate (%)
8
9
10
arrow_forward
We have estimated the impact of gross domestic product (GDP), energy consumption (ENERGY) and population (POP) on CO2 emiisions (CO2) in Cyprus. The results are as follows;Dependent Variable: CO2Method: Least SquaresDate: 04/20/17 Time: 09:46Sample: 1990 2013Included observations: 24
Write down the economic function for the above estimation by using the information obtained from above table b- Write down the economic model for the above estimation by using the information obtained from above table . c- Write down the econometric model for the above estimation by using the information obtained from above table d- Write down the least squares line by using the information obtained from above tablee- Explain what each coefficient of the least squares line indicates
arrow_forward
Suppose the relationship between the government's tax revenue (T) and national income (Y) is represented by the equation T = 30 +0.5Y. Plot this relationship on a scale diagram, with Y on the horizontal axis and T on the vertical axis. Interpret the equation.
Use the line drawing tool to draw the equation. Make sure to plot the vertical axis as one endpoint of the line. Properly label this line.
Carefully follow the instructions above, and only draw the required objects.
arrow_forward
Sediment buildup behind a dam can adversely affect a reservoir's storage capacity. Measurements of a reservoir in 1988 showed it had a capacity of 500,000 acre-feet of water. Measurements in 2018 showed that the reservoir's capacity has been decreasing at a rate of 2,000 acre-feet per year. Find a linear model of the number of acre-feet A of water in the reservoir n years after 1988.
arrow_forward
Round off to 4 decimal places.
The value for the slope parameter is?
arrow_forward
Do not solve list all the variables objective function and contraints ASW Publishing, Inc., a small publisher of college textbooks, must make a decision regarding which books to publish next year. The books under consideration are listed in the following table, along with the projected threeyear sales expected from each book.
Book Subject Type of Book Projected Sales (000s)
Business calculus New 20
Finite mathematics Revision 30
General statistics New 15
Mathematical statistics New 10
Business statistics Revision 25
Finance New 18
Financial accounting New 25
Managerial accounting Revision 50
English literature New 20
German New 30
The books that are listed as revisions are texts that ASW already has under contract; these texts are being considered for publication as new editions. The books that are listed as new have been reviewed by the company, but contracts have not yet been signed.The company has three individuals who can…
arrow_forward
The table lists weights (pounds) and highway mileage amounts (mpg) for seven automobiles. Use the sample data to construct a scatterplot. Use the first variable for the x-axis.
Based on the scatterplot, what do you conclude about a linear correlation?
Weight (lb)
Highway (mpg)
Which scatterplot below shows the data?
O A.
40-
20+
2000
5000
2855 3050 3810 3985 4250 2275 3525
33
32
27
24
22
39
28
Weight (lb)
Q
Q
O B.
40
20+
2000
AHH
5000
Weight (lb)
Q
Q
Is there a linear relationship between weight and highway mileage?
O A. No, there appears to be a relationship, but it is not linear.
O B. Yes, as the weight increases the highway mileage decreases.
O C. Yes, as the weight increases the highway mileage increases.
OD. No there appears to be no relationshin
C
O C.
Q
40-
M
Q
20++
2000
5000
Weight (lb)
Highway (
O D.
Highway (mpg)
40-
20+
2000
5000
Weight (lb)
Q
arrow_forward
D. MoviefliX, an online movie streaming service that offers a wide variety of award-winning TV
shows, movies, animes, and documentaries would like to determine the mathematical trend of
memberships in order to project future needs.
Year
2013
2014
2015 2016
2017
2018
2019
2020
2021
Membership
17
16
16
21
20
20
23
25
24
(000s)
(i)
Use the following time series data, to develop a regression equation relating memberships
to time.
(ii)
Forecast 2023 membership.
arrow_forward
Ypsilanti Market Research conducted a survey to find out whether people who earn more money purchase more expensive goods. The following graph indicates the relationship between income the survey subjects earned and the price of the car that they purchased.
The variable shown on the vertical axis is __________ (options: thousands of dollars per car, thousands of dollars per year, income, thousands of dollars, price, number of goods).
The units for the variable on the horizontal axis are _________ (options: thousands of dollars per car, thousands of dollars per year, income, thousands of dollars, price, number of goods).
There are two ways to view the information presented on the graph. First, the graph tells us the amount a person with a certain income is likely to spend on a car, and second, it tells us the probable income of a person who spent a certain amount on a car. For example, if an individual earned $50,000 last year and purchased a new car, you would expect that person to…
arrow_forward
The numbers of polio cases in the world are shown in the table for various years.
Year Number of Polio Cases (thousands)
1988
1992
1996
2000
2005
2007
Let f(t) be the number of polio cases in the world t years since 1980.
Use a graphing calculator to draw a scattergram of the data. Is it better to model the data by
using a linear or exponential model? Select an answer
Find an equation of f. Hint
f(t)
=
350
138
33
4
3.2
1.3
The number of polio cases Select an answer
Hint
Round the coefficients to 2 digits.
Predict the number of polio cases in 2017.
years
by Select an answer
Predict in which year there will be 1 case of polio.
Find the approximate half-life of the number of polio cases. Hint
per year.
arrow_forward
Year
Quarter
Revenue
Q1
4.80
Q2
4.56
2015
Q3
4.88
Q4
4.91
Q1
5.37
Q2
4.99
2016
Q3
5.24
Q4
5.71
Q1
5.73
Q2
5.29
2017
Q3
5.66
Q4
5.70
Q1
6.07
Q2
6.03
2018
Q3
6.31
Q4
6.30
Q1
6.60
Q2
6.31
2019
Q3
6.82
Q4
6.75
Q1
7.10
Q2
6.00
2020
Q3
4.20
Q4
6.20
arrow_forward
For each of the following variables, determine whether the variable is categorical or numerical. If the variable is numerical, determine whether the variable is discrete or continuous. In addition, determine the measurement scale.
a. Time, in hours, spent working per month
b. Name of a household's cable television provider
c. Number of online purchases made in a month
d. Satisfaction rating of a cable television provider (from low to high)
e. Time, in hours, spent surfing the Internet per month
a. Time, in hours, spent working per month is what kind of variable?
O A. This variable is a continuous numerical variable that is ratio-scaled.
O B. This variable is a discrete numerical variable that is ratio-scaled.
OC. This variable is a discrete numerical variable that is interval-scaled.
O D. This variable is a categorical variable that is ordinal-scaled.
O E. This variable is a categorical variable that is nominal-scaled.
O F. This variable is a continuous numerical variable that is…
arrow_forward
The following data relate the sales figures of restaurant, to the number of customers registered that week:
Week
Customers
Sales (SR)
First
16
330
Second
12
270
Third
18
380
Fourth
14
300
a) Perform a linear regression that relates bar sales to guests (not to time).
b) If the forecast is for 20 guests next week, what are the sales expected to be?
arrow_forward
A5
arrow_forward
Question 4 - Type Your Answers in Space Provided
(a)
An accountant wishes to undertake a cost analysis of electricity consumption of office heating
for various maximum daily temperatures. He recorded the data over a period of 8 random days,
as shown below:
2
3
4
5
6
8
Temp(°C)
Max Electricity Consumption
26
31
25
26
14
20
16
34
35
20
37
24
42
41
40
17
You may use the following Excel print-outs or summary statistics provided to answer the questions.
SUMMARY OUTPUT
SUMMARY STATISTICS
Regression Statistics
Multiple R
R Square
Adjusted R Square
Standard Error
n =
8.
0.895
24
0.801
32
0.768
s2x =
48.29
4.862
s?y =
101.71
%3!
Observations
8
Sxy =
-62.7143
Coefficient
Standard
Error
t Stat
P-value
6.575
Intercept
temp(°C)
63.172
9.607
0.000
-1.299
0.264
-4.911
0.003
Find the least squares regression line to predict the electricity consumption from the maximum
temperature.
arrow_forward
The following table was generated from the sample data of 10 college students regarding the number of parking tickets the student receives in a semester, the student's
age, and the student's GPA. The dependent variable is the student's GPA, the first independent variable (x1) is the number of parking tickets, and the second independent
variable (x2) is the student's age.
Coefficients Standard Error
1-Stat
p-value
Intercept
Number of Parking Tickets
Student's Age
15.034003
-0.026275
-0.638331
1.302739
11.540305 0.000025
0.030254
0.062922
-0.868470 0.418515
-10.144838 0.000053
Copy Data
Step 2 of 2: Indicate if any of the independent variables could be eliminated at the 0.05 level of significance.
Answer
x1
x2
Keep all variables
Tables
Keypad
Keyboard Shortcu
arrow_forward
not use ai please
arrow_forward
Your boss would like your help on a marketing research project she is conducting on the relationship between the price of soda and the quantity of
soda demanded. She hands you the following document:
Price of Soda
Quantity of Soda Demanded
(Dollars per can)
(Billions of cans)
0.50
2,000
0.75
1,500
1.00
1,000
1.25
750
Your task is to take this
and construct a graphical representation of the data. In doing so, you determine that as
the price of soda rises, the quantity of soda demanded decreases. This confirms the
arrow_forward
Consider the following data regarding students' college GPAs and high school GPAs. The estimated regression equation is
GPA).
Estimated College GPA = 2.56 + 0.1582 High School GPA
GPAs
College GPA High School GPA
3.96
4.42
2.81
3.91
3.53
4.21
3.27
2.76
3.58
4.95
2.07
4.24
Copy Data
Step 2 of 3: Compute the mean square error (s2) for the model. Round your answer to four decimal places.
arrow_forward
A researcher wants to study about the behaviours of postgraduate students in Australia in mobile phone usage.
One of the goals of the study is to analyse whether there is a relationship between the type of apps that the students use the most and the degree they are studying.
What is the most suitable graph to see the relationship described above? Why?
arrow_forward
18B. PLEASE ANSWER B
arrow_forward
Topic: Simple Regression
arrow_forward
P'On the basis of quarterly sales (in $ lakhs) of a certain commodity for the years
2001-2003
Trend:
the following calculations were made :
y = 25-0 + 0-6t, with origin at 1st quarter of 2001,
where t = time units (one quarter), and y= quarterly sales $ lakhs).
Seasonal variations:
Quarter
1st
2nd
3rd
4th
Seasonal index
90
95
110
105
Estimate the quarterly sales for the year 2002 (use multiplicative model).
arrow_forward
Evaluate the integral. (Use C for the constant of integration.)
arrow_forward
As an auto insurance risk analyst, it is your job to research risk profiles for various types of drivers. One common area of concern for auto insurance companies
is the risk involved when offering policies to younger, less experienced drivers. The U.S. Department of Transportation recently conducted a study in which it
analyzed the relationship between 1) the number of fatal accidents per 1000 licenses, and 2) the percentage of licensed drivers under the age of 21 in a sample
of 42 cities.
Your first step in the analysis is to construct a scatterplot of the data.
FIGURE. SCATTERPLOT FOR U.S. DEPARTMENT OF TRANSPORATION PROBLEM
U.S. Department of Transportation
The Relationship Between Fatal Accident Frequency and Driver Age
4.5
3.5
3
2.5
1.5
1
0.5
6.
10
12
14
16
18
Percentage of drivers under age 21
Upon visual inspection, you determine that the variables do have a linear relationship. After a linear pattern has been established visually, you now proceed with
performing linear…
arrow_forward
Given the following summary statistics, determine the regression equation used to predict y
from Ta
Round all answers to 2 decimal places.
slope -
y-intercept
Sy
SI
T
15
Y
1.02
1.6
-0.71
20.65
77-9
Use the exact value of slope when calculating the y-intercept.
arrow_forward
6
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Related Questions
- Use graphical method to solve the following LPP: Maximise Z = x +4y Subject to the constraints: x + y < 1 2x + 2y 2 4 *2 0, y 2 0arrow_forwardAn economic researcher has been asked to determine the relationship between a proposed local sales tax on beef and local tax revenues. He has estimated that the maximum tax revenue will occur at a tax rate of 6%, which will yield tax revenues of $5,000. Using the 3-point curved line drawing tool, show the approximate relationship between tax rates and tax revenues, as based on this research. Label the curve 'Laffer'. Carefully follow the instructions above, and only draw the required objects. Tax Revenues (thousands) 10₁ 9- 1- 0- 0 1 2 3 4 5 6 7 Sales Tax Rate (%) 8 9 10arrow_forwardWe have estimated the impact of gross domestic product (GDP), energy consumption (ENERGY) and population (POP) on CO2 emiisions (CO2) in Cyprus. The results are as follows;Dependent Variable: CO2Method: Least SquaresDate: 04/20/17 Time: 09:46Sample: 1990 2013Included observations: 24 Write down the economic function for the above estimation by using the information obtained from above table b- Write down the economic model for the above estimation by using the information obtained from above table . c- Write down the econometric model for the above estimation by using the information obtained from above table d- Write down the least squares line by using the information obtained from above tablee- Explain what each coefficient of the least squares line indicatesarrow_forward
- Suppose the relationship between the government's tax revenue (T) and national income (Y) is represented by the equation T = 30 +0.5Y. Plot this relationship on a scale diagram, with Y on the horizontal axis and T on the vertical axis. Interpret the equation. Use the line drawing tool to draw the equation. Make sure to plot the vertical axis as one endpoint of the line. Properly label this line. Carefully follow the instructions above, and only draw the required objects.arrow_forwardSediment buildup behind a dam can adversely affect a reservoir's storage capacity. Measurements of a reservoir in 1988 showed it had a capacity of 500,000 acre-feet of water. Measurements in 2018 showed that the reservoir's capacity has been decreasing at a rate of 2,000 acre-feet per year. Find a linear model of the number of acre-feet A of water in the reservoir n years after 1988.arrow_forwardRound off to 4 decimal places. The value for the slope parameter is?arrow_forward
- Do not solve list all the variables objective function and contraints ASW Publishing, Inc., a small publisher of college textbooks, must make a decision regarding which books to publish next year. The books under consideration are listed in the following table, along with the projected threeyear sales expected from each book. Book Subject Type of Book Projected Sales (000s) Business calculus New 20 Finite mathematics Revision 30 General statistics New 15 Mathematical statistics New 10 Business statistics Revision 25 Finance New 18 Financial accounting New 25 Managerial accounting Revision 50 English literature New 20 German New 30 The books that are listed as revisions are texts that ASW already has under contract; these texts are being considered for publication as new editions. The books that are listed as new have been reviewed by the company, but contracts have not yet been signed.The company has three individuals who can…arrow_forwardThe table lists weights (pounds) and highway mileage amounts (mpg) for seven automobiles. Use the sample data to construct a scatterplot. Use the first variable for the x-axis. Based on the scatterplot, what do you conclude about a linear correlation? Weight (lb) Highway (mpg) Which scatterplot below shows the data? O A. 40- 20+ 2000 5000 2855 3050 3810 3985 4250 2275 3525 33 32 27 24 22 39 28 Weight (lb) Q Q O B. 40 20+ 2000 AHH 5000 Weight (lb) Q Q Is there a linear relationship between weight and highway mileage? O A. No, there appears to be a relationship, but it is not linear. O B. Yes, as the weight increases the highway mileage decreases. O C. Yes, as the weight increases the highway mileage increases. OD. No there appears to be no relationshin C O C. Q 40- M Q 20++ 2000 5000 Weight (lb) Highway ( O D. Highway (mpg) 40- 20+ 2000 5000 Weight (lb) Qarrow_forwardD. MoviefliX, an online movie streaming service that offers a wide variety of award-winning TV shows, movies, animes, and documentaries would like to determine the mathematical trend of memberships in order to project future needs. Year 2013 2014 2015 2016 2017 2018 2019 2020 2021 Membership 17 16 16 21 20 20 23 25 24 (000s) (i) Use the following time series data, to develop a regression equation relating memberships to time. (ii) Forecast 2023 membership.arrow_forward
- Ypsilanti Market Research conducted a survey to find out whether people who earn more money purchase more expensive goods. The following graph indicates the relationship between income the survey subjects earned and the price of the car that they purchased. The variable shown on the vertical axis is __________ (options: thousands of dollars per car, thousands of dollars per year, income, thousands of dollars, price, number of goods). The units for the variable on the horizontal axis are _________ (options: thousands of dollars per car, thousands of dollars per year, income, thousands of dollars, price, number of goods). There are two ways to view the information presented on the graph. First, the graph tells us the amount a person with a certain income is likely to spend on a car, and second, it tells us the probable income of a person who spent a certain amount on a car. For example, if an individual earned $50,000 last year and purchased a new car, you would expect that person to…arrow_forwardThe numbers of polio cases in the world are shown in the table for various years. Year Number of Polio Cases (thousands) 1988 1992 1996 2000 2005 2007 Let f(t) be the number of polio cases in the world t years since 1980. Use a graphing calculator to draw a scattergram of the data. Is it better to model the data by using a linear or exponential model? Select an answer Find an equation of f. Hint f(t) = 350 138 33 4 3.2 1.3 The number of polio cases Select an answer Hint Round the coefficients to 2 digits. Predict the number of polio cases in 2017. years by Select an answer Predict in which year there will be 1 case of polio. Find the approximate half-life of the number of polio cases. Hint per year.arrow_forwardYear Quarter Revenue Q1 4.80 Q2 4.56 2015 Q3 4.88 Q4 4.91 Q1 5.37 Q2 4.99 2016 Q3 5.24 Q4 5.71 Q1 5.73 Q2 5.29 2017 Q3 5.66 Q4 5.70 Q1 6.07 Q2 6.03 2018 Q3 6.31 Q4 6.30 Q1 6.60 Q2 6.31 2019 Q3 6.82 Q4 6.75 Q1 7.10 Q2 6.00 2020 Q3 4.20 Q4 6.20arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you