Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rarity calculation question #11

Open
casper-hansen opened this issue Mar 17, 2022 · 1 comment
Open

Rarity calculation question #11

casper-hansen opened this issue Mar 17, 2022 · 1 comment

Comments

@casper-hansen
Copy link

casper-hansen commented Mar 17, 2022

Hi @fukuball, love the project. Got a question about the calculations!

When you say the following:

Account for missing trait_types of an NFT.
Account for the trait_count of an NFT.
rarity_score = 1/(24/10000) = 416.67
Calculate the Rarity Score for each token (SUM of all rare trait attributes / missing traits / trait counts).

a) What exactly do you mean by accounting for it? Does it mean that you count how many traits are missing per NFT?
b) Can you provide me a full example of the final rarity score calculation or let me know if my explanation below is correct?

For every trait, we calculate the rarity score ( 1/(trait_type_count/collection_size) ), then we divide that by the number of missing traits (let's say 1 in this instance), and then, at last, we divide by the number of trait categories available in the collection (for example, BAYC has 7 total).

So in total, that would be (BAYC example with the Eyes trait "Blue Beams"):

rarity_score = (1/(trait_type_count/collection_size)) / num_missing_traits / num_traits_in_collection. 
rarity_score = (1/(49/10000)) / 1 / 7. 

Edit: Or is it the number of traits in the NFT instead of the number of missing traits?

rarity_score = (1/(trait_type_count/collection_size)) / num_traits_in_token / num_traits_in_collection. 
rarity_score = (1/(49/10000)) / 6 / 7. 

c) How does your trait normalization work? I see you are defining some mean values, but I am having a hard time deciphering how exactly they are used.

d) Is your rarity calculations equal to the ones on rarity.tools v2 without additional weighting?

@casper-hansen
Copy link
Author

@fukuball hey man, have time for the questions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant