ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
AT
applied-measurement · 25 min read

A Three-Way Tie Still Occupies Three Rank Positions

By Austin Little

By Austin Little

Three identical weighted sample tags beside one heavier tag. (generated editorial illustration; not documentary evidence)
Three identical weighted sample tags beside one heavier tag. (generated editorial illustration; not documentary evidence)

Four inspections are timed. The first three take the same recorded duration, and the fourth takes longer. If the task is to rank them from shortest to longest, there is a group of three at the front. Giving all three rank two is a legitimate convention: it is the average of their occupied positions, one through three. Giving all three rank one is another. In both conventions the fourth item remains rank four. Three equal measurements do not collapse three records into one.

A dense ranking answers a different question. If the intention is to number distinct duration groups instead of referring to positions in the full sequence, the three short inspections form group one and the long one forms group two. A unique ordering could also assign distinct positions to the tied records, but that needs a secondary rule. Neither the original row order nor a random draw tells which tied inspection was really shorter. The labels tell you how a ranking was assigned, not what the timer secretly measured.

The choice matters even in a small dataset. An operations report might want a list of tied leaders. A statistical comparison might need established sample ranks and an appropriate treatment of ties. A schedule may need a single deterministic queue even if durations are equal. These uses are compatible as long as they do not borrow each other's meanings without explanation.

Keep the measurements and identify the order

In the fictional example, let items A, B, and C each have a recorded duration of twelve minutes, while item D takes eighteen. These durations are introduced only to make the equality and direction concrete. The article's chart shows the resulting average ranks, not the times. Other original durations with the same order and ties would yield the same ranks. Always preserve the original duration column if later readers might need to know the difference between twelve and eighteen.

The rank direction here is ascending: a shorter duration gets an earlier position. Some report designs make rank one denote the highest value instead, depending on their question. A reader should not have to infer direction from which item was listed first in the input. State whether the best or earliest rank denotes the shortest time, the longest time, or another criterion. A tie convention cannot repair an unstated choice of direction.

It helps to think of positions as slots in a sorted list of occurrences. The four recorded items occupy positions one, two, three, and four, although no observed duration distinguishes which of A, B, and C ought to receive a particular early slot. The longer item is fourth in that sense: all three other observations precede it. A separate group numbering scheme can number the distinct values without referring to those occupied positions. The apparent conflict between fourth and second dissolves once the unit is named.

An exact equality on the recorded scale is not always physical equality. Durations may have been rounded to minutes, truncated by a reporting system, or measured with different levels of precision. A tie in the given data says what the values available for ranking establish. It does not establish that all three inspections lasted exactly the same number of milliseconds. If the task requires a more precise comparison, use verified original times where available or leave the tie intact rather than inventing distinctions.

Read the chart as assigned rank positions

The illustration uses average assigned ranks, often called midranks. For the first block, one plus two plus three is six, which averages to two. Each tied item receives that same rank. The fourth item is not tied with another record, so its position needs no averaging.

Average assigned ranks for equal first three values

Inspectionrank positions
Item A2
Item B2
Item C2
Item D4

Illustrative only. Invented values, not taken from a source dataset or an official target. Use four inspection durations with first three equal and fourth larger; compare average ranks 2,2,2,4 to minimum ranks 1,1,1,4, distinguish dense ranks and random row-order tie breakers, and explain what rankings can lose about magnitude.

The bars identify assigned ranks, not individual measured positions recovered beyond the tie. No evidence says that A truly belongs in position two. The same is true of B and C. The block receives the average of its positions as a mathematical convention. The sum of all ranks is still ten, the same as the sum of one through four, because replacing the three early positions by their average preserves that block's total.

The convention can create fractional ranks. For example, if only the first two records were tied, their positions would average to one and a half. A display that automatically rounds such a rank for reasons of visual simplicity can create a new ambiguity or apparent ordering. Keep the actual assigned value and explain it when the report uses a convention readers may not know. The number is a summary of positions, not a measure of part of an inspection.

The R documentation for sample ranks describes the average convention and other supported ways of handling ties and missing data. It does not provide the example observations. It is useful because it names the exact software behavior rather than assuming the word rank implies one universal definition. When reproducing a result, record the chosen option explicitly, even if it happens to be the current default.

