| petrobras.its | R Documentation |
Daily high and low stock prices of Petrobras (ADR traded on NYSE) from January 3, 2005 to December 29, 2006 (503 trading days). This dataset matches the period used by Maia, de Carvalho and Ludermir (2008) in their work on forecasting models for interval-valued time series.
data(petrobras.its)
A data frame with 503 observations and 3 variables:
date: Trading date (Date class).
low: Daily low price (USD).
high: Daily high price (USD).
Petrobras (Petroleo Brasileiro S.A.) is the Brazilian multinational petroleum corporation. The ADR (American Depositary Receipt) is traded on the New York Stock Exchange under ticker PBR. Each observation represents a trading day with the daily low and high prices forming an interval. This was one of the first datasets used to demonstrate interval-valued autoregressive (iAR) models.
| Sample size (n) | 503 |
| Variables (p) | 3 (date, low, high) |
| Subject area | Finance |
| Symbolic format | Interval time series |
| Analytical tasks | Forecasting, Time series analysis |
Yahoo Finance, ticker PBR. Downloaded via the
quantmod package.
Maia, A. L. S., de Carvalho, F. A. T. and Ludermir, T. B. (2008). Forecasting models for interval-valued time series. Neurocomputing, 71(16–18), 3344–3352.
data(petrobras.its)
head(petrobras.its)
plot(petrobras.its$date, petrobras.its$high, type = "l", col = "red",
ylab = "Price (USD)", xlab = "Date",
main = "Petrobras Daily High/Low (2005-2006)")
lines(petrobras.its$date, petrobras.its$low, col = "blue")
legend("topleft", c("High", "Low"), col = c("red", "blue"), lty = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.