So I'm trying to make a function to compute a bunch of descriptive statistics at once. What I've got so far:
DescriptiveStats[m_] := {Mean= Mean[m], Variance= Variance[m],
Median= Median[m], Max= Max[m], Min= Min[m], Skew= Skewness[m],
Kurtosis= Kurtosis[m]}
(can't seem to get a code block working sorry...)
In each of these, I'm using a text-cell for the bit that says (for example) Mean=
However, I end up getting the following display (using some randomly generated data):
{9.86873 TextCell["Mean="], 1.86686 TextCell["Variance="],
9.83039 TextCell["Median="], 14.3527 TextCell["Max="],
6.388 TextCell["Min="], 0.150053 TextCell["Skew="],
2.87745 TextCell["Kurtosis="]}
Any ideas as to why I'm getting this weird display and how I can fix it?


- As you receive help, try to give it too, by answering questions in your area of expertise.
- Take the tour and check the faqs!
- When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Aug 10 '16 at 06:55