A separate positional measure can describe the tied range directly: items A, B, and C occupy positions one through three in some order not resolved by the measurements. That language is often more intuitive than giving each reader only a number. A chart can show assigned rank while a detail view explains the full range. Do not reinterpret rank two as a claim that the first position is unoccupied. The first position is included in the tied block's range.

Compare average, minimum, and dense assignments

Under minimum ranks the block receives the smallest occupied position. The first three items thus receive one, one, and one, and D still receives four. Some readers recognize this from competition results where several entries share first place and the next entry is listed fourth. The missing displayed rank numbers do not mean that records disappeared. They are positions represented by the group of tied results.

A maximum-rank convention would give each of the first three rank three, identifying the last occupied position of the group. D remains fourth. This convention is useful when the quantity of interest is the last position a tied item could occupy under the stated order. It would be misleading to say A was actually third based on the timing observation. The rank number has the meaning supplied by its method, not the precision of a separate stopwatch.

Under a dense convention, assign consecutive numbers to distinct values. The short durations become one, one, and one; the long duration becomes two. There is no gap in displayed group numbers. Dense group rank does not mean only one inspection came before D. It means one distinct duration group preceded it. This distinction is particularly useful in databases that expose different ranking functions with names users might incorrectly treat as interchangeable.

The R base documentation lists specific tie choices for its sample ranking function; dense numbering is not one of the listed tie options for that function. Someone using another tool or a separate transformation should document how dense groups were formed instead of assuming a name transfers between implementations. Two reports can both be internally correct and disagree on D's rank if one uses dense groups and the other uses occupied record positions.

A useful check gives a reader just the raw example and asks them to calculate each supported convention. Their results should match two, two, two, four for average and one, one, one, four for minimum. Dense numbering should produce one, one, one, two. If the question is which inspection ranks second, the answer depends on the convention: there may be a tied assigned rank two, no displayed second place, or a second distinct duration group. Explain which question is meant before answering.

Do not confuse deterministic or random order with measured advantage

A system sometimes needs unique positions even when some values are tied. A processing queue might need to know which inspection record to display first. In that case a declared secondary key, such as a stable identifier, can make the order reproducible. It should not be reported as a measured difference in duration. The label can show both the tied duration status and the order chosen for presentation.

An input-order convention assigns positions according to how items appear in the source vector or table. With A, B, and C in that order, one variant could assign them one, two, and three. If the source is sorted differently, the positions can change even when the durations do not. Meeting a reproducibility goal then requires retaining the ordering rule and its inputs, not just storing the rank values.

A reverse input-order convention is another deterministic policy with the same limitation. It can be appropriate for a stated operational rule, but neither policy explains the underlying timing. A database query without guaranteed order is a poor basis for a secondary key. If a system uses input order, define where that order comes from. A line position created after filtering or concatenating files may not represent the same priority you intended.

A random tie-break assigns distinct positions among equal values through a randomized procedure. It can be useful when the task needs an allocation and the rules deliberately give tied records no measured preference. Document the randomization and preserve the draw or its reproducibility information when required. Do not call arbitrary input order random: it can reflect hidden sorting, insertion history, or another process that treats records differently. Likewise, a seeded random result is reproducible under specified conditions but still not evidence of faster inspections.

A random display order should not silently become part of a scientific analysis. Turning equal durations into unequal ranks changes how record pairs compare. That can change the outcome of an association calculation without adding duration information. If an approach uses random tie-breaking as part of an analysis, define why and how its uncertainty is handled. In the example, the original tie is a real feature of the recorded data and should remain available.

Consider two equally timed inspections whose labels happen to sort alphabetically. A user may accept alphabetical order as a transparent display choice. If the report instead says one item came in ahead of the other, it creates an unsupported performance distinction. A tie policy can produce a queue position without claiming a measured rank difference. Good labels protect that practical separation.

What ranks preserve and what they discard

Ranks preserve order and, for tie-preserving methods, information about which values are equal on the chosen scale. They do not preserve the differences in magnitude between values. Twelve minutes for the first three and eighteen for the fourth yield the same ascending average ranks as twelve for the first three and one hundred for the fourth. The difference in measured time has changed dramatically. The ranking is identical because the ordering relationship has not changed.

