It just basic probability theory, combinations & permutations.
The chance of a particular permutation is 0.25^7, there are 4^7 = 16384 possible permutations.
Then just count it up.
Number of ways for all 7 to have tech A = 1, and same for them all to have techs B, C, D. So number of ways for all 7 to produce just one tech is 4/16384
Number of ways for only techs A & B to be covered is a bit trickier. There's 1 A & 6 B's (7 ways), 2 A's & 5 B's (7C2 = 21), 3 & 4 (7C3 = 35), ... 6 & 1 (7C6 = 7) Add that up, and there's 126 ways to get a particular 2 techs. There's
6 combinations of 2 techs, so that's a 756/16384 chance.
Number of ways for 3 techs is going to be just like that for 2, except more of a pain to count. So I'm going to be tricky and use what we worked out already. The number of ways to NOT get tech A is 3^7 = 2187. But of those ways, 3 of them had just one tech, and 6 x 126 = 756 had just two techs. That leaves 1428 ways to have all of techs B, C, D represented. Same deal for leaving out the other 3 techs, so there's 4 x 1428 = 5712 ways to have 3 techs total.
That's 6472 ways covered, which means the other 9912 ways will give you all 4 techs.
So, for 7 tribes drawing from 4 techs, the chances are:
1 tech: 4/16384 = 0.024 %
2 techs: 756/16384 = 4.61 %
3 techs: 5712/16384 = 34.86 %
4 techs: 9912/16384 = 60.5 %
Throw a die 7 times. What's the probability that only two of the six numerals on the die appear in the set of 7 throws?
Yep, same working. There's 126 different ways to get a particular two numbers. There's 15 combinations of 2 numbers to get. There's 6^7 = 279936 different ways to roll 7 dice. So your chance is 126 x 15/279936 = 0.675 %