H/V worked example¶
This page walks step by step through the joint MASW + H/V analysis on the app's example project, with the screenshots and numbers you read on screen. Open the example (File → Open the example) and follow along: the H/V curve and the run are already in the project, so you can read everything without spending credits.
A synthetic curve, declared
The example's H/V curve is not a field measurement: it is the diffuse-field H/V computed on a known profile (the solution of the example's MASW inversion), with a ±5 % ripple and a 15 % uncertainty band. It shows the procedure and, since the starting profile is known, how well the analysis recovers it. With a real measurement the numbers change; the way to read them does not.
1. The data: dispersion and H/V curve¶
The dispersion is the example's: 24 traces at 1 m spacing, source at 6 m, 30 picks on three modes with an uncertainty bar of ±50 m/s. The array is 23 m long: with the default exclusion of wavelengths beyond twice the array length, 28 points out of 30 remain.
The model is the layer table of the Inversion tab: six layers, the first two 1 m thick and locked, then thicknesses of 5 m (4–6), 6 m (5–7) and 7 m (6–8) and the half-space. Vs values are searched within the bounds of the table, for instance 266–1067 m/s for the half-space. The joint analysis uses the same bounds: it has none of its own.
The H/V curve is in the project with the properties read from the file:

| Item | Value |
|---|---|
| File | DefaultExample-hv.csv, HVSR NX CSV format, recognised automatically |
| Samples | 160, from 0.50 to 30.00 Hz |
| Band | ± σ at each sample (15 %, wider below 1 Hz and above 20 Hz) |
| Use in the calculation | ambient-noise H/V, the whole band, 40 points on a logarithmic scale |
| f0 | 4.35 Hz, the most prominent peak |
If you import the curve yourself (Replace…), the preview shows the curve with its band, the 40 calculation points and f0 before it enters the project:

2. Before spending credits: the comparison¶
The H/V curve and model panel puts on the same chart the measurement and two theoretical quantities of the model on screen: the Rayleigh ellipticity of the fundamental mode and the diffuse-field H/V.

Two things are clear at once:
- Ellipticity and H/V are not the same curve. The model's ellipticity peaks at 5.28 Hz and tends to a singularity; the diffuse-field H/V, which also contains body and Love waves, has a lower, broader peak and follows the measurement. For an ambient-noise measurement the right comparison is with the diffuse field: that is why the The curve is choice matters.
- Profile and measurement tell the same resonance. In the example the chosen solution is already the joint one; on a project of yours, a large mismatch here (a peak at a very different frequency) tells you to check the depth of the model or the nature of the peak before starting the run.
3. The settings¶
The example uses the default values:

| Group | Example values | What they do |
|---|---|---|
| Weights | 0.5 / 0.5, comparable misfits | the two measurements count equally, each divided by the minimum of its own search |
| H/V curve | curve band, 2 % damping | the uncertainty of each H/V point is the file's band; damping lowers and widens the theoretical peaks |
| Dispersion | 5 % uncertainty where the bar is missing, λ ≤ 2 × array length | here the bar exists; the exclusion removes 2 points |
| Search | 100 initial, 100 iterations × 30, 10 cells, seed 1, refinement 300 | 3,400 models per search, three searches |
4. The run¶
Start the joint analysis runs the three searches and the verification. The Analysis run card shows the current phase, with the iteration, the best misfit and the elapsed time:

With the default settings it usually takes a few minutes. Stop halts the run with no charge; an error is not charged. With the same seed and the same data the run repeats identically: running it again on the example gives the same numbers as this page.
5. The results¶

The f0 of the joint model is 4.40 Hz against the measured 4.35 Hz (1.1 % difference); the best dispersion-only model puts it at 4.18 Hz. On the chart the three computed curves stay inside the band almost everywhere; dispersion only (blue dashes) has a slightly higher, shifted peak.
The profiles, compared with the one the curve was generated from:
| Profile | Vs 1–5 [m/s] | Half-space Vs [m/s] | Thicknesses 3–5 [m] | Half-space at [m] | Vs,eq [m/s] |
|---|---|---|---|---|---|
| Reference (generates the curve) | 60 · 97 · 187 · 328 · 325 | 717 | 4.20 · 5.85 · 6.36 | 18.4 | 290.99 |
| Dispersion only | 58 · 104 · 190 · 347 · 315 | 778 | 4.77 · 5.14 · 6.82 | 18.7 | 291.94 |
| H/V curve only | 63 · 98 · 190 · 339 · 346 | 762 | 4.18 · 5.58 · 7.78 | 19.5 | 297.69 |
| Joint | 60 · 99 · 184 · 314 · 341 | 713 | 4.00 · 5.41 · 7.51 | 18.9 | 290.30 |
All of them recover the shallow part. The difference is at the bottom: dispersion alone gives the half-space 778 m/s (+8.5 % on the reference), because its wavelengths barely reach it; the joint analysis finds it at 713 m/s (−0.6 %). That is exactly what the H/V curve adds. On this site Vs,eq changes little (there is no bedrock with Vs ≥ 800 m/s within 30 m, so H = 30 m and the half-space counts for the last 11 m), but with a sharper contrast or a shallower bedrock the error on the half-space goes straight into H and the category.
6. The verification, tab by tab¶
The verification gives no score: each indicator answers one question and has its own threshold.
Summary¶