This is why a bar chart of ranks should not be read as a timing chart. A difference of two assigned rank positions does not mean that one inspection took two minutes longer. Nor does it establish any fixed ratio between times. Present measured durations or useful summaries such as the difference in minutes when magnitude is central to the decision. The relative positions can be an additional perspective rather than a replacement for the evidence.

Ranks also discard information about spacing between distinct groups. Suppose three records are tied at a small duration and a fourth is slightly longer. Another dataset can have the same arrangement with a very large gap before the fourth. Rank comparisons can intentionally ignore those magnitudes, which is valuable for some questions and not others. If an operational threshold depends on elapsed time, retain the time values and their units.

A monotone increasing transformation of distinct comparable measurements that also preserves equality can leave the ranks unchanged. Converting minutes to seconds is a simple example. Rounding during the conversion can change equality, so the condition matters. A monotone transformation can also make distances between observations less intuitive. Rank invariance under the stated transformation is an analytic property; it does not make the original durations unnecessary.

The ranks depend on which records enter the comparison. Adding a faster inspection can change every existing item's assigned rank while none of their durations change. Removing two records from the tied block can change the fourth item's positional rank. A dashboard should distinguish rank movement caused by changes in the comparison group from improvement in the underlying measurement. When possible, show the date, scope, and eligible count used to compute ranks.

A comparison across teams can be especially misleading if the groups have different sizes and duration distributions. Rank four in a set of four is different from rank four in a set of forty, and neither gives the size of the time gap. If comparing relative standing across contexts, state how the ranks were transformed or standardized and what the thresholds mean. Never use this four-item fixture to imply that a fixed rank carries one general interpretation.

Decide whether values really are tied under the model

A timer can capture more decimal places than a paper form reports. If three results round to twelve minutes for display, it may be inappropriate to rank by those rounded values if validated original measurements are available and the decision needs finer distinctions. On the other hand, a system might intentionally rank only at the precision its protocol deems reliable. Decide before inspecting an enticing separation between two near-equal values. The tie rule follows the equality rule, not the other way around.

A chosen tolerance can create complications. The fact that A is close to B and B is close to C does not logically imply that A is close enough to C under a fixed pairwise tolerance. Casual grouping by whichever items happen to be neighboring can therefore depend on the implementation. If a study treats measurements as tied within a declared resolution, define a reproducible grouping approach and preserve original values. A vague promise to ignore tiny differences is not a sufficient method.

Different timing definitions might also create apparent ties or differences. One staff member could time travel plus inspection while another records only time at the site. Similarly, one log might capture hours and minutes but another enters decimal hours. Validate measurement definitions and units before worrying about equal ranks. A flawless sorting routine can rank incomparable quantities with impressive precision.

Missing values are not ties among known durations. An incomplete record cannot be treated as an exceptionally long or short time unless the rule explicitly uses a separate category and the result is labeled accordingly. The R documentation provides several options for positioning, removing, or retaining missing values in its output. Choose among them with the actual task in mind. In many scientific comparisons it is clearer to mark unavailable ranks separately and report the eligible count.

If multiple apparent missing values receive distinct positions under a software option, do not describe this as knowledge about their relative durations. It is an output convention. Decide whether those entries count toward the positional denominator or whether the comparison only includes known times. Test the pipeline with a missing case so it does not accidentally use a default that changes which real inspection is called fourth.

Robust equality also depends on data representation. A decimal produced by a computation may not be exactly equal in storage to a conceptually identical rounded observation. Store suitably normalized measurements when the protocol calls for it, and verify the equality behavior of the actual ranking method. Preserve the raw or source representation as needed instead of modifying every measurement to match a desired leaderboard.

Use paired association methods on pairs, not on two sorted lists

The R documentation for tests of association between paired samples describes Pearson, Kendall, and Spearman approaches and details relevant inference options. A rank association question might compare each inspection's duration with a separate recorded feature of the same inspection. The pairing must survive the conversion to ranks. Sorting each variable independently and comparing the resulting sorted vectors would destroy the actual links and often create an artificial pattern.

