aiLabel:

How to use SPSS for time series analysis?

the brevity of life
Favorable reply

When we use SPSS for data analysis, we sometimes need to use SPSS for time series analysis, so what should we pay attention to in time series analysis and how to operate it?

Operation method

First, we import a group of test data from Excel into SPSS for time series analysis. In the dialog box as shown in the figure, select the excel file shown in the figure under "Open existing data source".

Then in the pop-up "Open Excel Data Source" box, under "Worksheet", select the Excel sheet where you enter data, and click "OK".

Next, we need to check the imported data, such as whether there is missing data and how the data is distributed. Method 1: click "Data View" at the bottom left corner to view the original data (when there is not much data used); Method 2: click "Analysis - Description Statistics - Description" to view the data (recommended in case of more data).

Data preprocessing

After completing the above steps, you need to preprocess the data before performing time series analysis, that is, define the date for the data.

First, click "Data - Define Date" on the menu as shown in the figure.

Next, we set the format of the date in the pop-up Define Date dialog box. In the illustrated case, we now use "year, month" as the date format.

After determining the date format, we can see the newly inserted date "Year", "Month" and "Date" (the default name of the new variable) in the "Data View" of the SPSS data table.

Time series analysis - exponential smoothing method

First, we use exponential smoothing method to analyze time series. The use of exponential smoothing is characterized by putting larger weights on the latest data.

We click "Analysis - Forecast - Create Model" in the first row of menu bar in order to pop up the "Time Series Modeler".

Now make some settings: under the "Variable" option, drag the variable to be predicted for the time series into the "Dependent Variable" box shown in the figure; In Method, select Exponential Smoothing.

Other settings include [Statistics]. We check "Stable R Square", "Goodness of Fit" and "Display Predicted Value"; Select "Observed Value", "Predicted Value" and "Fitted Value" in [Chart]; Check Predicted Value in Save; Under [Option], fill in the specified date that we need to predict.

After all settings are completed, click OK to see the results displayed by the time series modeling program in the output document (right click the result chart to copy, export to Excel, etc.).

Time series analysis - ARIMA model

We can also use ARIMA model to predict time series, which is characterized by transforming non-stationary time series into stationary time series, and then regressing the dependent variable only to its lag value and the present value and lag value of random error term. ARIMA (p, d, q) in ARIMA model is called differential autoregressive moving average model, AR is autoregressive, and p is autoregressive term; MA is the moving average, q is the number of moving average terms, and d is the number of differences made when the time series becomes stable.

The method used is similar to that above. Click "Analyze Forecast Create Model" in the first menu bar to pop up the "Time Series Modeler".

Since we have made settings in the exponential smoothing method, there is no need to set again. The setting required here is to drag the independent variable under Variable into the Dependent Variable box and the Independent Variable box, and then select "ARIMA" in the method.

After all settings are completed, click OK to see the prediction results using ARIMA model in the output document just now (similarly, these results can be copied and exported by right clicking).

the brevity of life 2024-05-20 03:43:11
The above contents quoted, excerpted or reproduced on this website are only for the exchange or reference of website visitors. The views or information in the text have nothing to do with Aiwen, and any matters and legal liabilities related to it have nothing to do with Aiwen.

Latest answers Change

one

Q: Will the tempered glass fall when it bursts

Answer:
Answer: Tempered glass will not fall down immediately if it bursts, but it will still be dangerous after a long time. It is recommended to replace it as soon as possible. The automatic cracking of tempered glass without direct mechanical external force is called the self explosion of tempered glass. According to industry experience, the self explosion rate of ordinary tempered glass is about 1-3 ‰. Self explosion is one of the inherent characteristics of tempered glass. Tempered glass/Reinforced glass belongs to safety glass. Tempered glass is actually a kind of prestressed glass. In order to improve the strength of glass, chemical or physical methods are usually used to form compressive stress on the surface of glass. When the glass bears external forces, it first offsets the surface stress, thus improving the bearing capacity, and enhancing the resistance to wind pressure, cold and heat, impact, etc. of the glass itself. Be careful to distinguish it from fiberglass.

Related recommendations

What is the hearing distance of human ear

The hearing distance of the human ear is five meters. Generally speaking, the normal hearing of the ear is five meters, 30 to 40 decibels, which means that the voice that people normally communicate is slightly low. The human ear can be divided into three parts: the outer ear, the middle ear and the inner ear. Can feel the
Details>
Question time: July 15, 2020

