lab-2-1
.docx
keyboard_arrow_up
School
Conestoga College *
*We aren’t endorsed by this school
Course
8010
Subject
Economics
Date
Feb 20, 2024
Type
docx
Pages
5
Uploaded by UltraWater15179
lab-2.R
Chintan
2023-01-25
library
(fpp3)
## ── Attaching packages ──────────────────────────────────────────── fpp3 0.4.0 ──
## ✔ tibble 3.1.8 ✔ tsibble 1.1.3 ## ✔ dplyr 1.0.10 ✔ tsibbledata 0.4.1 ## ✔ tidyr 1.2.1 ✔ feasts 0.3.0 ## ✔ lubridate 1.9.0 ✔ fable 0.3.2 ## ✔ ggplot2 3.4.0
## ── Conflicts ───────────────────────────────────────────────── fpp3_conflicts ──
## ✖ lubridate::date() masks base::date()
## ✖ dplyr::filter() masks stats::filter()
## ✖ tsibble::intersect() masks base::intersect()
## ✖ tsibble::interval() masks lubridate::interval()
## ✖ dplyr::lag() masks stats::lag()
## ✖ tsibble::setdiff() masks base::setdiff()
## ✖ tsibble::union() masks base::union()
library
(knitr)
library
(seasonal)
## ## Attaching package: 'seasonal'
## The following object is masked from 'package:tibble':
## ## view
library
(tidyverse)
## ── Attaching packages
## ───────────────────────────────────────
## tidyverse 1.3.2 ──
## ✔ readr 2.1.3 ✔ stringr 1.5.0
## ✔ purrr 0.3.5 ✔ forcats 0.5.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ lubridate::as.difftime() masks base::as.difftime()
## ✖ lubridate::date() masks base::date()
## ✖ dplyr::filter() masks stats::filter()
## ✖ tsibble::intersect() masks lubridate::intersect(), base::intersect()
## ✖ tsibble::interval() masks lubridate::interval()
## ✖ dplyr::lag() masks stats::lag()
## ✖ tsibble::setdiff() masks lubridate::setdiff(), base::setdiff()
## ✖ tsibble::union() masks lubridate::union(), base::union()
## ✖ seasonal::view() masks tibble::view()
library
(readr)
library
(stringr)
library
(readxl)
set.seed
(
133
)
food_prices <-
read_csv
(
"E:/conestoga/sem-2/statistical forecasting/Lab-2/food_prices.csv"
)
## Rows: 2067 Columns: 3
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (2): Products, Date
## dbl (1): Price
## ## Use `spec()` to retrieve the full column specification for this ℹ
data.
## Specify the column types or set `show_col_types = FALSE` to quiet
ℹ
this message.
#1. Create a new variable orange_prices by filtering our new_prices so
it includes only Oranges
new_prices <-
food_prices %>%
mutate
(
Date =
yearmonth
(Date)) %>%
as_tsibble
(
key =
Products, index =
Date)
orange_prices <-
new_prices %>%
filter
(
`
Products
`
==
"Oranges, per kilogram 3"
)
decomp <-
orange_prices %>%
model
(
classical=
classical_decomposition
(Price,
type=
"additive"
),
x11=
X_13ARIMA_SEATS
(Price ~
x11
()),
stl=
STL
(Price)
)
#2. Decompose this using STL
stlcomps
<-
decomp %>%
select
(stl) %>%
components
(decomp)
#x11comps<- decomp %>% select(x11) %>% components(decomp)
#classicComp<- decomp %>% select(classical) %>%components(decomp)
stlcomps %>%
tail
() %>%
kable
()
.model
Date
Price
trend
season_year
remainder
season_adjust
stl
2021 Aug
2.87
3.375300
-0.5869257
0.0816256
3.456926
stl
2021 Sep
3.04
3.383412
-0.2670860
-0.0763258
3.307086
stl
2021 Oct
3.00
3.392103
-0.0209359
-0.3711667
3.020936
stl
2021 Nov
3.80
3.400793
0.2305962
0.1686103
3.569404
stl
2021 Dec
3.73
3.409484
0.0777480
0.2427678
3.652252
stl
2022 Jan
3.19
3.419435
-0.2182102
-0.0112248
3.408210
#3. Plot the decomposition
stlcomps %>%
autoplot
()
#4. Create a new variable egg_prices by filtering new_prices so it includes only Eggs
egg_prices <-
new_prices %>%
filter
(
`
Products
`
==
"Eggs, 1 dozen 3"
)
#5. Decompose this using x11
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
iii. just need the answer
arrow_forward
Analyse the impact of Covid-19 on the industry and the economy of India
arrow_forward
A company produces and sells luxury goods and is able to control the demand for the product by varying the selling price.
The relationship between price and demand is found to be:
p=10-(42/D^2)+2Dwhere p is the price per unit in million dollars and D is the demand per year. The company is seeking to maximize its profit. The fixed cost is $59 million per year and the variable cost is $25 million per unit. The production capacity is 42 units per year, and the company produces at least 1 unit per month.
1) What is the company’s range of profitable output per year?
arrow_forward
A company produces and sells luxury goods and is able to control the demand for the product by varying the selling price.
The relationship between price and demand is found to be:
p=10-(42/D^2)+2Dwhere p is the price per unit in million dollars and D is the demand per year. The company is seeking to maximize its profit. The fixed cost is $59 million per year and the variable cost is $25 million per unit. The production capacity is 42 units per year, and the company produces at least 1 unit per month.a) Derive how to find the number of units that should be produced annually to maximize profit.b) What is the maximum profit per year?c) What is the annual breakeven point?d)What is the company’s range of profitable output per year?
arrow_forward
What are the changes that happen to companies to firms as a result of COVID-19. Provide a clear framework of analysis.
arrow_forward
Refer to the data provided in Table 9.1 below to answer the question(s) that follow.
Table 9.1
TC MC
$50
1010 - N34567
9
1
2
E38888888
TVC
TFC
$50 $0
50
50
50
50
50
50
8008882
50
30
90
132
186
80
70 20
140
-
20
10 15
95 15 15
112 17
182
AAAARIN
236
AVC
BB55558
42
15.50
28 18
22
54 2657
Refer to Table 9.1. If the market price is $42, then in the long run the firm will
O operate and expand.
Ooperate but not expand.
shut down, but not go out of business.
go out of business.
ATC
2952283
70
40
31.67
30.33
33.71
arrow_forward
A hypothetical company located in the Asia Pacific region is an integrated wood industry company which manages over 800,000 hectares of natural forest and 50,000 hectares of industrial timber plantations. The company also has two plywood factories and two Medium Density Fibreboard factories with a total production capacity of 200,000m3 per year. It exports over 85% of its product to more than 15 countries in 5 continents.
Plywood production consists requires energy, water, and use of some industrial chemicals. The process produces emissions into water and air.
The company is aware that its operations have multiple social and environmental impacts, especially relating to forest preservation and air and water quality. The company decides to implement ISO 14001.
What benefits could the company derive from certification under ISO 14001? Relate to the ISO certification of a wood-based company in a real world.
arrow_forward
Barry and Steve are both age 61. Barry has just purchased a whole life insurance policy. Steve purchased a whole life insurance policy one
year ago.
Both Barry and Steve are subject to the following 3-year select and ultimate table:
42]
l[x]+1
l[x]+2
lx+3
10,000 9,600 8,640 7,771 63
61 8,654 8,135
6,996 5,737 64
62 7,119 6,549 5,501 4,016 65
63 5,760 4,954 3,765 2,410 66
I
60
x+3
The force of mortality is constant over each year of age.
Calculate the difference in the probability of survival to age 64.5 between Barry and Steve.
arrow_forward
what are some of the challenges in the adoption and usage of EVA analysis in different industry settings?
arrow_forward
* MindTap - Cengage Learning
b Answered: Homework (Ch 17) En x
+
A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=59828118170010561930692029148&elSBN=9780357133606&id=1270090919&snapshotld=2556323&
E Apps M Gmail
A Maps A clickserve.dartsearc.
E Reading list
YouTube
«
* CENGAGE MINDTAP
Q Search this course
Love v
A My Home
Homework (Ch 17)
Courses
Complete the following table by indicating whether each of the scenarios describes the concept of tying, resale price maintenance, or predatory
O Catalog and Study Tools
pricing.
Resale Price
Predatory
Pricing
A-Z
EE Rental Options
Scenario
Tying
Maintenance
Coolaire is the only firm producing refrigerators. It costs $1,000 to produce a refrigerator, and
- College Success Tips
Coolaire sells each refrigerator for $1,200. After Chillbox, a new firm with the same costs as
Career Success Tips
Coolaire, enters the market for refrigerators, Coolaire starts selling its refrigerators for a price of
$550.
? Help
Snackyville sells a wide…
arrow_forward
Note:-
Do not provide handwritten solution. Maintain accuracy and quality in your answer. Take care of plagiarism.
Answer completely.
You will get up vote for sure.
arrow_forward
please quickly thanks !
arrow_forward
Melbourne Central Business District
(CBD) train line is only operated by
Metro. Singh and his two (2) friends are
from rich families. After graduating from
Holmes Institute they wanted to
establish a passenger train line in
Melbourne Central CBD. Accordingly,
they made an application to the
Victorian Department of Transport.
However, the Victorian Department of
Transport rejected their application.
Examine the factors that could have
contributed to the decision by the
Victorian Department of Transport to
reject Singh and his friends' application
to enter the industry.
ANSWER a):
Examine the price discrimination
practices in the train transport industry?
arrow_forward
Problem # 2
The University Eye Institute in upper New-York state is a state-of-the-art ophthalmology center that specializes in a sophisticated laser surgery to correct myopia. Current annual volume is 1000 operations. A major customer of the center is the United Health Insurance system. United currently sends the University Eye Institute 200 patients per year or 20% of the total.
United pays $2,500 per operation as does every payor. The United Health Insurance Company is satisfied with the quality and service provided by the University Eye Institute and has proposed that they send the Center an additional 100 patients (operations) per year. United proposes that the fee be reduced to $2,000 for the additional 100 patients and for the prior 200 patients. Assume the fee paid by payors other than United Health remains the same.
a) What is the marginal revenue per patient if the proposal is accepted?
b) What is the marginal cost per patient if the proposal is accepted? Here are some cost…
arrow_forward
A company produces and sells a consumer product and is ableto control the demand by varying the selling price. The approximate
relationship between price and demand is
p = 38+ (2,700/D) - (5000/D²) for D>1
The company is seeking to maximize its profit. The fixed cost is $1,000 and the variable cost is $ 40 per unit.
What is the number of units that should be produced and sold each month to maximize profit?
A 71
B 60
с 50
D 25
arrow_forward
Dawson Toys, Limited, produces a toy called the Maze with the following standards:
Direct materials: 7 microns per toy at $0.33 per micron
Direct labor: 1.1 hours per toy at $6.80 per hour
During July, the company produced 5,000 Maze toys. The toy's production data for the month are as follows:
Direct materials: 79,000 microns were purchased at a cost of $0.29 per micron. 35,250 of these microns were still in inventory at the
end of the month.
Direct labor. 6,000 direct labor-hours were worked at a cost of $43,200.
Required:
1. Compute the following variances for July:
Note: Indicate the effect of each variance by selecting "F" for favorable, "U" for unfavorable, and "None" for no effect (i.e., zero
variance). Input all amounts as positive values. Do not round intermediate calculations. Round final answer to the nearest whole
dollar amount.
a. The materials price and quantity variances.
b. The labor rate and efficiency variances.
1a. Material price variance
1a. Material quantity…
arrow_forward
Note:-
Do not provide handwritten solution. Maintain accuracy and quality in your answer. Take care of plagiarism.Answer completely.You will get up vote for sure.
arrow_forward
Boysen Industries manufactures outdoor paints used for the facade of high rise buildings.
The company plans to introduce a new paint variant that is able to withstand harsh weather
conditions. The new paint is made by combining Protein D with a solution (Salcomb) which
will be heated to boiling point and thereafter, the colouring agent (Texta) is added. The
resulting paint will be packaged in 10 litre containers. The initial mix, which is 11 litres
in volume, consists of 15 kilograms of Protein D and 8 litres of Salcomb. A reduction in
volume by 1 litre happens during the boiling process. The resulting solution is cooled
slightly before 3 kilograms of of Texta are added. Texta evaporates so it does not affect the
final liquid volume.
The purchase prices of the raw materials used in the manufacture of the new paint variant
are as follows:
$2.90 per kilogram
$3.50 per litre
Protein D
Salcomb
Texta
$5.80 per kilogram
Determine the standard material cost of a 10 litre container of the new…
arrow_forward
Where did the 14.3 come from?
arrow_forward
W7 Q5
A paper published in the Harvard Business Review points out a new way to calculate economic profit that could be more appropriate for service firms and other people-intensive companies. Instead of focusing on investment and return on investment, the focus is on employee productivity, in terms of both generating revenues and reducing costs.
The approach is to first determine economic profit in the conventional way, except that we ignore taxes, so that economic profit is before tax, as follows:
Economic profit = Operating profit − Capital charge
Assume the following information for a hotel chain that wishes to adopt the new method. The firm has $100 million in operating profit, has $1 billion in investment, and uses a cost of capital rate of 5%, so the capital charge is $50 million and the economic profit is $50 million. Relevant calculations are contained in Part 1 of the following schedule:
Part 1: Economic Profit (in thousands, except cost of capital rate)
Revenue…
arrow_forward
Identify IFRS standards that ordinary production company would need to apply while adopting IFRS for the first time
arrow_forward
Mindlap Cengage Leaming
n/static/nb/ui/evo/index.html?deploymentld%3D5981412353502464190243042516&elSBN=9780357133576&id%3D14420886
CENGAGE MINDTAP
Module One Quiz
Show what happens to the production possibilities frontier (PPF) if an epidemic reduces the population of the society.
PPF
PPF
Quantity of Industrial Output
79°F Su
Quantity of Agricultural Output
arrow_forward
A clothing manufacturer makes trousers,skirts and blouses.Each trouser requires 20 minutes of cutting time,60 minutes of sewing time and 5 minutes of packaging time.Each skirt requires 15 minutes of cutting time,30 minutes of sewing time and 12 minutes of packaging time.Each blouse requires 10 minutes of cutting time, 24 minutes of sewing time and 6 minutes of packaging time. The amount of time available for cutting,sewing and packaging is 115 hours, 280 hours and 65 hours respectively.Determine how many of each type of clothing should be made to use all available labour hours.
arrow_forward
A clothing manufacturer makes trousers, skirts and blouses. Each trouser requires 20 minutes of cutting time, 60 minutes of sewing time and 5 minutes of packaging time. Each skirt requires 15 minutes of cutting time, 30 minutes of sewing time and 12 minutes of packaging time. Each blouse requires 10 minutes of cutting time, 24 minutes of sewing time and 6 minutes of packaging time.
The amount of time available for cutting, sewing and packaging is 115 hours, 280 hours and 65 hours respectively. Using either the Inverse Method or the Cramer’s Rule, determine how many of each type of clothing should be made to use all available labor hours?
arrow_forward
a.A clothing manufacturer makes trousers, skirts and blouses. Each trouser requires 20 minutes of cutting time, 60 minutes of sewing time and 5 minutes of packagingtime. Each skirt requires 15 minutes of cutting time, 30 minutes of sewing time and 12 minutes of packaging time. Each blouse requires 10 minutes of cutting time, 24 minutes of sewing time and 6 minutes of packaging time.The amount of time available for cutting, sewing and packaging is 115 hours, 280 hours and 65 hours respectively.
Using either the ??????? ?????? ?? ?????????'? ????, determine how many of each type of clothing should be made to use all available labour hours?
arrow_forward
#8
What is the expected value Form Joint Venture?
Decision alternative
Success (0.24)
2115
Sell Company
Moderate Success (0.4)
2115
Failure (0.36)
2115
Form Joint Venture
Success (0.24)
2500
Moderate Success (0.4)
3074
Sell Software on own
Failure (0.36)
1000
Submit
Answer format: Number: Round to: 0 decimal places.
Success (0.24)
5000
Moderate Success (0.4)
3500
Failure (0.36)
-949
unanswered
not_submitted
Attempts Remaining: 2
arrow_forward
l
arrow_forward
help please answer in text form with proper workings and explanation for each and every part and steps with concept and introduction no AI no copy paste remember answer must be in proper format with all working
arrow_forward
Revenue and Costs ($)
TC
P61
Given
TFC = $40.00
Q1 = 30.00
Q2 = 40.00
TR
P6
P5
Q3 = 50.00
Q4 = 80.00
Q5 = 86.00
P4.
P1 = $40.00
P2 = $50.00
P3 = $60.0o
P4 = $150.00
P5 = $200.00
P6 = $210.00
P61 = $320.00
P3
P2
P1
Q1 Q2
Q4 Q5
Q3
Exhibit TR-TC
Output (Q)
Refer to Exhibit TR-TC for a typical competitive firm. At an output level of Q5, the firm's
losses is about
O $100.00
O $90.00
O $110.00
O $120.00
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Economics (12th Edition)
Economics
ISBN:9780134078779
Author:Karl E. Case, Ray C. Fair, Sharon E. Oster
Publisher:PEARSON
Engineering Economy (17th Edition)
Economics
ISBN:9780134870069
Author:William G. Sullivan, Elin M. Wicks, C. Patrick Koelling
Publisher:PEARSON
Principles of Economics (MindTap Course List)
Economics
ISBN:9781305585126
Author:N. Gregory Mankiw
Publisher:Cengage Learning
Managerial Economics: A Problem Solving Approach
Economics
ISBN:9781337106665
Author:Luke M. Froeb, Brian T. McCann, Michael R. Ward, Mike Shor
Publisher:Cengage Learning
Managerial Economics & Business Strategy (Mcgraw-...
Economics
ISBN:9781259290619
Author:Michael Baye, Jeff Prince
Publisher:McGraw-Hill Education
Related Questions
- iii. just need the answerarrow_forwardAnalyse the impact of Covid-19 on the industry and the economy of Indiaarrow_forwardA company produces and sells luxury goods and is able to control the demand for the product by varying the selling price. The relationship between price and demand is found to be: p=10-(42/D^2)+2Dwhere p is the price per unit in million dollars and D is the demand per year. The company is seeking to maximize its profit. The fixed cost is $59 million per year and the variable cost is $25 million per unit. The production capacity is 42 units per year, and the company produces at least 1 unit per month. 1) What is the company’s range of profitable output per year?arrow_forward
- A company produces and sells luxury goods and is able to control the demand for the product by varying the selling price. The relationship between price and demand is found to be: p=10-(42/D^2)+2Dwhere p is the price per unit in million dollars and D is the demand per year. The company is seeking to maximize its profit. The fixed cost is $59 million per year and the variable cost is $25 million per unit. The production capacity is 42 units per year, and the company produces at least 1 unit per month.a) Derive how to find the number of units that should be produced annually to maximize profit.b) What is the maximum profit per year?c) What is the annual breakeven point?d)What is the company’s range of profitable output per year?arrow_forwardWhat are the changes that happen to companies to firms as a result of COVID-19. Provide a clear framework of analysis.arrow_forwardRefer to the data provided in Table 9.1 below to answer the question(s) that follow. Table 9.1 TC MC $50 1010 - N34567 9 1 2 E38888888 TVC TFC $50 $0 50 50 50 50 50 50 8008882 50 30 90 132 186 80 70 20 140 - 20 10 15 95 15 15 112 17 182 AAAARIN 236 AVC BB55558 42 15.50 28 18 22 54 2657 Refer to Table 9.1. If the market price is $42, then in the long run the firm will O operate and expand. Ooperate but not expand. shut down, but not go out of business. go out of business. ATC 2952283 70 40 31.67 30.33 33.71arrow_forward
- A hypothetical company located in the Asia Pacific region is an integrated wood industry company which manages over 800,000 hectares of natural forest and 50,000 hectares of industrial timber plantations. The company also has two plywood factories and two Medium Density Fibreboard factories with a total production capacity of 200,000m3 per year. It exports over 85% of its product to more than 15 countries in 5 continents. Plywood production consists requires energy, water, and use of some industrial chemicals. The process produces emissions into water and air. The company is aware that its operations have multiple social and environmental impacts, especially relating to forest preservation and air and water quality. The company decides to implement ISO 14001. What benefits could the company derive from certification under ISO 14001? Relate to the ISO certification of a wood-based company in a real world.arrow_forwardBarry and Steve are both age 61. Barry has just purchased a whole life insurance policy. Steve purchased a whole life insurance policy one year ago. Both Barry and Steve are subject to the following 3-year select and ultimate table: 42] l[x]+1 l[x]+2 lx+3 10,000 9,600 8,640 7,771 63 61 8,654 8,135 6,996 5,737 64 62 7,119 6,549 5,501 4,016 65 63 5,760 4,954 3,765 2,410 66 I 60 x+3 The force of mortality is constant over each year of age. Calculate the difference in the probability of survival to age 64.5 between Barry and Steve.arrow_forwardwhat are some of the challenges in the adoption and usage of EVA analysis in different industry settings?arrow_forward
- * MindTap - Cengage Learning b Answered: Homework (Ch 17) En x + A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=59828118170010561930692029148&elSBN=9780357133606&id=1270090919&snapshotld=2556323& E Apps M Gmail A Maps A clickserve.dartsearc. E Reading list YouTube « * CENGAGE MINDTAP Q Search this course Love v A My Home Homework (Ch 17) Courses Complete the following table by indicating whether each of the scenarios describes the concept of tying, resale price maintenance, or predatory O Catalog and Study Tools pricing. Resale Price Predatory Pricing A-Z EE Rental Options Scenario Tying Maintenance Coolaire is the only firm producing refrigerators. It costs $1,000 to produce a refrigerator, and - College Success Tips Coolaire sells each refrigerator for $1,200. After Chillbox, a new firm with the same costs as Career Success Tips Coolaire, enters the market for refrigerators, Coolaire starts selling its refrigerators for a price of $550. ? Help Snackyville sells a wide…arrow_forwardNote:- Do not provide handwritten solution. Maintain accuracy and quality in your answer. Take care of plagiarism. Answer completely. You will get up vote for sure.arrow_forwardplease quickly thanks !arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Economics (12th Edition)EconomicsISBN:9780134078779Author:Karl E. Case, Ray C. Fair, Sharon E. OsterPublisher:PEARSONEngineering Economy (17th Edition)EconomicsISBN:9780134870069Author:William G. Sullivan, Elin M. Wicks, C. Patrick KoellingPublisher:PEARSON
- Principles of Economics (MindTap Course List)EconomicsISBN:9781305585126Author:N. Gregory MankiwPublisher:Cengage LearningManagerial Economics: A Problem Solving ApproachEconomicsISBN:9781337106665Author:Luke M. Froeb, Brian T. McCann, Michael R. Ward, Mike ShorPublisher:Cengage LearningManagerial Economics & Business Strategy (Mcgraw-...EconomicsISBN:9781259290619Author:Michael Baye, Jeff PrincePublisher:McGraw-Hill Education
Principles of Economics (12th Edition)
Economics
ISBN:9780134078779
Author:Karl E. Case, Ray C. Fair, Sharon E. Oster
Publisher:PEARSON
Engineering Economy (17th Edition)
Economics
ISBN:9780134870069
Author:William G. Sullivan, Elin M. Wicks, C. Patrick Koelling
Publisher:PEARSON
Principles of Economics (MindTap Course List)
Economics
ISBN:9781305585126
Author:N. Gregory Mankiw
Publisher:Cengage Learning
Managerial Economics: A Problem Solving Approach
Economics
ISBN:9781337106665
Author:Luke M. Froeb, Brian T. McCann, Michael R. Ward, Mike Shor
Publisher:Cengage Learning
Managerial Economics & Business Strategy (Mcgraw-...
Economics
ISBN:9781259290619
Author:Michael Baye, Jeff Prince
Publisher:McGraw-Hill Education