1.4.2.3.5. Work This Example Yourself
| 1. Exploratory Data Analysis 1.4. EDA Case Studies 1.4.2. Case Studies 1.4.2.3. Random Walk | |||
| View Dataplot Macro for this Case Study | This page allows you to repeat the analysis outlined in the case study description on the previous page using Dataplot. It is required that you have already [downloaded and installed](http://www.itl.nist.gov/div898/software/dataplot/ftp/ homepage.htm) Dataplot and configured your browser. to run Dataplot. Output from each analysis step below will be displayed in one or more of the Dataplot windows. The four main windows are the Output window, the Graphics window, the Command History window, and the data sheet window. Across the top of the main windows there are menus for executing Dataplot commands. Across the bottom is a command entry window where commands can be typed in. |
| Data Analysis Steps | Results and Conclusions |
|---|---|
| Click on the links below to start Dataplot and run this case study yourself. Each step may use results from previous steps, so please be patient. Wait until the software verifies that the current step is complete before clicking on the next step. | The links in this column will connect you with more detailed information about each analysis step from the case study description. |
| ```text |
- Invoke Dataplot and read data.
[text
- Read in the data.
](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/data.dp) | text
[text
- You have read 1 column of numbers into Dataplot, variable Y.
](/u/81a6e4482d00ccc0)
| ```text
2. Validate assumptions.
``` [```text
1. 4-plot of Y.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/4plot.dp) [```text
2. Generate a table of summary
statistics.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/summary.dp) [```text
3. Generate a linear fit to detect
drift in location.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/location.dp) [```text
4. Detect drift in variation by
dividing the data into quarters and
computing Levene's test for equal
standard deviations.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/variatio.dp) [```text
5. Check for randomness by generating
a runs test.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/random.dp) | ```text
``` [```text
1. Based on the 4-plot, there are shifts
in location and scale and the data are not
random.
```](/u/41bb99d87ad633d4#4-plot) [```text
2. The summary statistics table displays
25+ statistics.
```](/u/41bb99d87ad633d4#summary) [```text
3. The linear fit indicates drift in
location since the slope parameter
is statistically significant.
```](/u/41bb99d87ad633d4#location) [```text
4. Levene's test indicates significant
drift in variation.
```](/u/41bb99d87ad633d4#variation) [```text
5. The runs test indicates significant
non-randomness.
```](/u/41bb99d87ad633d4#random) |
| ```text
3. Generate the randomness plots.
``` [```text
1. Generate an autocorrelation plot.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/autocorr.dp) [```text
2. Generate a spectral plot.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/spectrum.dp) | ```text
``` [```text
1. The autocorrelation plot shows
significant autocorrelation at lag 1.
```](/u/41bb99d87ad633d4#autocorr) [```text
2. The spectral plot shows a single dominant
low frequency peak.
```](/u/41bb99d87ad633d4#spectrum) |
| ```text
4. Fit Yi = A0 + A1*Yi-1 + Ei
and validate.
``` [```text
1. Generate the fit.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/ar.dp) [```text
2. Plot fitted line with original data.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/plotpred.dp) [```text
3. Generate a 4-plot of the residuals
from the fit.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/4plotres.dp) [```text
4. Generate a uniform probability plot
of the residuals.
```](https://www.itl.nist.gov/div898/handbook/eda/section4/randwalk/dpmacros/unifprpl.dp) | ```text
``` [```text
1. The residual standard deviation from the
fit is 0.29 (compared to the standard
deviation of 2.08 from the original
data).
```](/u/f17ce75c50cadc96) [```text
2. The plot of the predicted values with
the original data indicates a good fit.
```](/u/d7881a168f2912f4#plotpred) [```text
3. The 4-plot indicates that the assumptions
of constant location and scale are valid.
The lag plot indicates that the data are
random. However, the histogram and normal
probability plot indicate that the uniform
disribution might be a better model for
the residuals than the normal
distribution.
```](/u/d7881a168f2912f4#4plot) [```text
4. The uniform probability plot verifies
that the residuals can be fit by a
uniform distribution.
```](/u/d7881a168f2912f4#uniform) |