Spearman association is commonly expressed as correlation of sample ranks. If several values tie, their treatment is part of how those ranks are formed. Kendall's method focuses on order relationships between pairs and has its own treatment of ties under the chosen implementation. They are not identical descriptions of the four inspection times. Do not treat the general ranking example as a license to substitute dense ranks or random unique ranks into a procedure that expects a particular convention.

A useful mental check is to add a second column without changing the duration observations. Suppose A, B, and C have different scores on a checklist while their durations remain tied. A random order within the duration group can fortuitously align with those checklist scores or oppose them. Neither alignment is based on more informative timing data. The original tie is important precisely because it says the duration variable did not distinguish those records. A method should not silently replace that property with an arbitrary order.

Inference can also differ when ties are present. The documented options and defaults depend on the method and conditions, including when exact calculations are available. Consult the actual software output and its documentation before describing a reported p-value as exact. A repeated variable with limited resolution can yield many ties. That may be a feature of the instrument, not an inconvenience that justifies breaking ties to obtain a preferred test mode.

The four timed inspections in this article do not themselves contain paired outcomes, so no meaningful association test can be computed from the example alone. They illustrate a rank-processing choice, not a claim about a relationship between duration and quality. A real test also needs appropriate pairing, design, and applicability of its assumptions. State the analysis question before deciding which statistic to use.

If all values in one variable are identical, a rank transformation cannot create informative variation in that variable. Artificially breaking every tie might yield a number that appears usable, but it would be a function of the tie-break order rather than measured differences. The appropriate response is to state the lack of variation under the available measurements and choose the next study question accordingly, not to add fake resolution.

Build a worked comparison around the decision

If the purpose is a leaderboard, show the three short inspections as tied and say how the next displayed rank was assigned. A minimum rank convention is easy to communicate when readers understand shared first place. Record the actual time so small differences near the resolution of the system are not mistaken for documented gaps. If every record must have a line position in the display, separate that order from the official rank.

If the purpose is scheduling, timing magnitude may matter more than relative rank. Six minutes added to D could affect staffing even though it leaves the ranks unchanged. A shared ranking display can still help scan the records, but the schedule should not infer duration requirements from ordinal slots. The tie rule defines order, not resource use.

If the purpose is a comparison of groups, the relevant group denominators need to be visible. An average rank across observations has a different meaning from average recorded duration. It may depend on the full pool used for ranking. A reporting system can store the eligibility filters and comparison groups so that changes across reporting periods can be interpreted. This prevents a rank change caused by new records from being treated as a time improvement.

If the purpose is a fair allocation among equal records, an explicitly planned random tie-break might solve that policy problem. Specify how ties are identified and what priority, if any, comes before the draw. Report the draw result as an allocation or queue position, not as evidence of underlying performance. A policy can legitimately make a decision where the measurements cannot rank people uniquely. Honesty comes from naming which mechanism made it.

A good specification can support all these outputs without treating them as substitutes. One table could show duration, tie group, assigned statistical rank, and display sort key as separate columns. Users can then choose the appropriate view. Adding fields does not mean they all need to be printed everywhere. It means the pipeline does not quietly overwrite one quantity with another. This matters whenever the same data feed serves both operational and analytical consumers.

Check scope and row identity before you certify the result

A ranking computed after a filter can be correct for the filtered group and incorrect for another group's report. Label it with the date range, comparison subset, and eligible number of records. If a dashboard lets readers filter the original data, state whether ranks are recomputed or preserved from a larger comparison. Both behaviors can be useful; confusing them changes the interpretation of every rank shown.

Keep the rank associated with the original item identifier when sorting output for presentation. Sorting durations and then pasting a rank vector beside the original rows in a different order can silently misassign ranks. This is especially hard to detect when several adjacent values are equal, because swapping two tied records may leave the displayed ranks the same. Test with at least one unequal measurement beyond a tie block so a bad alignment is visible.

Verify which direction was used for the comparison and how eligibility was handled. Changing from ascending to descending reverses the order of occupied positions, though it does not change which records tie. Dropping a missing record after rather than before assignment can change the set of occupied positions, depending on the specified policy. These details may look like minor software settings. They define the quantity being reported.

