Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Mathematica Data Analysis
Mathematica Data Analysis

Mathematica Data Analysis: Learn and explore the fundamentals of data analysis with power of Mathematica

eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Mathematica Data Analysis

Chapter 1. First Steps in Data Analysis

Wolfram Mathematica is not just a system that can solve almost any mathematical task. It is a Swiss army knife, which allows you to process images, audio, and written text to perform classification and identification of objects, as well as to manage files. It also provides other tremendous capabilities. In Mathematica, you can call functions, as well as receive a call from modules that are written using different programming languages and technologies, such as C, .NET, Java, and others. The system can generate code and compile files. Mathematica includes over 4,500 functions, which go beyond mathematical calculations. Wolfram Mathematica is constantly changing while still maintaining full compatibility with previous versions.

In this chapter, you will learn the following:

  • How to install the Wolfram Mathematica system
  • How to configure it to fit your needs
  • What the Wolfram language kernel is and how to run it
  • Wolfram Mathematica features to write expressions

System installation

Depending on your needs, you can work with Mathematica both online and offline. For a deeper understanding of the system and its settings and capabilities, we will use the offline version. In this book, we'll deal with examples of Mathematica, version 10.2 (the current version at the time of writing this book), which are fully compatible with all future versions.

You can install Mathematica on the major operating systems: Windows, Linux, and Mac OS X.

To download a trial version of Mathematica, use this link: https://www.wolfram.com/mathematica/trial. You will be prompted to create a new Wolfram Mathematica ID or sign in with your already registered ID:

System installation

After registration, you will receive an e-mail containing the link to activate your Wolfram ID, as well as the link to access Mathematica Online. Activate your account and log in using https://user.wolfram.com/portal/login.html.

System installation

On this page, you can choose and download the Mathematica installer for your operating system.

Note

Copy the code in the Activation Key field. You will need it later to activate the product.

Let's download the Windows version of the program (by clicking on the Download for Windows button) and go through the main stages of system installation on a computer. The size of the downloaded file will be slightly larger than 2 GB, so make sure you have enough free space on your computer, both for the installer and for the installation of Mathematica.

Once the Mathematica_10.2.0_WIN.zip file is downloaded to your computer, extract it into a separate directory and run setup.exe:

System installation

At this point, the installer will inform us that the installation process of Mathematica 10.2 is about to start. In order to proceed, click on Next in the preceding screenshot.

System installation

Note that the system installation requires 6.2 GB of free disk space. In the preceding screenshot, select the directory where you want to install Mathematica and click on Next.

System installation

In the next dialog window, as shown in the preceding screenshot, you should choose the components of Mathematica you want to install. The Wolfram Extras package includes plugins for browsers that allow you to preview the Mathematica files embedded in web pages.

To continue the installation, click on the Next button.

System installation

As shown in the previous screenshot, you need to select a folder in the Start Menu to place the program's shortcuts. Then click on Next.

System installation

After that, we will see the summary of the previously selected options as shown in the preceding screenshot. Click on the Install button to start copying the files. After all files are copied, you will be notified that the installation is finished. You can check off the Launch Wolfram Mathematica checkbox to start learning the system immediately:

System installation

Once the system launches, you need to enter the activation key that we copied from the Wolfram website earlier:

System installation

Now, click on the Activate button. You will be redirected to the following page:

System installation

Read the license agreement and check the I accept the terms of this agreement box. Then click on OK.

Now, the Mathematica system is ready for the first use:

System installation

Setting up the system

To access the Preferences dialog, you need to select Edit | Preferences… in the application menu.

Note

On Mac OS X, the Preferences menu is located in the Mathematica application menu.

Let's review the most interesting settings of the system, which will be useful for our further work:

Setting up the system

In the Appearance | Number | Formatting tab, you can select various numeric formatting options. Will there be a space separator between the digit blocks? What should be the decimal point character? How many digits will be displayed by default in the output?

In the next Multiplication tab, you can select the appearance of the multiplication:

Setting up the system

Note

In Mathematica, the space between two expressions means multiplying those expressions.

In this tab, you can choose whether the multiplication symbol between the multiplied numbers appears automatically, as well as choose the symbol type: space, center dot, *, or x.

The Mathematica front end and kernel

The Wolfram system has a modular structure and consists of two main parts. The one that directly performs all computations is called the kernel; the other part that interacts with the user is called the front end.

The kernel can be installed on the server, and it processes requests from multiple user interfaces. However, the single user interface can use several connected kernels for its computations.

In order to connect multiple kernels, navigate to Evaluation | Kernel Configuration Options… and click on the Add button.

The Mathematica front end and kernel