| Indicator | Example | Threshold | What it says |
|---|---|---|---|
| Observed curve inside the band predicted by MASW alone | 57.5 % | ≥ 50 % | dispersion alone already "sees" a good part of the curve |
| Difference between computed and observed f0 | 1.1 % | ≤ 10 % | the joint model has the right resonance |
| Joint MASW misfit / dispersion-only minimum | 1.02 | ≤ 1.5 | to fit the H/V curve the joint search did not sacrifice the dispersion |
| Joint H/V misfit / H/V-only minimum | 0.98 | ≤ 1.5 | nor the other way round: the two measurements do not pull in opposite directions |
| Rank of the linearised problem | 9 / 9 | full | every parameter has information of its own |
| Condition number | 76 | ≤ 1,000 | no combination of parameters is close to undetermined |
| Pairs with |r| ≥ 0.9 | 1 | 0 | to be assessed: Vs 4 and thickness 3 trade off (see below) |
| Largest shift of f0 with perturbed assumptions | 10.7 % | ≤ 15 % | f0 holds against the fixed assumptions |
| Models with non-computable misfit | 0 / 10,164 | 0 | the forward calculation had no problems |
| Change of the H/V with refined integration | 1.7 % | ≤ 3 % | the diffuse-field integral has converged |
| Change of Vs,eq with other weights | 0.0 % | ≤ 5 % | the choice of weights does not decide the result |
Prediction from MASW¶

The 50 best dispersion-only models, which never saw the H/V curve, predict it within 5 % up to 3 Hz; there many points show as "outside the band" only because the models' band is very narrow (residuals of a few hundredths on the logarithm). Around the peak, however, the median stays lower than the measurement and the points really fall outside. That does not mean the data are incompatible: dispersion does not constrain enough the deep contrast that sets the peak amplitude. That is the information the joint analysis takes from the H/V curve.
Three searches¶

| Search | Objective function | MASW misfit | H/V misfit | Accepted |
|---|---|---|---|---|
| Dispersion only | 0.1415 | 0.1415 | 0.3995 | 1,022 |
| H/V curve only | 0.1856 | 0.2347 | 0.1856 | 305 |
| Joint | 1.0029 | 0.1450 | 0.1820 | 2,101 |
The row to read is the last: the joint search has both misfits close to the minima of the separate searches (0.1450 against 0.1415, 0.1820 against 0.1856), and its objective function is about 1, that is 0.5 + 0.5 with the misfits normalised. A value well above 1 would mean the two measurements ask for different profiles. The plot shows the three searches settling before the hundredth iteration; the last point is the local refinement.
Parameters¶

The column to look at is the sensitivity: how much the data change, in units of their uncertainty, when the parameter changes. For the half-space Vs the dispersion has 0.22, the H/V curve 2.68: it is the H/V curve that fixes it. Consistently, in the dispersion-only models that Vs ranges from 487 to 796 m/s (CV 0.15). Thicknesses 4 and 5 have a large local uncertainty (176 % and 138 %): taken one by one they are poorly constrained, but their sum is (see the correlations).
Correlations and rank¶

The nine singular values go from 34.9 to 0.46: full rank and condition number 76. The most correlated pairs are Vs 4 and thickness 3 (r = 0.93) and thickness 4 and thickness 5 (r = −0.86): in the first a faster layer compensates a deeper interface above it, in the second the interface between the two layers moves while the depth of the half-space stays the same. These are typical trade-offs: if you know something about those depths (a borehole), lock them in the layer table.
Robustness¶

- ν ± 0.05 and surface density ± 10 % do not move f0 (it stays at 4.40 Hz): here those assumptions do not matter.
- Interface depths ± 10 % move f0 by −9.7 % and +10.7 %: rightly so, because the resonance depends on the depth of the contrast (f0 ≈ Vs/4H). It is also why the H/V curve constrains the depths.
- Weights 0.25/0.75 and 0.75/0.25: the set of explored models picks the same profile (Vs,eq 290.3 m/s, largest Vs difference 0.3 %).
- Stability of the forward calculation: recomputed with tolerance 10⁻⁶ and a wider integration interval, the curve changes by at most 1.7 %.
7. After the analysis: category and report¶
The joint solutions are now those of the Inversion tab (solution 1 of 200, misfit 1.0029 of the joint function) and the Soil category uses them as usual: Vs,eq = 290.30 m/s, H = 30 m, category C.
The report has the Joint MASW + H/V analysis section: method, data and settings, the outcome of the three searches, the figures, the verification indicators, the parameters and the perturbed assumptions.

Try changing one choice
Run it again with an H/V weight of 0.8, with 5 % damping or without the curve band, and compare the Three searches and Summary tabs: it is the quickest way to see how much the result depends on that choice. Each run uses credits.
The meaning of the quantities and thresholds is in Theory of the H/V analysis; how to use the tab in Joint MASW + H/V analysis.
Found an error on this page? Let us know or open a Pull Request.