statistics/slides.tex
author bhanu
Mon, 15 Nov 2010 14:40:49 +0530
changeset 499 fff4a90b2310
parent 450 d49aee7ab1b9
permissions -rw-r--r--
Language check done for `least square fit`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     1
% Created 2010-11-11 Thu 01:35
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     2
\documentclass[presentation]{beamer}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     3
\usepackage[latin1]{inputenc}
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     4
\usepackage[T1]{fontenc}
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     5
\usepackage{fixltx2e}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     6
\usepackage{graphicx}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     7
\usepackage{longtable}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     8
\usepackage{float}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
     9
\usepackage{wrapfig}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    10
\usepackage{soul}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    11
\usepackage{t1enc}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    12
\usepackage{textcomp}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    13
\usepackage{marvosym}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    14
\usepackage{wasysym}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    15
\usepackage{latexsym}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    16
\usepackage{amssymb}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    17
\usepackage{hyperref}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    18
\tolerance=1000
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    19
\usepackage[english]{babel} \usepackage{ae,aecompl}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    20
\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    21
\usepackage{listings}
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    22
\lstset{language=Python, basicstyle=\ttfamily\bfseries,
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    23
commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    24
showstringspaces=false, keywordstyle=\color{blue}\bfseries}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    25
\providecommand{\alert}[1]{\textbf{#1}}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    26
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    27
\title{Statistics}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    28
\author{FOSSEE}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    29
\date{11 November 2010}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    30
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    31
\usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    32
\begin{document}
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    33
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    34
\maketitle
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    35
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    36
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    37
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    38
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    39
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    40
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    41
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    42
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    43
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    44
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    45
\begin{frame}
450
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    46
\frametitle{Outline}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    47
\label{sec-1}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    48
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    49
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    50
\item Doing statistical operations in Python
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    51
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    52
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    53
\item Summing set of numbers
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    54
\item Finding there mean
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    55
\item Finding there Median
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    56
\item Finding there Standard Deviation
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    57
\end{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    58
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    59
\end{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    60
\end{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    61
\begin{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    62
\frametitle{Data set}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    63
\label{sec-2}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    64
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    65
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    66
\item A;015163;JOSEPH RAJ S;083;042;47;00;72;244;;;
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    67
\end{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    68
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    69
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    70
  The following are the fields in any given line.
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    71
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    72
\item Region Code which is `A'
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    73
\item Roll Number 015163
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    74
\item Name JOSEPH RAJ S
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    75
\item Marks of 5 subjects: -- English 083 -- 
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    76
     Hindi 042 -- Maths 47 --
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    77
     Science 35 -- Social 72
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    78
\item Total marks 244
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    79
\end{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    80
\end{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    81
\begin{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    82
\frametitle{Question}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    83
\label{sec-3}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    84
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    85
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    86
\item In the given file football.txt at path /home/fossee/football.txt , 
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    87
    one column is player name,second is goals at home 
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    88
    and third goals away.
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    89
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    90
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    91
\item Find the total goals for each player
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    92
\item Mean home and away goals
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    93
\item Standard deviation of home and away goals
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    94
\end{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    95
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    96
\end{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    97
\end{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    98
\begin{frame}[fragile]
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
    99
\frametitle{Solution}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   100
\label{sec-4}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   101
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   102
\begin{verbatim}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   103
L=loadtxt('/home/amit/football.txt',usecols=(1,2),
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   104
          delimiter=',')
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   105
sum(L,1)
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   106
mean(L,0)
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   107
std(L,0)
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   108
\end{verbatim}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   109
\end{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   110
\begin{frame}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   111
\frametitle{Summary}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   112
\label{sec-5}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   113
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   114
\begin{itemize}
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   115
\item sum
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   116
\item mean
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   117
\item median
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   118
\item std
d49aee7ab1b9 Rewrite of statistics script as suggested by punch and change in slides accordingly
Amit Sethi
parents: 321
diff changeset
   119
\end{itemize}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   120
\end{frame}
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   121
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   122
\end{document}