Real-Statistics - Basics
Real-Statistics - Basics
Excel Environment
Real Statistics Environment
Probability Functions
Descriptive Statistics
Hypothesis Testing
Appendix
Table of Contents
Excel Environment
Excel spreadsheets
Charts
Lambda Functions
Goal Seek
Reformatting data
Indexed functions
Miscellaneous functions
Step chart
Lambda functions
Probability Functions
Descriptive Statistics
Measures of variability
Measures of shape
Ranking
Frequency tables
Histogram
Box plots
Dot Plots
ROC
Indices of Diversity
Hypothesis Testing
Statistical power
Familywise error
Appendix
Gamma function
Excel Capabilities
Built-in functions
Sorting and eliminating duplicates
Reformatting tools
Table lookup
Sampling
Colors
Interpolation
Bitwise calculations
Text strings
Real Statistics Using Excel - Examples Workbook Basics
Charles Zaiontz, 27 January 2022
Table of Contents
Excel Environment
Excel spreadsheets
Sample Excel worksheet (Figure 1)
Charts
Bar Chart (Example 1)
Line Chart (Example 2)
Line Chart (Example 3)
Scatter Chart (Example 4)
Step Chart (Example 5)
Lambda Functions
BYROW and BYCOL
REDUCE and SCAN
MAKEARRAY
MAP
Goal Seek
Square root example (Example 1)
Reformatting data
Sorting, removing duplicates, etc. (Example 1)
Sort and extract unique (Example 2)
MERGE, DELErr and SEQ (Example 3)
Sort using data analysis tool (Example 3)
Delete Row
More sorting and reformatting functions
Indexed functions
Indexed value and Indexed count functions
Miscellaneous functions
Examples of miscellaneous Real Statistics functions
Step chart
Real Statistics data analysis tool
Lambda functions
MAKESARRAY, REDUCES, BYCOLS
Probability Functions
Descriptive Statistics
Measures of variability
Variance, standard deviation, etc. (Examples 1,2, 5-9)
Column variance and standard deviation (Examples 3)
Combining two or more samples (Example 4)
Measures of shape
Skewness and kurtosis (Examples 1, 2)
Chi-square distribution (Figure 1)
Kurtosis and skewness (Figure 2)
Ranking
Various ranking and percentile functions (Examples 1-4, 6, 8, 10)
Real Statistics RANK_AVG vs. Excel RANK.AVG function (Figure 3)
RANKCOL function
Rank and Percentile data analysis tool (Example 5)
PERCENTRANK.INC vs. PERCENTRANK.EXC (Example 7)
PERCENTILE.INC vs. PERCENTILE.EXC (Example 9)
Harrell-Davis Quantile
Frequency tables
Mean and variance based on frequency tables (Example 1)
Frequency function (Example 1)
Calculations from a frequency table with intervals (Example 2)
Excel FREQUENCY function (Example 3)
Real Statistics FREQTABLE function (Example 4)
Descriptive statistics for data in a frequency table (Example 5)
Real Statistics Frequency Table data analysis tool (Example 6)
Histogram
Histogram data analysis tool (Example 1)
Real Statistics Histogram data analysis tool
Real Statistics Histogram data analysis tool (Example 2)
Box plots
Box Plot (Example 1)
Box Plot (Example 1 using .EXC)
Box Plot with negative data
Box plot with outliers
Dot Plots
Dot Plot (manual)
Dot Plot (Real Statistics)
Indices of Diversity
Shannon's Index (Example 1)
Brillouin's Index (Example 2)
Simpson's Index (Example 3)
Real Statistics data analysis tool
Hypothesis Testing
Statistical power
Power table (Figure 1)
Familywise error
Bonferroni and Dunn/Sidàk tests
Holm and Hochberg tests
Benjamini-Hochberg test
Benjamini-Yekutieli test
Real Statistics data analysis tool (Benjamini-Hochberg + Dunn/Sidàk)
Appendix
Gamma function
Gamma function with negative values and incomplete gamma function
Excel Capabilities
Built-in functions
Unique counting (Figure 7)
SUMIF and COUNTIF (Figure 8)
Table lookup functions (esp. MATCH)
Two-dimensional table lookup
Sorting and eliminating duplicates
Sort and remove duplicates in standard Excel (Examples 1, 2, 3, 4)
Reformatting tools
Reformatting (Example 1)
Remove missing data (Example 2)
Table lookup
Table Lookup (Example 1)
Table Lookup (Example 2)
Table Lookup (Example 3)
Table Lookup (Example 4)
XLOOKUP
Sampling
Sampling without replacement
Sampling with replacement
Colors
Color list
Color functions
Interpolation
Interpolation examples
Bitwise calculations
Bitwise calculations
Text strings
TEXT_JOIN and TEXT_REVERSE
Letter grade
Results of Marketing Campaign
(sales in millions of euros)
Brand A
Brand B
Brand C
Age Income
31 23500 Average Income by Age
32 24000
33 25000 45,000
40,000
Income ($000)
34 26700
35,000
35 27500
30,000
36 29200
25,000
37 33000 20,000
38 35100 31 32 33 34 35 36 37 38 39 40
39 37400 Age
40 39500
Average Income and Rent by Age
Amount ($000)
30,000
35 27500 6000
25,000 Income
36 29200 7500 20,000 Rent
37 33000 8000 15,000
38 35100 9000 10,000
39 37400 7000 5,000
0
40 39500 12000 31 32 33 34 35 36 37 38 39 40
Age
Age
31
Income
23500
Rent
6000
Income
32 24000 6500 45000
33 25000 7000 40000
34 26700 4500 35000
35 27500 6000 30000
Income
36 29200 7500 25000
37 33000 8000 20000
38 35100 9000 15000
39 37400 7000 10000
40 39500 12000 5000
0
1 2 3 4 5 6 7 8 9 10
45000
ge 40000
35000
30000
25000
Income Income
20000 Rent
Rent
15000
10000
5000
0 0
1 2 3 4 5 6 7 8 9 10
Income
Scatter Plot
Operating Performance by District
District Cost Revenue
E 50 74 180
SE
160 W
NE 78 95
140
NW 65 87
120
Revenue ($M)
SE 112 156 NE
100 NW
SW 32 54 E
80
W 101 142 SW
60
40
20
0
20 30 40 50 60 70 80 90 100 110 120
Cost ($M)
ct
SE
W
10
8
6
4
2
0
0 2 4 6 8 10 12
Year
Equipment Sales
Area Code Population Area Code 345 378 678 712 815
345 230000 Population 230000 340000 145000 235900 195000
378 340000
678 145000
712 235900
815 195000
Filter
48 35 3
#NAME? #NAME?
6
2
4
2
60 #NAME?
#NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME?
#NAME?
4 3.141593 3 -2
1 0 7 2.718282
#NAME?
Name Gender Age Income
Tom M 32 65000
Rose F 22 50000
Adam M 45 80000
Brenda F 57 66000
Jane F 61 85000
Tom M 18 24000
32 #NAME?
#NAME? #NAME?
#NAME? #NAME?
Goal Seek
### ###
### ###
### ###
###
### ###
### ###
### ###
Input range ###
#NAME?
#NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME?
Sort Rows without duplicates
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
=CountRowsUnique(A3:B14)
#NAME?
Sort Rows #NAME?
#NAME?
#NAME? Name Code #NAME?
George 0
Andy 1
Bill 0
Sal 1
Andy 0
Andy 1
#NAME? Sal 1 #NAME?
Sal 2
Count #NAME? Sal 0
Bill 1
#NAME? Gail 2
George 2
Extract Columns from Data Range
State Poverty Infant Mort White Crime Doctors Traf Deaths University Unemploy
Alabama 15.7 9.0 71.0 448 218.2 1.81 22.0 5.0
Alaska 8.4 6.9 70.6 661 228.5 1.63 27.3 6.7
Arizona 14.7 6.4 86.5 483 209.7 1.69 25.1 5.5
Arkansas 17.3 8.5 80.8 529 203.4 1.96 18.8 5.1
California 13.3 5.0 76.6 523 268.7 1.21 29.6 7.2
Colorado 11.4 5.7 89.7 348 259.7 1.14 35.6 4.9
Connecticut 9.3 6.2 84.3 256 376.4 0.86 35.6 5.7
Delaware 10.0 8.3 74.3 689 250.9 1.23 27.5 4.8
Florida 13.2 7.3 79.8 723 247.9 1.56 25.8 6.2
Georgia 14.7 8.1 65.4 493 217.4 1.46 27.5 6.2
Hawaii 9.1 5.6 29.7 273 317.0 1.33 29.1 3.9
Idaho 12.6 6.8 94.6 239 168.8 1.60 24.0 4.9
Illinois 12.2 7.3 79.1 533 280.2 1.16 29.9 6.5
Indiana 13.1 8.0 88.0 334 216.9 1.26 22.9 5.9
Iowa 11.5 5.1 94.2 295 189.3 1.42 24.3 4.1
Kansas 11.3 7.1 88.7 453 222.5 1.38 29.6 4.4
Kentucky 17.3 7.5 89.9 295 232.3 1.80 19.7 6.4
Louisiana 17.3 9.9 64.8 730 262.7 2.17 20.3 4.6
Maine 12.3 6.3 96.4 118 278.4 1.22 25.4 5.4
Income State Poverty Infant MorDoctors Traf DeathIncome
42,666 Alabama 15.7 9 218.1734 1.81 42,666
68,460 Alaska 8.4 6.9 228.4503 1.63 68,460
50,958 Arizona 14.7 6.4 209.6666 1.69 50,958
38,815 Arkansas 17.3 8.5 203.4229 1.96 38,815
61,021 California 13.3 5 268.6906 1.21 61,021
56,993 Colorado 11.4 5.7 259.6861 1.14 56,993
68,595 Connecticu 9.3 6.2 376.3753 0.86 68,595
57,989 Delaware 10 8.3 250.9418 1.23 57,989
47,778 Florida 13.2 7.3 247.8636 1.56 47,778
50,861 Georgia 14.7 8.1 217.4457 1.46 50,861
67,214 Hawaii 9.1 5.6 316.9829 1.33 67,214
47,576 Idaho 12.6 6.8 168.8339 1.6 47,576
56,235 Illinois 12.2 7.3 280.1539 1.16 56,235
47,966 Indiana 13.1 8 216.9397 1.26 47,966
48,980 Iowa 11.5 5.1 189.2832 1.42 48,980
50,177 Kansas 11.3 7.1 222.5477 1.38 50,177
41,538 Kentucky 17.3 7.5 232.3485 1.8 41,538
43,733 Louisiana 17.3 9.9 262.6615 2.17 43,733
46,581 Maine 12.3 6.3 278.3948 1.22 46,581
Select Columns =SelectCols(A3:D14,"2,3,1") =SelectCols(A3:D14,"3,2,1,4",1)
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
#NAME? ###
State City Code Amount ### ### ### ### ###
NY NYC A 100 ### ### ### ### ###
NY Albany A 50 ### ### ### ### ###
NY NYC B 60 ### ### ### ### ###
NY Albany C 50 ### ### ### ### ###
MA Boston A 80
MA Boston B 55 ### ### ### ### ###
MA Newton C 40 ### ### ### ### ###
MA Boston A 30 ### ### ### ### ###
### ### ### ### ###
### ### ### ### ###
#NAME?
#NAME?
#NAME?
Miscellaneous Real Statistics Functions
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
51 #NAME?
Real Statistics Step Chart
Revenue
6 14 25 20 15
10
5
0
0 1 2 3 4 5 6 7
Year
Step Chart
Area A
Area B
Area C
3 4 5 6 7
Year
Lambda
#NAME? #NAME?
#NAME? #NAME?
#NAME?
#NAME?
1 6
2 3
4 2
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME?
#NAME?
Probability calculation
n 12
p 0.166667
1-p 0.833333
(1-p)^n 0.112157
1-(1-p)^n 0.887843
Frequency/Distribution Functions
Frequency
### ### #NAME? 6
### ### #NAME? 4
### #NAME?
2
0
#NAME? #NAME? #NAME?
Bin
Histogram
MEDIAN 3 2.5 4
MODE.SNGL 5 5 #VALUE!
MODE.MULT 5 5 #VALUE!
5 2 #VALUE!
If you earn 5% interest in year 1, 8% in year 2 and 10% interest in year 3, the average interest is given by the geometric mean
1.334025
0.074709263
0.074709263
% in year 2 and 10% interest in year 3, the average interest is given by the geometric mean
Int1
Int2
Int3
= 1 + Int1
= 1 + Int2
= 1 + Int3
= 1 + Int1
= (1 + Int1) * (1 + Int2)
= (1 + Int1) * (1 + Int2) * (1 + Int3)
= (1.05)(1.05)(1.1)(1.1)
= 1.334025 ^ 0.25 -1
= GEOMEAN(1.05,1.05,1.1,1.1) - 1
Weighted Median
Weighted Mean
S W SW S W SW
1 0.20 0.20 1 10.0 10.0
2 0.05 0.10 2 2.5 5.0
4 0.15 0.60 4 7.5 30.0
6 0.25 1.50 6 12.5 75.0
8 0.35 2.80 8 17.5 140.0
1.00 5.20 50.0 5.2
Measures of Variability
5 5
2 2
-1 -1
3 3
4 4
5 5
0 0
2 2
n x̄ s2 x nx̄2 (n-1)s2 x2
Sample 1 23 12 100 276 3312 2200 5512
Sample 2 15 14 144 210 2940 2016 4956
Sample 3 20 15 256 300 4500 4864 9364
58 13.55172 161.0587 786 10752 9080 19832
2.8
6.6
PercentRank
EXC
0.66666
0.7
0.36875
Rank and Percentile Data analysis tool
Scores 54 67 34 54 94 55 32 45 87 64 39 60 Point
5
9
2
10
12
6
1
4
8
11
3
7
Data analysis tool PERCENTRANK.INC and PERCENTRANK.EXC PERCENTILE.INC
12 13 14 15 16 17 18
Descriptive Statistics data analysis tool
#NAME?
#NAME?
lower upper f midpt fx fx2
0 4 3 2 6 12
4 10 1 7 7 49
10 20 2 15 30 450
20 30 1 25 25 625
7 68 1136
Σfx n x̄
68 7 9.7143
Alternative Version
Frequency Table
Descriptive Statistics
Mean 5.5
Standard Error 0.0730297
Median #NAME?
Mode 5.7
Standard Deviation 0.2828427
Sample Variance 0.08
Kurtosis -1.31044
Skewness -0.568211
Range 0.8
Maximum 5.8
Minimum 5.0
Sum 82.5
Count 15
Geometric Mean 5.4930869
Harmonic Mean 5.4860552
AAD 0.24
MAD #NAME?
IQR #NAME?
Mean #NAME?
Median #NAME?
MAD #NAME?
Median #NAME?
MAD #NAME?
IQR #NAME?
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
#NA
Real Statistics data analysis tool Real Statistics data analysis tool
#NAME?
#NAME?
Frequency Table
Bin Frequency
20 6 Histogram
40 10 15
60 2
Frequency
10
80 3 Frequency
5
More 1
0
20 40 60 80 More
Bin
Using FREQTABLE with bin size 15 Using Histogram and Normal Curve data analysis tool
Frequency
5
#NAME? #NAME? #NAME? 15 5 5 4
#NAME? #NAME? #NAME? 30 8 13 3
#NAME? #NAME? #NAME? 45 5 18 2
60 0 18 1
0
75 3 21
15
90 1 22
Frequency
5
#NAME? #NAME? #NAME? 25 8 11 4
#NAME? #NAME? #NAME? 40 5 16 3
#NAME? #NAME? #NAME? 55 2 18 2
#NAME? #NAME? #NAME? 70 2 20 1
#NAME? #NAME? #NAME? 85 1 21 0
10 25
100 1 22
Sm
Frequency
-100 -50
Frequenc
-100
-50
urve data analysis tool
9 Bin size 15
8
7
item freq
6
0
Frequency
5
4 15 5
3 30 8
2 45 5
1 60 0
0
75 3
15 30 45 60 75 90
90 1
Bin
Histogram
9
8
7
6
Frequency
5
4
3
2
1
0
10 25 40 55 70 85 100
Bin
5
4
3
2
1
0
-100 -50 0 50 100 150
Bin
5
Frequenc
4
3
2
1
0
-100 -50 0 50 100 150
Bin
freq table reformatted Statistics Normal curve overlay
5
0.006727 4
0.009001 3
0.011967 2
0.015809 1
0
0.020751
-40 -20 0 20 40 60 80 100 120
0.027063
0.035071 Bin
0.045159
0.057777
0.073448
0.092776
Histogram
0.116441 9
0.14521 8
7
0.179933
6
0.221536
Frequency
5
0.271018 4
0.329437 3
0.397893 2
0.47751 1
0.569401 0
-100 -50 0 50 100 150
0.674643
0.794239 Bin
0.92907
1.079857
1.24711
1.431079
1.631711
1.848601
2.080959
2.327579
2.586819
2.856591
3.134372
3.417225
3.701836
3.984568
4.261533
4.528673
4.781857
5.016984
5.230092
5.41747
5.575761
5.702068
5.794035
5.849925
5.868675
5.849925
5.794035
5.702068
5.575761
5.41747
5.230092
5.016984
4.781857
4.528673
4.261533
3.984568
3.701836
3.417225
3.134372
2.856591
2.586819
2.327579
2.080959
1.848601
1.631711
1.431079
1.24711
1.079857
0.92907
0.794239
0.674643
0.569401
0.47751
0.397893
0.329437
0.271018
0.221536
0.179933
0.14521
0.116441
0.092776
0.073448
0.057777
0.045159
0.035071
0.027063
0.020751
0.015809
0.011967
0.009001
0.006727
0.004996
0.003686
0.002703
0.001969
Frequency Table freq table reformatted Statistics
x normal scaled
-56.50402 5.966E-06 0.001969
-54.7094 8.189E-06 0.002703
-52.91477 1.117E-05 0.003686
-51.12015 1.514E-05 0.004996
-49.32552 2.039E-05 0.006727
-47.53089 2.728E-05 0.009001
-45.73627 3.626E-05 0.011967
-43.94164 4.791E-05 0.015809
-42.14702 6.288E-05 0.020751
-40.35239 8.201E-05 0.027063
-38.55776 0.000106 0.035071
-36.76314 0.000137 0.045159
-34.96851 0.000175 0.057777
-33.17389 0.000223 0.073448
-31.37926 0.000281 0.092776
-29.58464 0.000353 0.116441
-27.79001 0.00044 0.14521
-25.99538 0.000545 0.179933
-24.20076 0.000671 0.221536
-22.40613 0.000821 0.271018
-20.61151 0.000998 0.329437
-18.81688 0.001206 0.397893
-17.02225 0.001447 0.47751
-15.22763 0.001725 0.569401
-13.433 0.002044 0.674643
-11.63838 0.002407 0.794239
-9.84375 0.002815 0.92907
-8.049124 0.003272 1.079857
-6.254498 0.003779 1.24711
-4.459872 0.004337 1.431079
-2.665246 0.004945 1.631711
-0.87062 0.005602 1.848601
0.924006 0.006306 2.080959
2.718632 0.007053 2.327579
4.513258 0.007839 2.586819
6.307884 0.008656 2.856591
8.10251 0.009498 3.134372
9.897136 0.010355 3.417225
11.69176 0.011218 3.701836
13.48639 0.012074 3.984568
15.28101 0.012914 4.261533
17.07564 0.013723 4.528673
18.87027 0.01449 4.781857
20.66489 0.015203 5.016984
22.45952 0.015849 5.230092
24.25414 0.016417 5.41747
26.04877 0.016896 5.575761
27.84339 0.017279 5.702068
29.63802 0.017558 5.794035
31.43265 0.017727 5.849925
33.22727 0.017784 5.868675
35.0219 0.017727 5.849925
36.81652 0.017558 5.794035
38.61115 0.017279 5.702068
40.40578 0.016896 5.575761
42.2004 0.016417 5.41747
43.99503 0.015849 5.230092
45.78965 0.015203 5.016984
47.58428 0.01449 4.781857
49.37891 0.013723 4.528673
51.17353 0.012914 4.261533
52.96816 0.012074 3.984568
54.76278 0.011218 3.701836
56.55741 0.010355 3.417225
58.35204 0.009498 3.134372
60.14666 0.008656 2.856591
61.94129 0.007839 2.586819
63.73591 0.007053 2.327579
65.53054 0.006306 2.080959
67.32517 0.005602 1.848601
69.11979 0.004945 1.631711
70.91442 0.004337 1.431079
72.70904 0.003779 1.24711
74.50367 0.003272 1.079857
76.2983 0.002815 0.92907
78.09292 0.002407 0.794239
79.88755 0.002044 0.674643
81.68217 0.001725 0.569401
83.4768 0.001447 0.47751
85.27142 0.001206 0.397893
87.06605 0.000998 0.329437
88.86068 0.000821 0.271018
90.6553 0.000671 0.221536
92.44993 0.000545 0.179933
94.24455 0.00044 0.14521
96.03918 0.000353 0.116441
97.83381 0.000281 0.092776
99.62843 0.000223 0.073448
101.4231 0.000175 0.057777
103.2177 0.000137 0.045159
105.0123 0.000106 0.035071
106.8069 8.201E-05 0.027063
108.6016 6.288E-05 0.020751
110.3962 4.791E-05 0.015809
112.1908 3.626E-05 0.011967
113.9854 2.728E-05 0.009001
115.7801 2.039E-05 0.006727
117.5747 1.514E-05 0.004996
119.3693 1.117E-05 0.003686
121.1639 8.189E-06 0.002703
122.9586 5.966E-06 0.001969
Histogram with Normal Curve Overlay
20 11.7 6
4
2
0
-5 0 5 10 15 20
Bin
Statistics Normal curve overlay
0
Brand A
Box Plot
600
400
200
0
Brand A Brand B Brand C
Box Plot
1400
1200
1000
800
600
400
200
0
Brand A Brand B Brand C
Boxplot - Alternative Approach Using QUARTILE.INC
0
Brand A
Using QUARTILE.EXC
800
600
400
200
0
Brand A
1400
1200
1000
800
600
400
200
0
Brand A Brand B Brand C
1600
1400
1200
1000
800
600
400
200
0
Brand A Brand B Brand C
Boxplot with negative data
Box Plot
Brand A Br
Box Plot
2100
1900
1700
1500
1300
1100
900
700
500
300
100
-100
-300
Brand A Brand B Brand C
Box Plot
2100
1900
1700
1500
1300
1100
900
700
500
300
100
-100
-300
Brand A Brand B Brand C
Boxplot (aka box and whiskers plot)
Multiplier 1.5
Brand A Brand B Brand C
1020 840 1430 Brand A Brand B Brand C
1560 940 1750 Min 380 300 430 B
560 780 870 Q1-Min 142.5 185 342.5
2000
780 650 920 Med-Q1 202.5 220 132.5
1800
990 720 1300 Q3-Med 237.5 120 332.5
1600
670 430 890 Max-Q3 597.5 115 512.5
1400
510 1850 740 Mean 784 756 1010
1200
490 300 720 1000
380 360 430 Min 380 300 430 800
880 690 1050 Q1 522.5 485 772.5 600
Median 725 705 905 400
Q3 962.5 825 1237.5 200
Max 1560 940 1750 0
Mean 784 756 1010 Brand A
Grand Min 0
Grand Min 0
Outliers 1850
-300
Indentifying Outliers
Box Plot
1850
-300
Box Plot
2450
1950
1450 1900
-250
950 100
450
-50
and A Brand B Brand C
-550
Dot Plot
ROC Table
Observed Cumulative
Dosage Lives Dies Lives Dies FPR TPR AUC
R
0 0 1 1 0.064516 Fail-Pred
1
less than 2.00 34 3 34 3 0.935484 0.989247 0.118259 0.9
Suc-Pred
0.8
2.00 - 3.99 63 7 97 10 0.815939 0.964158 0.160998
ROC Table
ROC Table
Classification Table
Fail-Obs Suc-Obs
Fail-Pred 413 58 471
Suc-Pred 114 221 335
527 279 806
Cutoff 5
ROC Curve
Classification Table 1
0.9
Fail-Obs Suc-Obs 0.8
True Positive Rate
0.7
Fail-Pred 413 58 471 0.6
Suc-Pred 114 221 335 0.5
527 279 806 0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
0.8
ROC Curve
1
0.9
0.8
True Positive Rate
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
False Positive Rate
Classification Table
urve
n1 527
n2 279
AUC 0.889515
q0 0.098278 #NAME?
q1 0.009778 #NAME?
q2 0.046266 #NAME?
se 0.011096 #NAME?
alpha 0.05 #NAME?
z-crit 1.959964 =NORM.S.INV(1-B10/2)
lower 0.867767 #NAME?
upper 0.911263 #NAME?
5.142857 #NAME?
M-estimators
X |X-x|^p X W W|X-x|^p
1 1.073337 p 1.2 1 3 2.539958
2 0.034695 x 2.060751 2 2 0.172135
12 15.73346 ǁX-xǁp 10.51923 #NAME? 12 1 16.0956
x #NAME? #NAME?
X Y
p 1.2 2 4
x 1.870471 3 5
ǁX-xǁp,W 11.5331 #NAME?
x #NAME? #NAME?
#NAME? #NAME?
3.166667 #NAME?
#NAME? #NAME?
2 1.5 1
#NAME? #NAME? #NAME?
Weighted Median
1 50 50 #NAME? #NAME?
2 25 75 #NAME? #NAME?
3 15 90
4 20 110
5 5 115
115
50% 57.5
7 Mean Stdev k Lower Upper
20 120 56.42497 2.5 -21.06244 261.0624
57 120 56.42497 3.0 -49.27492 289.2749
87
89 Median IQR c Lower Upper
89 120 #NAME? 1.5 #NAME? #NAME?
92 120 #NAME? 2.0 #NAME? #NAME?
108 120 #NAME? 2.2 #NAME? #NAME?
109
120 Median MAD c Lower Upper
126 120 #NAME? 3.7065 #NAME? #NAME?
137 120 #NAME? 4.4478 #NAME? #NAME?
152
154
160
176
188
191
218
1 Mean Stdev k Lower Upper
3 125.2632 60.52074 2.5 -26.0387 276.565
100 125.2632 60.52074 3.0 -56.29907 306.8254
100
104 Median IQR c Lower Upper
110 126 #NAME? 1.5 #NAME? #NAME?
111 126 #NAME? 2.0 #NAME? #NAME?
120 126 #NAME? 2.2 #NAME? #NAME?
125
126 Median MAD c Lower Upper
129 126 #NAME? 3.7065 #NAME? #NAME?
132 126 #NAME? 4.4478 #NAME? #NAME?
141
142
143
144
147
250
252
100 Mean Stdev k Lower Upper
100 215.7368 216.6194 2.5 -325.8118 757.2854
104 215.7368 216.6194 3.0 -434.1215 865.5952
110
111 Median IQR c Lower Upper
120 132 #NAME? 1.5 #NAME? #NAME?
125 132 #NAME? 2.0 #NAME? #NAME?
126 132 #NAME? 2.2 #NAME? #NAME?
129
132 Median MAD c Lower Upper
141 132 #NAME? 3.7065 #NAME? #NAME?
142 132 #NAME? 4.4478 #NAME? #NAME?
143
144 Median LMAD UMAD c Lower Upper
240 132 #NAME? #NAME? 3.7065 #NAME? #NAME?
250 132 #NAME? #NAME? 4.4478 #NAME? #NAME?
252
800
830
5 Median MAD c Lower Upper
20 25 #NAME? 3.7065 #NAME? #NAME?
20 25 #NAME? 4.4478 #NAME? #NAME?
21
22 Median LMAD UMAD c Lower Upper
23 25 #NAME? #NAME? 3.7065 #NAME? #NAME?
23 25 #NAME? #NAME? 4.4478 #NAME? #NAME?
24
25 HD Med LMAD UMAD c Lower Upper
25 #NAME? #NAME? #NAME? 3.7065 #NAME? #NAME?
300 #NAME? #NAME? #NAME? 4.4478 #NAME? #NAME?
310
320
320
340
360
360
2000
2050
Deleting Missing Data Listwise
H' 0.287276
max H' 0.69897
J' 0.410999
Brillouin’s Index of Diversity
H 0.460008 #NAME?
k 5 #NAME?
c 6 #NAME?
d 2 #NAME?
max H 0.607604 see below
J 0.757085 #NAME?
max H #NAME?
Diversity Indices
# of eleme 32
# of catego 5
H 0.607604
k 5
c 6
d 2
max H 0.607604
J 1
Simpson's Index of Diversity Real Statistics data analysis tool
25
5
Alpha
Power Effect Size 0.05 0.01
0.80 0.2 199 296
0.80 0.5 34 51
0.80 0.8 15 22
0.90 0.2 265 376
0.90 0.5 44 63
0.90 0.8 19 27
0.95 0.2 327 449
0.95 0.5 54 75
0.95 0.8 23 32
Bonferroni and Dunn-Sidàk Corrections Holm's and Hochberg Approach
FDR 0.05
k 6
x f(x)
-5 25
-4.9 24.01 𝒚 = 𝒇(𝒙)
-4.8 23.04
-4.7 22.09 25
-4.6 21.16 20
-4.5 20.25
-4.4 19.36 15
y-axis
-4.3 18.49
10
-4.2 17.64
-4.1 16.81 5
-4 16
0
-3.9 15.21
-5 -4 -3 -2 -1 0 1 2 3 4 5
-3.8 14.44
x-axis
-3.7 13.69
-3.6 12.96
-3.5 12.25
-3.4 11.56
-3.3 10.89
-3.2 10.24
-3.1 9.61
-3 9
-2.9 8.41
-2.8 7.84
-2.7 7.29
-2.6 6.76
-2.5 6.25
-2.4 5.76
-2.3 5.29
-2.2 4.84
-2.1 4.41
-2 4
-1.9 3.61
-1.8 3.24
-1.7 2.89
-1.6 2.56
-1.5 2.25
-1.4 1.96
-1.3 1.69
-1.2 1.44
-1.1 1.21
-1 1
-0.9 0.81
-0.8 0.64
-0.7 0.49
-0.6 0.36
-0.5 0.25
-0.4 0.16
-0.3 0.09
-0.2 0.04
-0.1 0.01
0 0
0.1 0.01
0.2 0.04
0.3 0.09
0.4 0.16
0.5 0.25
0.6 0.36
0.7 0.49
0.8 0.64
0.9 0.81
1 1
1.1 1.21
1.2 1.44
1.3 1.69
1.4 1.96
1.5 2.25
1.6 2.56
1.7 2.89
1.8 3.24
1.9 3.61
2 4
2.1 4.41
2.2 4.84
2.3 5.29
2.4 5.76
2.5 6.25
2.6 6.76
2.7 7.29
2.8 7.84
2.9 8.41
3 9
3.1 9.61
3.2 10.24
3.3 10.89
3.4 11.56
3.5 12.25
3.6 12.96
3.7 13.69
3.8 14.44
3.9 15.21
4 16
4.1 16.81
4.2 17.64
4.3 18.49
4.4 19.36
4.5 20.25
4.6 21.16
4.7 22.09
4.8 23.04
4.9 24.01
5 25
3 4 5
Gamma Function
x 5
#NAME? a 4
#NAME? lower #NAME? #NAME?
#NAME? upper #NAME? #NAME?
gamma #NAME? #NAME?
Status Sex Score Sex Sum
Married Male 23 Male 97
Married Female 34 Female 92
Single Male 38
Single Female 12 Status Sex Sum
Divorced Male 25 Married Male 23
Divorced Female 19 Divorced Female 19
Widowed Male 11
Widowed Female 27
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
a f g 6 p 4 #NAME?
y 56 Z 4 G 4 #NAME?
@ go ? 7 0 2 #NAME?
% Z stop @ z 1 #NAME?
3 #NAME?
f #NAME?
go #NAME?
6 #NAME?
6 #NAME?
4
7
@
@ go ? 7 #NAME?
Symbol Z
Row # 2 #NAME?
Col # 3 #NAME?
Symbol 7
Row # 3 #NAME?
Col # 4 #NAME?
Conversion from frequency table Real Statistics data analysis t
Alternative Version
Frequency Table
Mean 5.5
Standard Error 0.07303
Median #NAME?
Mode 5.7
Standard Deviation 0.282843
Sample Variance 0.08
Kurtosis -1.31044
Skewness -0.568211
Range 0.8
Maximum 5.8
Minimum 5.0
Sum 82.5
Count 15
Geometric Mean 5.493087
Harmonic Mean 5.486055
AAD 0.24
MAD #NAME?
IQR #NAME?
=N16/N17
=N9/SQRT(N17)
=MEDIAN(Freq2Raw(J6:J12,K6:K12))
=IF(COUNTIF(K6:K12,MAX(K6:K12))>1,#N/A,SUMIF(K6:K12,MAX(K6:K12),J6:J12))
=SQRT(N10)
=SUMPRODUCT((J6:J12-N5)^2,K6:K12)/(N17-1)
=N17*(N17+1)*SUMPRODUCT((J6:J12-N5)^4,K6:K12)/((N17-1)*(N17-2)*(N17-3)*N10^2)-3*(N17-1)^2/((N17-2)*(N17-3))
=N17*SUMPRODUCT((J6:J12-N5)^3,K6:K12)/((N17-1)*(N17-2)*N9^3)
=N14-N15
=MAX(J6:J12)
=MIN(J6:J12)
=SUMPRODUCT(J6:J12,K6:K12)
=SUM(K6:K12)
=PRODUCT(J6:J12^K6:K12)^(1/N17)
=N17/SUMPRODUCT(1/J6:J12*K6:K12)
=SUMPRODUCT(ABS(J6:J12-N5),K6:K12)/N17
=MAD(Freq2Raw(J6:J12,K6:K12))
=IQR(Freq2Raw(J6:J12,K6:K12))
Real Statistics data analysis tool
5 Frequency Table
5.1
5.2 Bin size
5.2
5.2 item
5.5 4.84
5.5 5
5.6 5.16
5.7 5.32
5.7 5.48
5.7 5.64
5.7 5.8
5.8
5.8
5.8
Frequency Table
freq prob
Histogram
#NAME? #NAME? 12
#NAME? #NAME? 10
#NAME? #NAME?
8
#NAME? #NAME?
#NAME? #NAME? Frequency 6
#NAME? #NAME? 4
#NAME? #NAME?
2
#NAME? #NAME?
0
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
Bin
Frequency Table
Histogram
8
0.15 7
6
freq cum 5
Frequency
4
1 1 3
4 5 2
0 5 1
2 7 0
1 8 5.05 5.2 5.35 5.5 5.65 5.8
7 15 Bin
Frequency Table
Histogram
8
0.16 7
6
freq cum 5
Frequency
4
1 1 3
1 2 2
3 5 1
0 5 0
5 5.16 5.32 5.48 5.64 5.8
Bin
3
Fre
2
1
0
5 5.16 5.32 5.48 5.64 5.8
3 8
7 15 Bin
FREQTABLE(H3:H17)
FREQTABLE(H21:35,.15)
FREQTABLE(H21:35,.16)
t1 t2 t3
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
#NAME? #NAME? #NAME?
Table Lookup
Method 1 Method 2
4 5 6 7 8 4 6
2 0.1250 0.1000 0.0833 0.0714 0.0625 a 0.1250 0.1000
3 0.0833 0.0666 0.0555 0.0476 0.0416 b 0.0833 0.0666
4 0.0625 0.0500 0.0416 0.0357 0.0312 c 0.0625 0.0500
5 0.0500 0.0400 0.0333 0.0285 0.0250 d 0.0500 0.0400
Method 3 Method 4
1 2 3 4 5 α = .10 4 5
1 0.1250 0.1000 0.0833 0.0714 0.0625 2 0.1250 0.1000
5 0.0833 0.0666 0.0555 0.0476 0.0416 3 0.0833 0.0666
10 0.0625 0.0500 0.0416 0.0357 0.0312 4 0.0625 0.0500
>10 0.0500 0.0400 0.0333 0.0285 0.0250 5 0.0500 0.0400
row 4 5 9 20 α = .05 4 5
col 2 2 4 4 2 0.0833 0.0667
rindex 1 2 2 3 3 0.0555 0.0444
lower 0.1000 0.0666 0.0476 0.0357 4 0.0417 0.0333
upper 0.0666 0.05 0.0357 0.0285 5 0.0333 0.0267
weight 0.75 0 0.8 1
value 0.07495 0.0666 0.03808 0.0285 α = .01 4 5
ilookup #NAME? #NAME? #NAME? #NAME? 2 0.0714 0.0571
3 0.0476 0.0381
4 0.0357 0.0286
5 0.0286 0.0229
row 4
col 5
α 0.05
offset 0
value 0.0333
12 20 30
0.0833 0.0714 0.0625
0.0555 0.0476 0.0416
0.0416 0.0357 0.0312
0.0333 0.0285 0.0250
d a z
12 6.1 30
4 1 #N/A
3 #N/A 5
0.0333 #N/A #N/A
#NAME? #NAME? #NAME?
6 7 8
0.0833 0.0714 0.0625
0.0555 0.0476 0.0416
0.0416 0.0357 0.0312
0.0333 0.0285 0.0250
6 7 8
0.0555 0.0476 0.0417
0.0370 0.0317 0.0277
0.0277 0.0238 0.0208
0.0222 0.0190 0.0167
6 7 8
0.0476 0.0408 0.0357
0.0317 0.0272 0.0238
0.0238 0.0204 0.0178
0.0190 0.0163 0.0143
5 4 5
8 5 8
0.05 0.1 0.01
0 -6 6
0.0167 0.0500 0.0143
Sampling without replacement Sampling with replacement
SHUFFLE
Pop Random Sample Pop Sample
2 0.967716 2 2 7 #NAME?
5 0.368615 10 5 19 #NAME?
7 0.150992 19 7 20 #NAME?
8 0.821203 8 8 15 #NAME?
9 0.342597 12 9 9 #NAME?
11 0.911684 7 11 6 #NAME?
15 0.376992 15 #NAME?
17 0.467967 17 #NAME?
20 0.270005 20 #NAME?
21 0.802915 21 #NAME?
1 0.651075 1 #NAME?
3 0.240597 3 #NAME?
6 0.014097 6 #NAME?
10 0.163388 10 #NAME?
12 0.954525 12 #NAME?
24 0.7218 24 #NAME?
16 0.378394 16 #NAME?
18 0.51622 18 #NAME?
19 0.684834 19 #NAME?
22 0.716232 22 #NAME?
=RANDOMIZE(E4:E23) =SHUFFLE(A4:A23)
Stress Level
25
9 12 20 22 24 20
10 16 22 26 29
15
11 35 56 22 102
10
12 24 26 21 23
5
13 9 12 20 23
0
14 3 9 13 16
Before 1 week 2 weeks
15 2 8 6 10
mean 18.13333 27.13333 23.66667 40.73333
std dev 16.15933 21.7317 12.08108 38.56806
s.e. 4.17232 5.6111 3.11932 9.95823
ss Levels by Week
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
Bitwise Arithmetic
0101101 01100
45 #NAME? 10101
101101 #NAME? 12 #NAME?
21 #NAME?
90 #NAME?
1011010 #NAME? 11101 #NAME?
22 #NAME? 11001 #NAME?
10110 #NAME? 100 #NAME?
Spearman's Rho
n 20
α 0.02 #NAME? #NAME?
α 0.05 #NAME? #NAME?
α-linear 0.025 #NAME? #NAME? #NAME?
α-log 0.025 #NAME? #NAME? #NAME?
α-harmonic 0.025 #NAME? #NAME?
#NAME?
#NAME?