#### Overview of this book

There are many algorithms for data analysis and it’s not always possible to quickly choose the best one for each case. Implementation of the algorithms takes a lot of time. With the help of Mathematica, you can quickly get a result from the use of a particular method, because this system contains almost all the known algorithms for data analysis. If you are not a programmer but you need to analyze data, this book will show you the capabilities of Mathematica when just few strings of intelligible code help to solve huge tasks from statistical issues to pattern recognition. If you're a programmer, with the help of this book, you will learn how to use the library of algorithms implemented in Mathematica in your programs, as well as how to write algorithm testing procedure. With each chapter, you'll be more immersed in the special world of Mathematica. Along with intuitive queries for data processing, we will highlight the nuances and features of this system, allowing you to build effective analysis systems. With the help of this book, you will learn how to optimize the computations by combining your libraries with the Mathematica kernel.
Mathematica Data Analysis
Credits
www.PacktPub.com
Preface
Free Chapter
First Steps in Data Analysis
Broad Capabilities for Data Import
Creating an Interface for an External Program
Analyzing Data with the Help of Mathematica
Discovering the Advanced Capabilities of Time Series
Statistical Hypothesis Testing in Two Clicks
Predicting the Dataset Behavior
Rock-Paper-Scissors – Intelligent Processing of Datasets
Index

## Chapter 6. Statistical Hypothesis Testing in Two Clicks

When we have data sampling, we are always interested in its characteristics: which law of distribution this data suits the most, what is the mean and variance of the sample, and many other features. However, the verification of these characteristics gives only a probable answer, since we cannot say for sure when we are dealing with random data. There is an entire set of tests that verify this; however, with the help of Mathematica, this check is reduced to two strings of code and you get a quick answer to the question. In this chapter, you will learn the following:

• How to verify that the mean value or the sampling variance is commensurate with a certain quantity

• How to verify that the mean values or the variances of two or more samples are commensurable with each other

• How to test two samples for mutual independence or correlation

• How do I know whether a sample corresponds to a distribution law?