Test several shapes of tie rather than just this one

A strong fixture starts with the four given records, then checks cases surrounding them. Include a dataset with no ties, another with every eligible item tied, and one with two distinct tie blocks. Check the minimum, average, and dense conventions separately. With no ties and the same eligibility rules, positional and dense counts coincide. With all four values tied, average assigns 2.5 throughout, minimum assigns one, and dense also assigns one. Identical outputs for different methods in such a case do not make the methods identical.

A later tie block exposes another useful difference. Suppose the first item is shorter than a tied group of two, with a final item longer than all of them. The tied block occupies positions two and three. Minimum assigns two, average assigns 2.5, and maximum assigns three. The last item remains fourth under those positional conventions but becomes the third distinct-value group under dense numbering. This additional shape demonstrates that positional ranks depend on every earlier record, not just on how many distinct groups came before.

Adding a single record to an existing block can alter a positional rank even when no original value changes. If another twelve-minute inspection is added to the original example, that tie block now spans four positions and D moves to position five. Its dense group number can remain two. This is a healthy way to test each convention's behavior under changing eligibility. The change in displayed rank is real relative to the updated comparison set, but it is not a change in the underlying duration.

Inspect what happens when data arrive in a different order. Average and minimum assignments should remain attached to equal measurements under the same defined population. An input-order tie-break can legitimately produce different unique ranks inside the tied block if its specified order changes. A test must not demand invariance in a rule that intentionally uses input order. Instead, verify that the chosen order is the one the specification names and that downstream prose does not imply a time difference.

A random tie-break should be tested in terms of properties as well as any reproducibility requirement. It should allocate the positions belonging to the block without taking positions from other values. When a result needs to be audited, retain provenance appropriate to the framework used. A test that fails just because a fresh allowed draw gives another order might misunderstand the method. The invariant is that all differences created inside the block come from the tie-break, not the timer.

Make outputs understandable without a statistics manual

A small annotation can make a chart self-contained. “Ascending average ranks; three tied times occupy positions one through three” explains why the first three bars are equal at two. The chart should also identify which observations are included and say that the illustrated durations and ranks are fictional. A chart copied out of the article should not look like a finding from a real inspection program or the R documentation.

For readers already familiar with competition ranks, a short comparison can show why fourth still follows the three-way tie. All three tied records precede the longer inspection even though none has an individually justified position within the earlier slots. If the report uses dense values instead, call them ranked duration groups, not individual finish positions. The word group does most of the explanatory work.

For a process owner, the most useful table may put actual times and tied ranks side by side. If new data improve timing precision, test whether the previous tie disappears under the revised protocol and describe what changed. A measurement revision and a ranking configuration change should be recorded separately. Otherwise readers might infer shorter inspections from ranks that simply resulted from displaying another decimal place or applying a different convention.

An accessible report should not rely on bar length alone to show a tie. Provide textual values and a note about the affected group. A visual ordering of A before B before C can still be useful for reading the table, but make clear when it is an ordering of names rather than performance. Users may draw conclusions from navigation order even when chart values are identical. Distinguishing a display sort from a substantive rank reduces that risk.

When the data feed is used for both a dashboard and a statistical review, preserve the raw measurements in the export and document which rank rule each view uses. The same exact numbers can be needed years later to recover an analysis or to evaluate a discrepancy under another convention. Saving only a sorted graphic prevents that work. Preserving the comparison scope and the equality rule is much less costly than reconstructing them from memory.

Keep rankings stable across revisions without hiding new evidence

A publication may need to preserve a prior ranking while also producing one from corrected data. If a timestamp or duration is corrected, the official earlier report and the recalculated result should be identifiable. Updating a rank in place without a change note can cause confusion when someone compares it with a saved copy. State whether the change was a new observation, a source correction, a different eligibility set, or merely a new tie convention.

Reconsider an example in which A, B, and C were recorded as twelve minutes to the nearest minute, but a later valid export contains finer precision. Those values might no longer tie at that resolution. An updated table can report that its order uses the finer verified data. It should not declare that the previous rank assignment was methodologically wrong if the earlier convention matched the information available then. Different evidence and rules justify different outputs when their scope is disclosed.