In the dialog window that opens, you can select whether the kernel will be located on a local computer or on a remote computer in the network. You can also enter the parameters in order to connect to this computer. There is a capability to be always aware of which kernel was used for computations.

The front end has the following interfaces:

  • Notebook: It is the document in which the user enters all the necessary expressions and algorithms.
  • Text-based interface: It is a command-line interface. It is used in text operating systems and not in the graphics operating systems.
  • Wolfram Symbolic Transfer Protocol (WSTP): It is the interface that enables interaction with other programs and modules.

Main features for writing expressions

At the beginning, it should be mentioned that Wolfram Mathematica has a very extensive reference system. You can access it by selecting in this menu: Support | Wolfram Documentation:

Main features for writing expressions

Let's get acquainted with some distinctions of Mathematica that will help us to understand the source code in the following chapters.

Let's create our first notebook. When Mathematica starts, you should choose New Document and then Notebook.

In order to compute any expression, press Shift + Enter after entering it. The input expression will be denoted by In and the output by Out:

In[1]:= 1 + 4
Out[1]= 5

Note

In this and other samples, all the formulas will start with In[Number]; you shouldn't type this because it is the number of the input that Mathematica calculates automatically.

All built-in functions always start with a capital letter, as shown here:

Main features for writing expressions

No variables should start with a number, since it will automatically be treated as a multiplication operation. They cannot end with a $ symbol.

If the variable ends with _, then it is a template expression and it can be substituted with anything, for example:

Main features for writing expressions

In Mathematica, there are four types of brackets:

  • Square []: These are used to describe the function parameters
  • Round (): These are used to group expressions and logical elements
  • Curly {}: These are used to describe the elements of arrays, vectors, and data lists
  • Double Square [[ ]]: These are used to allocate a specific item in a data list

In Mathematica, there are two types of assignments: absolute (=) and delayed (:=).

The difference is that in a delayed assignment, the right-hand side of the expression is always recomputed if the function is called. In an absolute assignment, the value that was in place during the assignment is stored.

Main features for writing expressions

In this example, we see that at the time of the second call of variables, x2 adopted the current time value. At the same time, x1 remained unchanged.

In order to use the result of the preceding expression, one can use the % symbol:

Main features for writing expressions

The basis of the Mathematica language is the functional form of all the expressions. In order to see a complete expression, the FullForm function should be used:

Main features for writing expressions

The variables that are not used should be cleared by the Clear function. Otherwise, computation errors will occur:

Main features for writing expressions

Summary

In this chapter, we learned how to install the Wolfram Mathematica software and reviewed the basic components of the system: front end and kernel. We also gained a knowledge of the Mathematica language features.

In the next chapters, we will review additional features and techniques that facilitate work in Mathematica.

Left arrow icon Right arrow icon

Key benefits

  • Use the power of Mathematica to analyze data in your applications
  • Discover the capabilities of data classification and pattern recognition offered by Mathematica
  • Use hundreds of algorithms for time series analysis to predict the future

Description

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.

Who is this book for?

The book is for those who want to learn to use the power of Mathematica to analyze and process data. Perhaps you are already familiar with data analysis but have never used Mathematica, or you know Mathematica but you are new to data analysis. With the help of this book, you will be able to quickly catch up on the key points for a successful start.

What you will learn

  • Import data from different sources to Mathematica
  • Link external libraries with programs written in Mathematica
  • Classify data and partition them into clusters
  • Recognize faces, objects, text, and barcodes
  • Use Mathematica functions for time series analysis
  • Use algorithms for statistical data processing
  • Predict the result based on the observations

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 24, 2015
Length: 164 pages
Edition : 1st
Language : English
ISBN-13 : 9781785884450
Category :
Concepts :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Dec 24, 2015
Length: 164 pages
Edition : 1st
Language : English
ISBN-13 : 9781785884450
Category :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 101.97
Mathematica data visualization
€29.99
Mathematica Data Analysis
€29.99
OpenCV with Python By Example
€41.99
Total 101.97 Stars icon
Banner background image

Table of Contents

9 Chapters
1. First Steps in Data Analysis Chevron down icon Chevron up icon
2. Broad Capabilities for Data Import Chevron down icon Chevron up icon
3. Creating an Interface for an External Program Chevron down icon Chevron up icon
4. Analyzing Data with the Help of Mathematica Chevron down icon Chevron up icon
5. Discovering the Advanced Capabilities of Time Series Chevron down icon Chevron up icon
6. Statistical Hypothesis Testing in Two Clicks Chevron down icon Chevron up icon
7. Predicting the Dataset Behavior Chevron down icon Chevron up icon
8. Rock-Paper-Scissors – Intelligent Processing of Datasets Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(1 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
SeVlad Mar 04, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very helpful book with interesting examples.For novice in Mathematica.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.