How to cancel a credit card

1. Telephone banking cancellation: the cardholder can apply for cancellation of the credit card by calling the bank customer service telephone at the back of the credit card. 2. After dialing the phone, the cardholder can enter the card number and information according to the prompt to cancel the card. 3. Cancellation at the bank counter: cardholders can take their own
Details>
Question time: July 25, 2020

Can I eat things smoked with sulfur

It can't be eaten. If sulfur smoked food is eaten, it will damage the digestive tract and respiratory system, damage the mucosa of these organs, and lead to mutation. In addition, it will also damage the liver and kidney. Sulfur is also called sulfur, colloidal sulfur and sulfur block. The appearance is yellowish brittle crystal or powder, with special
Details>
Question time: December 24, 2019

What does it mean that everything is fate

"All things are fate, and no one is allowed to do the least", a proverb, means that everything is destined for human beings, and no one is allowed to do the least. From the 17 th of the "Cautionary Tales": "Monks know that it is Mr. Ma's husband, and they all respect him. He is exactly 32 years old, and he is lucky
Details>
Question time: August 6, 2020

What material is pvc oil

PVC ointment, namely PVC plastic waterproof ointment, is a new type of building waterproof coating and waterproof caulking material made by plasticizing PVC, coal tar and some modified materials. Wide adaptability, strong cohesiveness, good waterproof, elastic-plastic, good resistance
Details>
Question time: December 31, 2019

How old can I get a marriage certificate

According to Article 10 of Chapter II of the Marriage Law of the People's Republic of China, marriage should meet certain conditions. If marriage is to be fully voluntary, the age of marriage should not be earlier than 22 for men and 20 for women. Those who do not meet the following requirements at the same time are deemed invalid
Details>
Question time: December 24, 2019

How to check the express without express number

1. You can call the corresponding express company customer service line. You can find it by providing your detailed shipping address, receiving address and contact person, and then ask them to write down their declaration number for your convenience in future inquiry. 2. If you want to pick up a piece at home, you can call
Details>
Question time: December 12, 2019

How long does it take to cook or steam dumplings

Zongzi is usually cooked in an ordinary pot for 3-4 hours, and the dumplings cooked in casserole will be particularly fragrant. If the food sold in the supermarket is already cooked food, it can be eaten after ten minutes of boiling in water. Zongye Zongzi leaves in different areas, have ground
Details>
Question time: August 8, 2020

Is cicada a pest or a beneficial insect

Cicadas are pests because their larvae hide under the soil and feed on the juice of plant roots to maintain their life. Cicadas live in temperate to tropical regions of the world. Some species distributed in desert areas will discharge excess water from the backplane when their body temperature is overheated, thus achieving cooling and heat dissipation
Details>
Question time: December 29, 2019

How many days of pregnancy can be measured by ovulation test paper

Generally speaking, you can test yourself 7-10 days after having sex. You can test pregnancy by detecting morning urine with an early pregnancy test paper or pregnancy test stick. The longer the time after sex, the more accurate it will be. In short, the first week and the last about 3 weeks after the roommate, it can be measured that
Details>
Question time: January 27, 2020

What does 9921 mean

9921 means to love you for a long time, which means to love you all the time. Arabic numerals are more commonly used in chat. With the help of the homophonic and moral meanings of digital characters, netizens express many life expressions in the form of digital combinations, which are simple to write and look at
Details>
Question time: August 17, 2020

All very good. Did you remarry tomorrow

In the final ending of All Is Well, Mingcheng did not remarry, which is a pity, but it is not a bad ending. The ending between Julie and Su Mingcheng is open. It is not only remarriage that means they are together again. Just like Shi Tiandong and Su Mingyu, neither of them
Details>
Question time: July 1, 2020

How to keep garlic cloves

The best way to preserve garlic cloves is to put the peeled garlic in a sealed fresh-keeping bag, and then put it into the refrigerator. This can not only prevent the loss of moisture in garlic, but also inhibit garlic germination, and ensure that garlic does not deteriorate. It can be said that this method is all
Details>
Question time: April 1, 2020

What time does the vehicle management office go to work in the morning

1、 The vehicle management office goes to work at 9:00 am and leaves work at 12:00 am on weekdays; Go to work at 2 p.m., go off work at 5 p.m., and have a rest on weekends. 2、 The working hours in different regions of the vehicle management office will be different. The eastern region works early, while the western region works late. The specific working hours depend on the local government
Details>
Question time: January 3, 2020