A change in display policy is meaningfully different. Suppose no measurements changed, but a new interface switches from minimum ranking to dense grouping. D goes from rank four to group two with no change in physical time or ordering. A release note that says “changed rank display to distinct-duration groups” prevents the interface from suggesting a performance improvement. This distinction becomes especially important when readers receive alerts based on a numeric rank field.

Avoid using ranks as unexplained inputs in another system

A downstream application may consume a rank and use it to select records. It needs to know whether selection means the first three occupied positions, all records meeting a rank-number criterion, or the first three distinct groups. A tie crossing a cutoff can make those sets different. One process might include everyone tied at a boundary, while another requires a separate allocation decision. The rank alone does not supply the policy. Record it before selecting a result.

If a report filters to the first two positions in the example, the measurements do not identify two unique members of the tied group. Selecting all three might be appropriate for a joint-leading display, while a queue that must take only two requires a documented additional rule. Do not let an implementation select whoever happened to appear early in a file without saying so. A transparent tie policy makes the outcome both easier to review and easier to explain.

For a numeric model that uses ranks as predictors, retain what the transformation discarded. A feature can encode relative position within a defined cohort while losing duration magnitude and distinctions between different cohort sizes. This may be appropriate for a stated analysis. It does not make the transformed column an exact stand-in for the original measure. Preserve the training or analysis rule so a recalculation with a different comparison pool is not mistaken for the same feature.

The most useful check is operational: ask which records would be shown or selected and why. If the system cannot explain the treatment of a tie at the boundary, its rank policy is incomplete even if each computed rank is correct. Add the missing comparison scope or allocation rule rather than changing the numerical ranks after the fact.

Try the questions a reviewer might ask

First ask which inspections were shortest on the recorded scale. A, B, and C are jointly the shortest. Ask which individual actually finished second. The recorded durations do not resolve that question. An average rank of two is assigned to the whole block. A minimum rank of one does not identify a single winner either. These separate answers demonstrate why a convention is needed and why it does not add information about actual time.

Next ask how much longer D took. Under the invented time values it took six minutes longer than any of the three tied inspections. The ranks alone could not provide that number. If only the ranks were retained, a reader could infer a longer duration but not its size. Explicitly recovering the times is therefore not optional when decisions depend on magnitude.

Finally ask what happens when the reporting question changes. If the question is how many distinct duration groups precede D, there is one, and its dense rank is two. If the question is how many observed inspections precede D in ascending positional order, there are three, and D occupies the fourth position. If instead the question is which individual in the first group gets the first display slot, a separately declared tie-break may answer it. These are three valid queries with different outputs.

The best defense against confusing those outputs is to keep the measurement and ranking metadata together. State the units and direction, retain the eligible records, specify the tie convention, and distinguish a record position from a group number and a display order. In the toy chart the equal items receive ranks two, two, and two and the longer item receives four. Those assignments respect the three occupied positions while declining to manufacture an order among equal measurements.

Frequently asked
What is A Three-Way Tie Still Occupies Three Rank Positions about?
By Austin Little
What should you know about keep the measurements and identify the order?
In the fictional example, let items A, B, and C each have a recorded duration of twelve minutes, while item D takes eighteen. These durations are introduced only to make the equality and direction concrete. The article's chart shows the resulting average ranks, not the times. Other original durations with the same…
What should you know about read the chart as assigned rank positions?
The illustration uses average assigned ranks, often called midranks. For the first block, one plus two plus three is six, which averages to two. Each tied item receives that same rank. The fourth item is not tied with another record, so its position needs no averaging.
What should you know about average assigned ranks for equal first three values?
Illustrative only. Invented values, not taken from a source dataset or an official target. Use four inspection durations with first three equal and fourth larger; compare average ranks 2,2,2,4 to minimum ranks 1,1,1,4, distinguish dense ranks and random row-order tie breakers, and explain what rankings can lose about…
What should you know about compare average, minimum, and dense assignments?
Under minimum ranks the block receives the smallest occupied position. The first three items thus receive one, one, and one, and D still receives four. Some readers recognize this from competition results where several entries share first place and the next entry is listed fourth. The missing displayed rank numbers…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room