How we Calculate Rarity
How we calculate the rarity of NFTs
(DeGod #9999) The Solana Metadata Standard:
What are Absent Traits?
Since some NFTs have layers (trait_type) that other NFTs do not, we need to account for this.
If 99% of a collection has a layer (trait_type), and 1% does not, the 1% that does not should receive a boost since it's immensely more rare to own the NFT that does not have the layer that 99% of the collection does.
So how do we account for absent traits? We add an additional trait (value) for every layer (trait_type) that's missing on every NFT. Then, that absent trait (value) is given a score depending on how rare it is to not have that trait. We do this by using the same formula as before.
Here's the best way to explain absent traits:
Let's use a one-of-one NFT for example that has one layer and no layers in common with the rest of the collection.
If every NFT in a collection of 10,000 has five layers (trait_types), except for the one-of-one, which only has one layer (trait_type), the score for the five absent layers (trait_types) on the one-of-one will be enormous. This is because there is only one NFT in the entire collection of 10,000 that does not have a trait (value) for the other five layer (trait_type).
However, the rest of the collection will also be given a score for an absent trait since they do not have the same layer (trait_type) as the one-of-one NFT. Since 9,999 / 10,000 NFTs have this absent trait (value) for that specific layer (trait_type), it's very common for NFTs in this collection to have this absent layer (trait_type).
When some NFTs have completely different layers (trait_types) & traits (values) than other NFTs in the same collection, comparing their rarities is somewhat like comparing apples to oranges.
By calculating the score for absent traits we can correctly calculate the rarity of NFTs that do not have much in common. We use the score for absent traits for both methods of our calculation
Rarity Score VS Absolute Statistical Rarity
There's somewhat of a debate ongoing currently in regards to the best way to calculate the rarity of NFTs. The two most common methods of calculating are absolute statistical rarity & rarity score. We decided that we'd calculate rarity both ways to make it easy for both sides of the debate to check their rarity in their preferred method.
Absolute Statistical Rarity
Absolute statistical rarity is based on the following formula:
occurence % = attribute occurence / total number of NFTs in collection
then:
absolute statistical rarity score = occurence % of trait 1 * occurence % of trait 2 * ...
We include absent traits in this calculation.
The NFT with the lowest score in this method is the rarest NFT in the collection.
Rarity Score
Rarity score can be calculated with the following formula:
trait rarity = number of trait occurence's / number of NFTs in the collection
then:
trait rarity score = 1 / trait rarity
We include absent traits in this calculation.
The NFT with the highest score in this method is the rarest NFT in the collection.
Trait Normalization
We currently do not use any trait normalization methods. Although there are some arguments for trait normalization, most platforms that use this method keep their formula private information and do not publicly state their method of normalizing traits or adjusting rankings.
We will never manipulate rarity rankings with a secret method.
This is not what we do here. If we ever do add trait normalization in the future, we will add toggle functionality in addition to publicly stating exactly the calculations we run to get the output you see on our rarity tool.
Custom Rankings
Some platforms enable creators to set custom rarities for their collection.
We don't, nor will we ever, make custom rarity rankings.
Think of it this way, if there was a baseball card that wasn't very rare and the company that created it lied about the amount they released. Would this be morally wrong? We think so.
Sometimes project owners mess up. Sometimes they accidentally have their "rarest" NFTs end up scoring pretty common.
It sucks when a collections intended rarity doesn't pan out, but we believe project owners should make sure their metadata is in the format they intend, before they tokenize it on the blockchain.
Last updated