Skip to Content
エクセル・クックブック
book

エクセル・クックブック

by Dawn Griffiths
March 2025
Beginner to intermediate
592 pages
7h 52m
Japanese
O'Reilly Media, Inc.
Content preview from エクセル・クックブック

第8章 統計分析 統計分析

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

Excelには、統計の作成やデータ分析に役立つ多くの統計関数や機能が用意されている。例えば、度数分布の作成、標準偏差や歪度などの統計量の作成、確率分布の操作などである。この章では、関数、ピボットテーブル、グラフの使い方に焦点を当てながら、これらの分野について説明する。

8.1 度数表を作成する

問題

テキストまたは数値のリストがあり、各値の出現回数をカウントしたい。

解決策

ある列の値のリストがあり、それぞれのユニークな値の頻度(その列でその値が出現する回数)を発見したいとする。 各値とそれに対応する度数をリストした度数表を作成することで、これを行うことができる。

度数表を作成するために選択するメソッドは、度数を発見したい値のタイプによって異なる。

テキストや整数などの離散値、次のようにピボットテーブルを使って度数表を作成できる:

  1. データを選択し、挿入⇒テーブル⇒ピボットテーブルを選択してピボットテーブルを挿入する。

  2. ピボット・テーブル・フィールズ]ペインの[行]セクションと[値]セクションに値の列を追加し、[値]集計がCount に設定されていることを確認する(レシピ 11.9 を参照)。結果を図 8-1 に示す。

    Screenshot of frequency table
    図8-1. ピボット・テーブルで作成した離散データの度数表1

測定値のような連続データでは、値をビンまたは区間にグループ化し、各ビンの頻度を示すグループ化度数表を作成する必要があることが多い。 ピボットテーブルまたはExcelのFREQUENCY 関数を使用してこれを行うことができる。

ピボットテーブルを使ってグループ化された度数表を作成する:

  1. データ(見出しを含む)を選択し、挿入⇒表⇒ピボットテーブルを選択してピボットテーブルを挿入する。

  2. ピボット・テーブル・フィールド]ペインの[行]セクションと[値]セクションに値を含むフィールドを追加し、[値の集約]が[カウント]に設定されていることを確認する。

  3. ピボット・テーブルで行の値を 1 つ選択し、レシピ 11.17 を使用して値をビンにグループ化する(図 8-2 を参照)。

    Screenshot of grouped frequency table
    図8-2. ピボット・テーブルを使って作成したグループ化された度数表

エクセル2021またはエクセル365を使用している場合、FREQUENCY 関数を使用して、以下のようにグループ化された度数表を作成することができる:

  1. 、各ビンに使用する上限値を決め、これらを1つの列にタイプする(例えば、図8-3に示すように、範囲C2:C6)。

    Screenshot of FREQUENCY function output
    図8-3. FREQUENCY 関数を用いて作成したグループ化された度数表。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

はじめての知識グラフ構築ガイド

はじめての知識グラフ構築ガイド

Jesus Barrasa, Jim Webber
MySQL管理ハンズオン

MySQL管理ハンズオン

Arunjith Aravindan, Jeyaram Ayyalusamy

Publisher Resources

ISBN: 9798341626973