Question 1205238
<font color=black size=3>
Answer: <font color=red size=4>386</font>



Explanation


There are 10 letters in the word STATISTICS.
We wish to create 4 letter "words" from this pool of letters.


If we could tell the repeated letters apart with color-coding (eg: S<font color=red>T</font>A<font color=blue>T</font> vs S<font color=blue>T</font>A<font color=red>T</font>) or using subscripts (eg: ST<sub>1</sub>AT<sub>2</sub> vs ST<sub>2</sub>AT<sub>1</sub>), then the answer would be simply {{{(n!)/((n-r)!) = (10!)/((10-4)!) = (10!)/(6!) = (10*9*8*7*6!)/(6!) = 10*9*8*7 = 5040}}} according to the nPr permutation formula.
The exclamation mark refers to factorials.


However, we don't have the luxury of color-coding nor subscripts. 
We cannot tell the repeated letters apart. 


We'll have to break things up into disjoint cases.
Case (i): 3 letters are the same, 1 is different (eg: SSST).
Case (ii): 2 letters are the same, 2 are different (eg: SSTA).
Case (iii): 2 sets of twin letters (eg: SSTT).
Case (iv): all 4 letters are different (eg: STAC).


Only one of those cases can happen which is why they're considered disjoint. 
There is no overlap between any two cases.


-------------------------------------------------------------


Case (i)


Let's make a frequency chart
<table border=1 cellpadding=5><thead><tr><th>Letter</th><th>Frequency</th></tr></thead><tbody><tr><td>S</td><td>3</td></tr><tr><td>T</td><td>3</td></tr><tr><td>A</td><td>1</td></tr><tr><td>I</td><td>2</td></tr><tr><td>C</td><td>1</td></tr><tr><td>Total</td><td>10</td></tr></tbody></table>
The only letters that show up 3 times are S and T.
If you select 3 "S" letters, then the other choices are T, A, I, or C.


Let letter M represent a single letter from the set {T, A, I, C}


Consider the permutations of SSSM.
There are 4 ways to rearrange the letters of SSSM because we have 4 places to put the M.
Once the dust settles, we need to replace M with T, A, I, or C. There are 4 choices to pick here.
So we have 4*4 = 16 permutations where three "S" letters are chosen.


Through similar logic, there are also 16 permutations of the form TTTN, where N is a placeholder for a single letter of the set {S, A, I, C}.


There are 16+16 = 32 ways to do case (i).
Let x = 32 since we'll use it later.


-------------------------------------------------------------


Case (ii)


Refer to the frequency chart made in case (i).
Here are the letters that show up at least twice: S, T, and I


There are 3 ways to pick the twin letters.
Use the nCr combination formula to find there are 4C2 = 6 ways to pick the two distinct letters from a pool of four.
I'll leave the scratch work steps for the student to do.



Let's say you picked S as the twin letters and T,A as the other two distinct letters.
So we're trying to permutate SSTA.
There are (4!)/(2!) = 12 ways to rearrange the letters of SSTA. I divided by 2! to correct for double-counting.


Recap
3 ways to pick the twin letters
6 ways to pick the two distinct letters
12 ways to permute those four letters chosen


Overall there are 3*6*12 = 216 ways to carry out case (ii).
Let y = 216 so we can use it later.



-------------------------------------------------------------


Case (iii)


Refer to the frequency chart made in case (i).
Once again, the letters that show up at least twice: S, T, and I


There are 3 items listed. There are 3 ways to pick two of those letters (i.e. 3 ways to leave a certain letter out).


Once you pick two unique letters, let's say S and T, there are (4!)/(2!*2!) = 6 ways to arrange the four items.
Those 6 ways are:<ol><li>SSTT</li><li>STST</li><li>STTS</li><li>TSST</li><li>TSTS</li><li>TTSS</li></ol>Listing these is optional. 
But it helps confirm things.
The combinatorics calculator link I mention below is very handy to help list out all possible combos. Specifically refer to the "list them" section.
I divided by 2!*2! to correct for erroneous overcounting. 


There are 6 ways to permute SSTT and 3 ways to pick the two unique letters.
We have 6*3 = 18 ways to do case (iii).
Let z = 18 so we can use it later.


-------------------------------------------------------------


Case (iv)


The five unique letters are: S, T, A, I, C


Use the nPr formula to find there are 5P4 = 120 different permutations where we select 4 items from a pool of 5 (order matters). 
I'll leave the scratch work steps for the student to do.
Let w = 120 so we can use it later.


In case (iv) we do not have to worry about repeat elements since we are selecting one item each from {S, T, A, I, C}


-------------------------------------------------------------


We found that
x = 32
y = 216
z = 18
w = 120
which represent the number of ways to do case (i) through case (iv).


Since each case is disjoint, i.e. no overlap, we add up those sub-results to get the grand total.


x+y+z+w = 32+216+18+120 = <font color=red size=4>386 is the final answer</font>


-------------------------------------------------------------


How to verify this? You could do so by hand. 
That might take a while and there's a possibility of error. 
Software is the much better choice. 


Luckily there's a combinatorics calculator that specializes in this sort of thing.
<a href="https://www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html">https://www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html</a>
The inputs are marked in <font color=blue>blue</font>
Names: <font color=blue>short</font>
Number of types = n = <font color=blue>10</font>
Number chosen = r = <font color=blue>4</font>
Order important? <font color=blue>Yes</font>
Repetition allowed? <font color=blue>No</font>
In the "List Them" section, type <font color=blue>S,T,A,T,I,S,T,I,C,S</font>
The commas are very important. Do not delete duplicate input letters.
Then click the "list" button underneath that box. It mentions there are 5040 entries. But the implication is that the 5040 is only if we could tell the repeats apart.
After removing the duplicate outputs, there are <font color=red size=4>386</font> unique outputs. Each item is listed out so you can check it yourself.


More practice with a similar question
<a href="https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1192625.html">https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1192625.html</a>
</font>