How to do Grey Relational Analysis step by step
Grey Relational Analysis step by step: grey relational generation, the reference sequence, deviations, grey relational coefficients and grades, and ρ.
CKR team · · 10 min read
Grey Relational Analysis (GRA) ranks alternatives by how closely each one’s normalised performance sequence resembles an ideal reference sequence. The data are scaled to 0–1 in the direction of preference, each alternative’s deviation from the ideal value of 1 is computed, and the grey relational coefficient ξ = (Δmin + ρΔmax)/(Δ + ρΔmax) turns each deviation into a similarity between 0 and 1. The weighted average of an alternative’s coefficients is its grey relational grade; the highest grade ranks first.
The short version
- 01Grey relational generation is min–max normalisation in the direction of preference; the reference sequence is 1 on every criterion.
- 02The deviation Δ is the distance from 1; the coefficient ξ = (Δmin + ρΔmax)/(Δ + ρΔmax) is 1 at the ideal and falls as Δ grows.
- 03ρ, the distinguishing coefficient, is usually 0.5. Smaller ρ rewards being best on some criterion; larger ρ rewards being balanced.
- 04In the machining example setting S2 has the highest grade (0.778) at every ρ from 0.1 to 1, while the order of the middle settings depends on ρ.
What is Grey Relational Analysis?
Grey Relational Analysis comes from grey system theory, introduced by Deng (1982) for systems in which information is partly known and partly unknown, “grey” rather than black or white. In decision making, GRA measures how similar each alternative is to an ideal alternative by comparing their sequences of values across the criteria. Kuo, Yang and Huang (2008) set out its use for multiple attribute decision problems in the form most applications follow.
GRA is especially common in engineering, where it is used to choose process settings that balance several responses at once, often combined with Taguchi experimental designs. It works with small samples, needs no assumption about the distribution of the data, and requires only a few lines of arithmetic. Its one parameter, the distinguishing coefficient ρ, has a larger effect on the result than many studies acknowledge, and this tutorial shows how much.
- 01Grey relational generationNormalise each response to 0–1 in the direction of preference.
- 02Reference sequenceThe ideal value, 1, on every criterion.
- 03Deviation sequencesΔᵢⱼ = |1 − rᵢⱼ| for every alternative and criterion.
- 04Grey relational coefficientsξᵢⱼ = (Δmin + ρΔmax) / (Δᵢⱼ + ρΔmax).
- 05Grey relational gradeWeighted average of each alternative’s coefficients; rank from highest.
What example will we use?
A machining study tested five combinations of cutting speed and feed rate, settings S1 to S5, and measured three responses for each: surface roughness Ra in micrometres (lower is better), material removal rate in cubic centimetres per minute (higher is better) and tool flank wear in millimetres (lower is better). The three responses are given equal weight, as is common in GRA studies of process settings.
| Setting | Roughness Ra (µm) | Removal rate (cm³/min) | Tool wear (mm) |
|---|---|---|---|
| S1 | 1.8 | 12.5 | 0.21 |
| S2 | 1.2 | 9.8 | 0.15 |
| S3 | 2.4 | 15.1 | 0.28 |
| S4 | 1.5 | 11.2 | 0.18 |
| S5 | 2.0 | 14.0 | 0.20 |
| Direction | lower | higher | lower |
The responses conflict in the usual way: higher removal rates come with rougher surfaces and faster tool wear. S2 gives the best finish and the least wear but the lowest removal rate; S3 removes material fastest at the cost of the worst finish and the most wear.
Step 1: how do you normalise the responses?
In GRA the normalisation is called grey relational generation. For a “larger is better” response, rᵢⱼ = (xᵢⱼ − min)/(max − min); for a “smaller is better” response, rᵢⱼ = (max − xᵢⱼ)/(max − min). Both map the best observed value to 1 and the worst to 0. Some studies also use a “nominal is best” form for responses with a target value.
| Setting | Roughness | Removal rate | Tool wear |
|---|---|---|---|
| S1 | 0.5000 | 0.5094 | 0.5385 |
| S2 | 1.0000 | 0.0000 | 1.0000 |
| S3 | 0.0000 | 1.0000 | 0.0000 |
| S4 | 0.7500 | 0.2642 | 0.7692 |
| S5 | 0.3333 | 0.7925 | 0.6154 |
Step 2: how do you compute the deviation sequences?
The reference sequence x₀ is the ideal: 1 on every response. Each alternative’s deviation sequence is its distance from that ideal, Δᵢⱼ = |1 − rᵢⱼ|. Two numbers from the whole table are needed next: the smallest deviation Δmin and the largest Δmax. Because the normalisation sends the best value of each response to 1 and the worst to 0, Δmin = 0 and Δmax = 1 in almost every GRA study, and this example is no exception.
| Setting | Roughness | Removal rate | Tool wear |
|---|---|---|---|
| S1 | 0.5000 | 0.4906 | 0.4615 |
| S2 | 0.0000 | 1.0000 | 0.0000 |
| S3 | 1.0000 | 0.0000 | 1.0000 |
| S4 | 0.2500 | 0.7358 | 0.2308 |
| S5 | 0.6667 | 0.2075 | 0.3846 |
Step 3: how do you compute the grey relational coefficients?
With Δmin = 0, Δmax = 1 and ρ = 0.5 the formula reduces to ξ = 0.5/(Δ + 0.5). For S1’s roughness, Δ = 0.5 and ξ = 0.5/1.0 = 0.5. For S2’s removal rate, the worst in the table, Δ = 1 and ξ = 0.5/1.5 = 0.333. A coefficient is never below 1/3 at ρ = 0.5: the worst possible performance on a criterion still earns a third of the credit of the best, which is the source of ρ’s influence discussed below.
| Setting | Roughness | Removal rate | Tool wear |
|---|---|---|---|
| S1 | 0.5000 | 0.5048 | 0.5200 |
| S2 | 1.0000 | 0.3333 | 1.0000 |
| S3 | 0.3333 | 1.0000 | 0.3333 |
| S4 | 0.6667 | 0.4046 | 0.6842 |
| S5 | 0.4286 | 0.7067 | 0.5652 |
Step 4: how do you compute the grey relational grade?
S2’s grade is (1.0000 + 0.3333 + 1.0000)/3 = 0.7778. The grades of all five settings and the resulting ranks are below.
| Setting | Grade γ | Rank |
|---|---|---|
| S2 | 0.7778 | 1 |
| S4 | 0.5852 | 2 |
| S5 | 0.5668 | 3 |
| S3 | 0.5556 | 4 |
| S1 | 0.5083 | 5 |
Show the data
| Setting | Grey relational grade |
|---|---|
| S2 | 0.7778 |
| S4 | 0.5852 |
| S5 | 0.5668 |
| S3 | 0.5556 |
| S1 | 0.5083 |
S2 is clearly first. It is best on two of the three responses, and with equal weights that outweighs having the lowest removal rate. The other four grades lie within 0.08 of each other, so their order deserves a closer look.
How does ρ change the ranking?
The distinguishing coefficient sets the floor of the coefficients: the worst performance on a criterion earns ρ/(1 + ρ) of the best. With ρ = 0.1 that floor is 0.09, so being worst on a criterion is heavily penalised and being best on one is heavily rewarded. With ρ = 1 the floor is 0.5, and the difference between best and worst is compressed. Recomputing the grades for several values of ρ shows the effect.
- S3
- S4
- S1
Note. S2 (0.697 to 0.833) ranks first at every ρ and is left out for clarity, as is S5; the ranks of all five settings are in the table below.
Show the data
| Distinguishing coefficient ρ | S3 | S4 | S1 |
|---|---|---|---|
| 0.1 | 0.3939 | 0.2359 | 0.1714 |
| 0.3 | 0.4872 | 0.4668 | 0.3828 |
| 0.5 | 0.5556 | 0.5852 | 0.5083 |
| 0.7 | 0.6078 | 0.6588 | 0.5913 |
| 0.9 | 0.6491 | 0.7096 | 0.6504 |
| 1 | 0.6667 | 0.7295 | 0.6739 |
| ρ | S1 | S2 | S3 | S4 | S5 |
|---|---|---|---|---|---|
| 0.1 | 5 | 1 | 2 | 3 | 4 |
| 0.3 | 5 | 1 | 2 | 3 | 4 |
| 0.5 | 5 | 1 | 4 | 2 | 3 |
| 0.7 | 5 | 1 | 4 | 2 | 3 |
| 0.9 | 4 | 1 | 5 | 2 | 3 |
| 1.0 | 4 | 1 | 5 | 2 | 3 |
S3 moves from second place at small ρ to last at ρ = 0.9 and above. S3 is the extreme setting, best on removal rate and worst on the other two. Small ρ rewards its one outstanding response; large ρ discounts it and penalises its weaknesses less, but its balanced competitors gain more. The settings with balanced performance, S4 and S5, rise as ρ grows. The choice of ρ is therefore a choice about how much to value excellence on one criterion against balance across all of them, and it should be justified like a weight.
- S2 at every ρ from 0.1 to 1
- 1st
- S3 as ρ rises from 0.1 to 1
- 2nd → 5th
- The conventional ρ
- 0.5
What if the responses are not equally important?
Equal weights are common in process studies but are a choice, not a requirement. If surface finish matters most, say with weights 0.5 for roughness, 0.2 for removal rate and 0.3 for tool wear, the grades at ρ = 0.5 become S2 0.867, S4 0.620, S5 0.525, S1 0.507 and S3 0.467. S2 remains first and S3 drops to last, because its weakness on roughness now counts for half the grade. Weights for GRA can come from a subjective method such as AHP or from an objective one such as CRITIC or entropy.
How does GRA relate to TOPSIS and VIKOR?
All three compare alternatives with an ideal. TOPSIS uses Euclidean distances to the ideal and anti-ideal; VIKOR uses the weighted sum and the maximum of normalised shortfalls. GRA uses a non-linear similarity, the grey relational coefficient, which flattens large deviations: a setting that is worst on a criterion is not punished in proportion to how bad it is, only up to the floor set by ρ. This makes GRA less sensitive to a single extreme value than a linear method, which is one reason it suits noisy experimental data.
The same settings ranked three ways
Running all three methods on the machining data with equal weights shows how the different treatments of a weak response matter. TOPSIS agrees with GRA on the winner: S2 has the highest closeness (0.684), followed by S4 (0.648), S5 (0.522), S1 (0.517) and S3 (0.316). VIKOR at v = 0.5 disagrees sharply. It ranks S1 first (Q = 0.226), then S5 (0.296), S4 (0.344), S2 (0.500) and S3 (1.000). S2 falls to fourth because VIKOR’s individual regret counts its single worst response, the lowest removal rate, at full weight. The VIKOR compromise set, the settings within DQ = 0.25 of the leader, is {S1, S5, S4}, and S2 is not in it.
| Setting | GRA (ρ = 0.5) | TOPSIS | VIKOR (v = 0.5) |
|---|---|---|---|
| S1 | 5 | 4 | 1 |
| S2 | 1 | 1 | 4 |
| S3 | 4 | 5 | 5 |
| S4 | 2 | 2 | 3 |
| S5 | 3 | 3 | 2 |
Which answer is right depends on the engineering question. If the aim is the setting that comes closest to the best observed value on most responses, GRA and TOPSIS answer it, and S2 is the choice. If no response may be allowed to fall to its worst level, VIKOR answers it, and S2 is ruled out by its low removal rate. Stating that question before choosing the method, rather than after seeing the results, is what makes the choice of method defensible.
When should you use GRA?
GRA suits problems with a small number of alternatives measured on several responses, where the data are experimental, noisy or few, and where no statistical model of the responses is available. That is why it is so common in manufacturing and materials studies built on orthogonal arrays. It is also useful when responses differ greatly in scale, because the normalisation and the bounded coefficient keep any one response from dominating. It is less suitable when the size of a deficiency should count in full, as with a safety limit or a regulatory threshold; then a method that penalises the worst response explicitly, such as VIKOR, or a constraint that excludes unacceptable alternatives before ranking, is more appropriate.
Which mistakes are common in GRA studies?
- Using the wrong normalisation for a response, for example “larger is better” for surface roughness.
- Taking Δmin and Δmax per criterion instead of over the whole deviation table. The method uses the global values.
- Calling the grey relational grade a probability or a percentage of quality. It is a relative similarity to the best observed values.
- Reporting results for ρ = 0.5 only, as if the ranking did not depend on it.
- Ignoring that the reference sequence is built from the observed best values: adding a new setting can change every grade.
How do you report GRA?
Report the responses and their directions, the normalisation, Δmin and Δmax, the value of ρ and why, the weights and their source, the coefficients and grades, and the ranks. For the example: “Setting S2 had the highest grey relational grade (0.778 at ρ = 0.5) and ranked first for every ρ between 0.1 and 1; the order of the remaining settings depended on ρ.” In CKR the normalised sequences, deviations, coefficients and grades are reported in tables, ρ can be changed to see its effect, and the result can be compared with other ranking methods on the same data.
Questions people ask
Why is ρ usually 0.5?
It is the value most applications adopt. It is a convention rather than a derived optimum; some authors propose choosing ρ from the data, but none of these rules is universally accepted.
What is the difference between the grey relational coefficient and the grade?
The coefficient compares one alternative with the ideal on one criterion; the grade is the weighted average of an alternative’s coefficients across all criteria.
Can GRA handle a target value instead of larger or smaller is better?
Yes, with a “nominal is best” normalisation that measures distance from the target, so the alternative closest to the target scores 1.
Is GRA the same as Taguchi–grey analysis?
Taguchi–grey analysis applies GRA to the results of a Taguchi experimental design, often after converting responses to signal-to-noise ratios. The GRA steps are the same.
How many alternatives does GRA need?
There is no minimum. GRA is often used with the 9, 18 or 27 runs of an orthogonal array, and it is designed for small samples.
References
Deng, J.-L. (1982). Control problems of grey systems. Systems & Control Letters, 1(5), 288–294. https://doi.org/10.1016/S0167-6911(82)80025-X
Kuo, Y., Yang, T., & Huang, G.-W. (2008). The use of grey relational analysis in solving multiple attribute decision-making problems. Computers & Industrial Engineering, 55(1), 80–93. https://doi.org/10.1016/j.cie.2007.12.002
CKR team · Chakaralaya Analytics
How this was checked. Normalised sequences, deviation sequences, coefficients, grades and ranks were computed with CKR’s GRA, as were the grades for each ρ in the scan and for the unequal weights. References were checked against Crossref.