From the course: Data, Economic Modeling, and Forecasting with Stata
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Correlation - Stata Tutorial
From the course: Data, Economic Modeling, and Forecasting with Stata
Correlation
- [Narrator] One of the goals of using the mean and summarize commands is to get familiar with your data. Another way to get familiar with your data before you begin regression analysis and forecasting, is to look for correlations. The command for this in Stata is C-O-R-R-E-L, correl. And let's take a look at some of the data we have. For example, let's look at those aluminum closing prices, one month out and compare it to that sum of the PMIs. We see here that there's a statistically significant and positive correlation. In fact, this is a correlation of almost 0.5 and because it's positively correlated, it means that when PMIs go up, aluminum prices, generally will go up as well. If this had been an inverse correlation the number would've been negative, and that would mean that, for example when the PMIs go up, aluminum prices would go down. But this is a positive correlation. Let's take a look at some of the other data…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Overview and enter data1m 58s
-
(Locked)
Data preparation and selection2m 57s
-
(Locked)
Inputting data1m 24s
-
(Locked)
Mean and summary statistics4m 35s
-
Standard deviation and SE4m 33s
-
(Locked)
Correlation3m 9s
-
(Locked)
Key output validity measures2m 1s
-
(Locked)
Univariate model2m 41s
-
(Locked)
Multivariate model3m 35s
-
(Locked)
Appling univariate model to forecast2m 58s
-
(Locked)
Saving and files54s
-
(Locked)
-
-