Eva Goldwater Biostatistics Consulting Center University of Massachusetts School of Public Health aktualisiert Februar 2007 Auf einen Blick Wir haben Excel verwendet, um einige grundlegende Datenanalyse Aufgaben zu sehen, ob es eine vernünftige Alternative zur Verwendung eines statistischen Pakets für die gleichen Aufgaben ist. Wir sind zu dem Schluss gekommen, dass Excel eine schlechte Wahl für die statistische Analyse über Lehrbuchbeispiele, die einfachste deskriptive Statistik oder für mehr als nur wenige Spalten ist. Die Probleme, denen wir begegneten, die zu dieser Schlussfolgerung geführt haben, sind in vier allgemeinen Bereichen: Fehlende Werte werden inkonsequent und manchmal falsch behandelt. Die Datenorganisation unterscheidet sich je nach Analyse und zwingt Sie dazu, Ihre Daten in vielerlei Hinsicht neu zu ordnen, wenn Sie viele verschiedene Analysen durchführen möchten. Viele Analysen können nur auf einer Spalte zu einem Zeitpunkt durchgeführt werden, was es unpraktisch macht, die gleiche Analyse auf vielen Spalten zu machen. Die Ausgabe ist schlecht organisiert, manchmal unzureichend etikettiert, und es gibt keine Aufzeichnung darüber, wie eine Analyse durchgeführt wurde. Excel ist praktisch für die Dateneingabe und für die schnelle Manipulation von Zeilen und Spalten vor der statistischen Analyse. Allerdings, wenn Sie bereit sind, die statistische Analyse durchzuführen, empfehlen wir die Verwendung eines statistischen Pakets wie SAS, SPSS, Stata, Systat oder Minitab. Einleitung Excel ist wahrscheinlich die am häufigsten verwendete Tabellenkalkulation für PCs. Neu gekaufte Computer kommen oft mit Excel bereits geladen. Es ist leicht verwendet, um eine Vielzahl von Berechnungen zu tun, enthält eine Sammlung von statistischen Funktionen und ein Data Analysis ToolPak. Als Ergebnis, wenn Sie plötzlich finden Sie müssen einige statistische Analyse zu tun, können Sie sich als die offensichtliche Wahl zu drehen. Wir haben beschlossen, einige Tests zu machen, um zu sehen, wie gut Excel als Datenanalyse-Anwendung dienen würde. Um die Ergebnisse zu präsentieren, verwenden wir ein kleines Beispiel. Die Daten für dieses Beispiel sind fiktiv. Es wurde gewählt, um zwei kategorische und zwei kontinuierliche Variablen zu haben, so dass wir eine Vielzahl von grundlegenden statistischen Techniken testen konnten. Da fast alle realen Datensätze mindestens ein paar fehlende Datenpunkte haben und da die Fähigkeit, mit fehlenden Daten korrekt umzugehen, eines der Merkmale ist, die wir in einem statistischen Analysepaket für selbstverständlich halten, haben wir zwei leere Zellen in die Daten eingeführt: Jede Zeile der Kalkulationstabelle stellt ein Thema dar. Das erste Thema erhielt Behandlung 1 und hatte Ergebnis 1. X und Y sind die Werte von zwei Messungen zu jedem Thema. Wir konnten keine Messung für Y auf dem zweiten Thema oder auf X für das letzte Thema, so dass diese Zellen sind leer. Die Probanden werden in der Reihenfolge eingegeben, in der die Daten vorliegen, so dass die Daten nicht in besonderer Weise bestellt werden. Wir haben diese Daten verwendet, um einige einfache Analysen durchzuführen und die Ergebnisse mit einem statistischen Standardpaket zu vergleichen. Der Vergleich betrachtete die Genauigkeit der Ergebnisse als auch die Leichtigkeit, mit der die Schnittstelle für größere Datensätze verwendet werden könnte - d. H. Mehr Spalten. Wir haben SPSS als Standard verwendet, obwohl irgendwelche der statistischen Pakete OIT-Unterstützungen gleichermaßen gut für diesen Zweck tun würden. In diesem Artikel, wenn wir sagen, Quota statistische Paket, wir meinen SPSS, SAS, STATA, SYSTAT oder Minitab. Die meisten statistischen Prozeduren von Excels sind Teil des Data Analysis Tool Packs, der sich im Menü Extras befindet. Es enthält eine Vielzahl von Entscheidungen, einschließlich einfacher deskriptiver Statistiken, t-Tests, Korrelationen, 1 oder 2-Wege-Analyse von Varianz, Regression usw. Wenn Sie im Menü "Werkzeuge" keine Datenanalyse haben, müssen Sie die Daten installieren Analyse ToolPak. Suche in Hilfe für quotData Analysis Toolsquot für Anweisungen zum Laden des ToolPak. Zwei weitere Excel-Funktionen sind für bestimmte Analysen nützlich, aber die Data Analysis Tool Pack ist die einzige, die vernünftig vollständige Tests der statistischen Signifikanz bietet. Pivot-Tabelle im Daten-Menü kann verwendet werden, um zusammenfassende Tabellen von Mitteln, Standardabweichungen, Zählungen usw. zu erzeugen. Außerdem können Sie Funktionen verwenden, um einige statistische Maßnahmen wie einen Korrelationskoeffizienten zu erzeugen. Funktionen erzeugen eine einzelne Zahl, also mit Funktionen, die du wahrscheinlich Bits und Stücke kombinieren musst, um zu bekommen, was du willst. Dennoch können Sie nicht alle Teile, die Sie für eine komplette Analyse benötigen, generieren. Sofern nicht anders angegeben, wurden alle statistischen Tests mit Excel mit dem Data Analysis ToolPak durchgeführt. Um eine Vielzahl von statistischen Tests zu überprüfen, haben wir folgende Aufgaben gewählt: Mittel und Standardabweichungen von X und Y für die gesamte Gruppe und für jede Behandlungsgruppe. Holen Sie sich die Korrelation zwischen X und Y. Machen Sie eine zwei Probe t-Test zu testen, ob die beiden Behandlungsgruppen unterscheiden sich auf X und Y. Machen Sie einen gepaarten t-Test zu testen, ob X und Y sind statistisch voneinander verschieden. Vergleichen Sie die Anzahl der Themen mit jedem Ergebnis durch Behandlungsgruppe, mit einem Chi-Quadrat-Test. Alle diese Aufgaben sind Routine für einen Datensatz dieser Art, und alle von ihnen könnten leicht mit einem der aobve aufgeführten statistischen Pakete durchgeführt werden. Allgemeine Probleme Aktivieren Sie das Analysis ToolPak Das Data Analysis ToolPak wird nicht mit dem Standard Excel Setup installiert. Schauen Sie im Menü Extras nach. Wenn Sie kein Datenanalyse-Element haben, müssen Sie die Datenanalyse-Tools installieren. Suche Hilfe für quotData Analysis Toolsquot für Anweisungen. Fehlende Werte Eine leere Zelle ist die einzige Möglichkeit für Excel, mit fehlenden Daten umzugehen. Wenn Sie irgendwelche anderen fehlenden Wertcodes haben, müssen Sie sie in Leerzeichen ändern. Datenanordnung Verschiedene Analysen erfordern, dass die Daten auf verschiedene Weise angeordnet werden können. Wenn Sie auf eine Vielzahl von verschiedenen Tests planen, kann es nicht eine einzige Vereinbarung, die funktionieren wird. Sie müssen wahrscheinlich die Daten neu anordnen, um alles zu bekommen, was Sie brauchen. Dialogfelder Wählen Sie ToolsData Analysis, und wählen Sie die Art der Analyse, die Sie tun möchten. Das typische Dialogfeld hat folgende Elemente: Eingabebereich: Geben Sie die oberen linken und unteren rechten Eckzellen ein. z. B. A1: B100. Sie können nur benachbarte Zeilen und Spalten auswählen. Es sei denn, es gibt ein Kontrollkästchen für die Gruppierung von Daten nach Zeilen oder Spalten (und es gibt normalerweise nicht), werden alle Daten als ein Glop betrachtet. Etiketten - Es gibt manchmal eine Schachtel, die Sie abschicken können, um anzuzeigen, dass die erste Zeile Ihres Blattes Etiketten enthält. Wenn Sie Etiketten in der ersten Zeile haben, markieren Sie dieses Kästchen, und Ihre Ausgabe kann mit Ihrem Etikett beschriftet werden. Dann wieder kann es nicht. Ausgabeort - Neues Blatt ist die Voreinstellung. Oder geben Sie die Zellenadresse der oberen linken Ecke ein, wo Sie die Ausgabe in das aktuelle Blatt legen möchten. Neues Arbeitsblatt ist eine weitere Option, die ich nicht ausprobiert habe. Verzweigungen dieser Wahl werden unten diskutiert. Weitere Artikel, je nach Analyse. Ausgabeort Die Ausgabe von jeder Analyse kann zu einem neuen Blatt innerhalb Ihrer aktuellen Excel-Datei gehen (dies ist die Standardeinstellung), oder Sie können es in das aktuelle Blatt legen, indem Sie die obere linke Eckzelle angeben, wo Sie es platzieren möchten. Jeder Weg ist ein bisschen ein Ärgernis. Wenn jeder Ausgang in einem neuen Blatt ist, endet man mit vielen Blättern, jeder mit einem kleinen Stück Ausgang. Wenn du sie in das aktuelle Blatt platzierst, musst du sie angemessen Platz lassen, um Kommentare hinzuzufügen und Etiketten Änderungen, die du machen musst, um eine Ausgabe richtig zu formatieren, kann eine andere Ausgabe nachteilig beeinflussen. Beispiel: Ausgabe aus Beschreibungen hat eine Spalte von Etiketten wie Standardabweichung, Standardfehler usw. Sie wollen diese Spalte breit machen, um die Etiketten lesen zu können. Aber wenn eine einfache Frequenzausgabe direkt darunter liegt, wird auch die Spalte, die die zu zählenden Werte angibt, die nur kleine ganze Zahlen enthalten können, ebenfalls breit sein. Ergebnisse der Analysen Beschreibende Statistik Der schnellste Weg, um Mittel und Standardabweichungen für eine ganze Gruppe zu erhalten, ist die Verwendung von Beschreibungen in den Datenanalyse-Tools. Sie können mehrere benachbarte Spalten für den Input Range (in diesem Fall die X - und Y-Spalten) auswählen und jede Spalte wird separat analysiert. Die Etiketten in der ersten Zeile werden verwendet, um die Ausgabe zu kennzeichnen, und die leeren Zellen werden ignoriert. Wenn Sie mehr, nicht benachbarte Spalten haben, die Sie analysieren müssen, müssen Sie den Vorgang für jede Gruppe von zusammenhängenden Spalten wiederholen. Das Verfahren ist einfach, kann viele Spalten vernünftigerweise verwalten, und leere Zellen werden richtig behandelt. Um die Mittel und Standardabweichungen von X und Y für jede Behandlungsgruppe zu erhalten, ist die Verwendung von Pivot-Tabellen erforderlich (es sei denn, Sie möchten das Datenblatt neu anordnen, um die beiden Gruppen zu trennen). Nachdem Sie den (zusammenhängenden) Datenbereich ausgewählt haben, ziehen Sie in der Option Pivot Table Wizards Layout die Behandlung auf den Variablenbereich Row und X auf den Datenbereich. Doppelklicken Sie auf ldquoCount von Xrdquo im Datenbereich und ändern Sie es auf Durchschnitt. Ziehen Sie X erneut in die Datenbox, und ändern Sie die Zeit in StdDev. Schließlich ziehe ich X noch einmal, so dass es als Graf von X. Dies wird uns die durchschnittliche, Standardabweichung und Anzahl der Beobachtungen in jeder Behandlungsgruppe für X. Machen Sie das gleiche für Y, so werden wir den Durchschnitt, Standard Abweichung und Anzahl der Beobachtungen für Y auch. Damit werden insgesamt sechs Punkte in die Datenbox gesetzt (drei für X und drei für Y). Wie Sie sehen können, wenn Sie eine Vielzahl von beschreibenden Statistiken für mehrere Variablen erhalten möchten, wird der Prozess mühsam. Ein statistisches Paket erlaubt Ihnen, so viele Variablen zu wählen, wie Sie für beschreibende Statistiken wünschen, ob sie zusammenhängen oder nicht. Sie können die beschreibenden Statistiken für alle Themen zusammen, oder abgebrochen durch eine kategorische Variable wie Behandlung. Sie können die Statistik auswählen, die Sie einmal sehen möchten, und es gilt für alle gewählten Variablen. Korrelationen Mit den Datenanalyse-Tools ist der Dialog für Korrelationen ähnlich wie bei der Beschreibung - Sie können mehrere zusammenhängende Spalten auswählen und eine Ausgabematrix aller Korrelationspaare erhalten. Leere Zellen werden entsprechend ignoriert. Die Ausgabe enthält nicht die Anzahl der Paare von Datenpunkten, die verwendet werden, um jede Korrelation zu berechnen (die je nach dem, wo Sie fehlende Daten haben können, variieren können) und gibt nicht an, ob eine der Korrelationen statistisch signifikant ist. Wenn Sie Korrelationen auf nicht zusammenhängenden Spalten wünschen, müssten Sie entweder die dazwischenliegenden Spalten einfügen oder die gewünschten Spalten an einen zusammenhängenden Speicherort kopieren. Ein statistisches Paket erlaubt Ihnen, nicht zusammenhängende Spalten für Ihre Korrelationen zu wählen. Die Ausgabe würde Ihnen sagen, wie viele Paare von Datenpunkten verwendet wurden, um jede Korrelation zu berechnen, und welche Korrelationen statistisch signifikant sind. Zwei-Sample-T-Test Dieser Test kann verwendet werden, um zu überprüfen, ob sich die beiden Behandlungsgruppen von den Werten von X oder Y unterscheiden. Um den Test durchzuführen, müssen Sie für jede Gruppe einen Zellbereich eingeben. Da die Daten nicht von der Behandlungsgruppe eingegeben wurden, müssen wir zuerst die Zeilen nach der Behandlung sortieren. Achten Sie darauf, alle anderen Spalten zusammen mit der Behandlung zu nehmen, damit die Daten für jedes Fach intakt bleiben. Nachdem die Daten sortiert sind, können Sie den Zellbereich eingeben, der die X-Messungen für jede Behandlung enthält. Füge die Zeile nicht mit den Etiketten ein, da die zweite Gruppe keine Etikettenreihe hat. Daher wird Ihre Ausgabe nicht beschriftet, um anzuzeigen, dass diese Ausgabe für X ist. Wenn Sie die Ausgabe markieren möchten, müssen Sie die Zellen entsprechend der zweiten Gruppe in eine separate Spalte kopieren und eine Zeile mit einem Label für die zweite Gruppe eingeben . Wenn du auch den t-Test für die Y-Messungen machen möchtest, musst du den Vorgang wiederholen. Die leeren Zellen werden ignoriert, und anders als die Probleme mit der Etikettierung der Ausgabe sind die Ergebnisse korrekt. Ein statistisches Paket würde diese Aufgabe ohne die Notwendigkeit, die Daten zu sortieren oder es in eine andere Spalte zu kopieren, und die Ausgabe würde immer ordnungsgemäß etikettiert werden, soweit Sie Etiketten für Ihre Variablen und Behandlungsgruppen zur Verfügung stellen. Es würde Ihnen auch erlauben, mehr als eine Variable zu einem Zeitpunkt für den t-Test (z. B. X und Y) zu wählen. Paired t-test Der gepaarte t-Test ist eine Methode zum Testen, ob der Unterschied zwischen zwei Messungen am selben Thema deutlich von 0 abweicht. In diesem Beispiel wollen wir den Unterschied zwischen X und Y, der am selben Thema gemessen wurde, testen. Das wichtigste Merkmal dieses Tests ist, dass es die Messungen in jedem Fach vergleicht. Wenn Sie die X - und Y-Spalten separat scannen, sehen sie nicht offensichtlich anders aus. Aber wenn man sich jedes X-Y-Paar ansieht, merkt man, dass in jedem Fall X größer als Y ist. Der gepaarte t-Test sollte für diesen Unterschied empfindlich sein. In den beiden Fällen, in denen entweder X oder Y fehlt, ist es nicht möglich, die beiden Maßnahmen zu einem Thema zu vergleichen. Daher sind nur 8 Reihen für den gepaarten t-Test verwendbar. Wenn Sie den gepaarten t-Test auf diese Daten ausführen, erhalten Sie eine t-Statistik von 0,09, mit einer 2-Schwanz-Wahrscheinlichkeit von 0,93. Der Test findet keinen signifikanten Unterschied zwischen X und Y. Wenn man die Ausgabe sorgfältiger betrachtet, bemerken wir, dass es 9 Beobachtungen gibt. Wie oben erwähnt, sollte es nur 8 geben. Es scheint, dass Excel die Beobachtungen nicht ausgeschlossen hat, die nicht sowohl X - als auch Y-Messungen hatten. Um die korrekten Ergebnisse zu erhalten, kopiere ich X und Y in zwei neue Spalten und lösche die Daten in den Zellen, die keinen Wert für die andere Maßnahme haben. Führen Sie nun den gepaarten t-Test erneut aus. Diesmal ist die t-Statistik 6.14817 mit einer 2-Schwanz-Wahrscheinlichkeit von 0.000468. Die Schlussfolgerung ist ganz anders Natürlich ist das ein extremes Beispiel. Aber der Punkt ist, dass Excel den gepaarten t-Test nicht korrekt berechnet, wenn einige Beobachtungen eine der Messungen haben, aber nicht die anderen. Obwohl es möglich ist, das richtige Ergebnis zu bekommen, hättest du keinen Grund, die Ergebnisse zu vermuten, die du bekommst, es sei denn, du bist ausreichend aufmerksam, um zu bemerken, dass die Anzahl der Beobachtungen falsch ist. Es gibt nichts in Online-Hilfe, die Sie über dieses Problem warnen würde. Interessanterweise gibt es auch eine TTEST-Funktion, die für dieses Beispiel die richtigen Ergebnisse liefert. Anscheinend sind die Funktionen und die Datenanalyse-Tools nicht konsistent, wie sie mit fehlenden Zellen umgehen. Trotzdem kann ich die Verwendung von Funktionen, die den Datenanalyse-Tools vorziehen, nicht empfehlen, da das Ergebnis der Verwendung einer Funktion eine einzige Zahl ist - in diesem Fall die 2-Schwanz-Wahrscheinlichkeit der t-Statistik. Die Funktion gibt dir nicht die t-Statistik selbst, die Freiheitsgrade oder irgendeine Anzahl von anderen Gegenständen, die du sehen möchtest, wenn du einen statistischen Test machst. Ein statistisches Paket schließt die Fälle korrekt aus, wenn eine der Messungen fehlt und alle unterstützenden Statistiken zur Verfügung stellt, die Sie benötigen, um die Ausgabe zu interpretieren. Crosstabulation und Chi-Squared Test of Independence Unsere letzte Aufgabe ist es, die beiden Ergebnisse in jeder Behandlungsgruppe zu zählen, und verwenden Sie einen Chi-Quadrat-Test der Unabhängigkeit, um eine Beziehung zwischen Behandlung und Ergebnis zu testen. Um die Ergebnisse durch die Behandlungsgruppe zu zählen, müssen Sie Pivot-Tabellen verwenden. Aktivieren Sie in der Option Pivot Table Wizards Layout die Option Treatment to Row, Outcome to Column und auch Data. Der Datenbereich sollte sagen, quotCount of Outcomequot ndash wenn nicht, doppelklicken Sie darauf und wählen Sie quotCountquot. Wenn Sie prozentstellen möchten, doppelklicken Sie auf quotCount of Outcomequot, und klicken Sie auf Optionen in der ldquoShow Data Asrdquo-Box, die angezeigt wird, wählen Sie aus rowquot. Wenn du beide Zählungen und Prozente willst, kannst du dieselbe Variable zweimal in den Datenbereich ziehen und ihn einmal für Zählungen und einmal für Prozente verwenden. Das Erhalten des Chi-Quadrat-Tests ist aber nicht so einfach. Es ist nur als Funktion verfügbar, und die für die Funktion benötigte Eingabe ist die beobachtete Anzahl in jeder Kombination von Behandlung und Ergebnis (die Sie in Ihrer Pivot-Tabelle haben) und die erwarteten Zählungen in jeder Kombination. Erwartete Zähler Was sind sie Wie bekommst du sie Wenn du genügend statistischen Hintergrund hast, um zu wissen, wie man die erwarteten Zählungen berechnet und Excel-Berechnungen mit relativen und absoluten Zellenadressen ausführen kann, solltest du in der Lage sein, durch diese zu navigieren. Wenn nicht, bist du aus Glück. Angenommen, Sie haben das Problem der erwarteten Zählungen überwunden, können Sie die Chitest-Funktion verwenden, um die Wahrscheinlichkeit zu erhalten, einen chi-quadratischen Wert zu beobachten, der größer ist als der für diese Tabelle. Wiederum, da wir Funktionen verwenden, bekommst du nicht viele andere notwendige Stücke der Berechnung, insbesondere den Wert der Chi-Quadrat-Statistik oder ihre Freiheitsgrade. Kein statistisches Paket würde es erforderlich machen, die erwarteten Werte vor der Berechnung eines Chi-Quadrat-Tests der Unabhängigkeit zu liefern. Weiterhin würden die Ergebnisse immer die Chi-Quadrat-Statistik und ihre Freiheitsgrade sowie ihre Wahrscheinlichkeit beinhalten. Oft bekommst du auch weitere Statistiken. Zusätzliche Analysen Die verbleibenden Analysen wurden nicht auf diesem Datensatz durchgeführt, aber einige Kommentare über sie sind für die Vollständigkeit enthalten. Einfache Frequenzen Sie können Pivot-Tabellen verwenden, um einfache Frequenzen zu erhalten. (Siehe Kreuztabellen für mehr darüber, wie man Pivot-Tabellen erhält.) Mit Pivot-Tabellen wird jede Spalte als eine separate Variable betrachtet, und die Etiketten in Zeile 1 erscheinen auf der Ausgabe. Sie können nur eine Variable zu einem Zeitpunkt. Eine weitere Möglichkeit besteht darin, die Frequency-Funktion zu verwenden. Der Hauptvorteil dieser Methode ist, dass, sobald Sie die Frequenzen Funktion für eine Spalte definiert haben, können Sie CopyPaste verwenden, um es für andere Spalten zu erhalten. Zuerst müssen Sie eine Spalte mit den Werten eingeben, die Sie gezählt haben (Bins). Wenn Sie beabsichtigen, die Frequenzen für viele Spalten zu machen, müssen Sie die Werte für die Spalte mit den meisten Kategorien eingeben. z. B. Wenn 3 Spalten Werte von 1 oder 2 haben und die vierte Werte von 1,2,3,4 haben, müssen Sie die Bin-Werte als 1,2,3,4 eingeben. Wählen Sie nun genügend leere Zellen in einer Spalte aus, um die Ergebnisse zu speichern - 4 in diesem Beispiel, auch wenn die aktuelle Spalte nur 2 Werte hat. Als nächstes wählen Sie InsertFunctionStatisticalFrequencies im Menü. Füllen Sie den Eingabebereich für die erste Spalte aus, die Sie mit relativen Adressen zählen möchten (z. B. A1: A100). Füllen Sie den Bin Range mit den absoluten Adressen der Orte aus, an denen Sie die zu zählenden Werte eingegeben haben (z. B. M1: M4). Klicken Sie auf Fertig stellen. Beachten Sie die Box über den Spaltenüberschriften des Blattes, wo die Formel angezeigt wird. Es beginnt mit FREQUENZEN (platzieren Sie den Cursor links neben dem Schild in die Formel und drücken Sie Strg-Shift-Enter. Die Häufigkeit zählt nun in den ausgewählten Zellen. Um die Häufigkeitszählungen anderer Spalten zu erhalten, wählen Sie Die Zellen mit den Frequenzen in ihnen, und wählen Sie EditCopy im Menü. Wenn die nächste Spalte, die Sie zählen möchten, eine Spalte rechts neben der vorherigen ist, wählen Sie die Zelle rechts neben der ersten Frequenzzelle aus und wählen Sie EditPaste ( Ctrl-V) Weiter geht es nach rechts und fügt für jede Spalte ein, die du zählen möchtest. Jedes Mal, wenn du eine Spalte rechts von den ursprünglichen Frequenzzellen verschiebst, wird die zu zählende Spalte direkt von der ersten Spalte verschoben, die du gezählt hast. Wenn Sie auch Prozente wünschen, müssen Sie mit der Summenfunktion die Summe der Frequenzen berechnen und die Formel definieren, um den Prozentsatz für eine Zelle zu erhalten. Wählen Sie die Zelle aus, um den ersten Prozentsatz zu speichern und geben Sie die Formel in die Formel ein Box an der Oberseite des Blattes - zB N1100N5 - wobei N1 die Zelle mit der Frequenz für die erste Kategorie ist und N5 die Zelle mit der Summe der Frequenzen ist. Verwenden Sie CopyPaste, um die Formel für die verbleibenden Zellen der ersten Spalte zu erhalten. Sobald Sie die Prozente für eine Spalte haben, können Sie sie in die anderen Spalten kopieren. Ihr Squoll muss vorsichtig sein über die Verwendung von relativen und absoluten Adressen Im obigen Beispiel haben wir N5 für den Nenner verwendet, also wenn wir die Formel auf die nächste Frequenz auf der gleichen Spalte kopieren, wird sie immer noch nach der Summe in Zeile suchen 5 aber wenn wir die Formel rechts in eine andere Spalte kopieren, wird sie auf die Frequenzen in der nächsten Spalte verschoben. Schließlich können Sie Histogramm im Menü Datenanalyse verwenden. Sie können nur eine Variable zu einem Zeitpunkt. Wie bei der Frequency-Funktion müssen Sie eine Spalte mit quotbinquot-Grenzen eingeben. Um die Anzahl der Vorkommen von 1 und 2 zu zählen, müssen Sie 0,1,2 in drei benachbarten Zellen eingeben und den Bereich dieser drei Zellen als die Bins auf dem Dialogfeld geben. Die Ausgabe ist nicht mit Etiketten versehen, die Sie in Zeile 1 haben können, noch einmal mit dem Spaltenbrief. Wenn du Frequenzen auf vielen Variablen machst, hast du Schwierigkeiten zu wissen, welche Frequenz zu welcher Spalte von Daten gehört. Lineare Regression Da Regression eine der häufigeren statistischen Analysen ist, haben wir es ausprobiert, obwohl wir für dieses Beispiel keine Regressionsanalyse gemacht haben. Mit dem Regressionsverfahren in den Datenanalyse-Tools können Sie eine Spalte als abhängige Variable und einen Satz von zusammenhängenden Spalten für die Unabhängigen auswählen. Allerdings toleriert es keine leeren Zellen irgendwo in den Eingangsbereichen, und Sie sind auf 16 unabhängige Variablen beschränkt. Wenn Sie also leere Zellen haben, müssen Sie alle Spalten, die an der Regression beteiligt sind, in neue Spalten kopieren und alle Zeilen löschen, die leere Zellen enthalten. Große Modelle, mit mehr als 16 Prädiktoren, können gar nicht gemacht werden. Analyse der Abweichung Im Allgemeinen sind die Excels ANOVA-Features auf einige spezielle Fälle beschränkt, die selten außerhalb von Lehrbüchern gefunden wurden und viele Datenreorganisationen erfordern. Einweg-ANOVA-Daten müssen für jede Gruppe in separaten und benachbarten Spalten (oder Zeilen) angeordnet sein. Klar, das ist nicht förderlich für 1-Wege auf mehr als einer Gruppierung zu tun. Wenn Sie Etiketten in Zeile 1 haben, wird die Ausgabe die Etiketten verwenden. Zwei-Faktor-ANOVA ohne Replikation Dies ist nur der Fall mit einer Beobachtung pro Zelle (d. H. Kein Innerhalb des Zellfehlerbegriffs). Der Eingangsbereich ist eine rechteckige Anordnung von Zellen, wobei Zeilen Werte von einem Faktor darstellen, Spalten der Ebenen des anderen Faktors und der Zelleninhalt den einen Wert in dieser Zelle. Zwei-Faktor-ANOVA mit Replikaten Dies macht eine Zwei-Wege-ANOVA mit gleichen Zellengrößen. Input muss eine rechteckige Region mit Spalten sein, die die Ebenen eines Faktors darstellen, und Zeilen, die Wiederholungen innerhalb der Ebenen des anderen Faktors darstellen. Der Eingangsbereich muss auch eine zusätzliche Zeile an der Spitze und Spalte auf der linken Seite, mit Etiketten, die die Faktoren. Diese Etiketten werden jedoch nicht verwendet, um die resultierende ANOVA-Tabelle zu kennzeichnen. Klicken Sie auf Hilfe im ANOVA-Dialog für ein Bild von dem, was der Eingabebereich aussehen muss. Anfordern vieler Analysen Wenn Sie eine Vielzahl von verschiedenen statistischen Prozeduren hatten, die Sie auf Ihren Daten ausführen wollten, würden Sie sich mit Sicherheit sehr viel sortieren, neu anordnen, kopieren und einfügen von Ihren Daten. Dies ist, weil jede Prozedur erfordert, dass die Daten in einer bestimmten Weise angeordnet werden, oft anders als die andere Prozedur will die Daten angeordnet. In unserem kleinen Test mussten wir die Zeilen sortieren, um den t-Test zu machen und einige Zellen zu kopieren, um Etiketten für die Ausgabe zu erhalten. Wir mussten den Inhalt einiger Zellen löschen, um den korrekten gepaarten t-Test zu bekommen, aber wollten nicht, dass diese Zellen für einen anderen Test freigegeben wurden. Und wir machten nur fünf Aufgaben. Es wird nicht besser, wenn man versucht, mehr zu machen. Es gibt keine einzige Anordnung der Daten, die es Ihnen erlauben würde, viele verschiedene Analysen zu machen, ohne viele verschiedene Kopien der Daten zu machen. Die Notwendigkeit, die Daten in vielerlei Hinsicht zu manipulieren, erhöht die Chance, Fehler einzuführen. Unter Verwendung eines statistischen Programms würden die Daten normalerweise mit den Zeilen, die die Themen repräsentieren, und die Spalten, die Variablen darstellen (wie sie in unseren Beispieldaten sind) angeordnet. Mit dieser Anordnung können Sie irgendwelche der hier besprochenen Analysen und viele andere auch machen, ohne Ihre Daten in irgendeiner Weise sortieren oder neu anordnen zu müssen. Nur viel komplexere Analysen, jenseits der Fähigkeiten von Excel und der Umfang dieses Artikels würde eine Datenumlagerung erfordern. Arbeiten mit vielen Spalten Was wäre, wenn Ihre Daten nicht 4, sondern 40 Spalten mit einer Mischung aus kategorischen und kontinuierlichen Maßnahmen haben Wie leicht die oben genannten Prozeduren auf ein größeres Problem skalieren Im besten Fall können einige der statistischen Prozeduren mehrere zusammenhängende Spalten für die Eingabe akzeptieren , Und interpretiere jede Spalte als eine andere Maßnahme. Die Beschreibungs - und Korrelationsverfahren sind von diesem Typ, so dass Sie beschreibende Statistiken oder Korrelationen für eine große Anzahl von kontinuierlichen Variablen anfordern können, solange sie in benachbarten Spalten eingegeben werden. Wenn sie nicht angrenzend sind, müssen Sie Spalten neu anordnen oder Kopieren und Einfügen verwenden, um sie angrenzend zu machen. Viele Verfahren können jedoch nur einmal auf eine Spalte angewendet werden. T-Tests (entweder unabhängig oder gepaart), einfache Häufigkeit zählt, die Chi-Quadrat-Test der Unabhängigkeit, und viele andere Verfahren sind in dieser Klasse. Dies würde ein ernster Nachteil werden, wenn Sie mehr als eine Handvoll Spalten hatten, auch wenn Sie Schnitt und Paste oder Makros verwenden, um die Arbeit zu reduzieren. Neben der Wiederholung der Anfrage viele Male, müssen Sie entscheiden, wo die Ergebnisse von jedem zu speichern, und stellen Sie sicher, dass es richtig beschriftet ist, so können Sie leicht lokalisieren und identifizieren jede Ausgabe. Schließlich gibt Excel Ihnen nicht ein Protokoll oder einen anderen Datensatz, um zu verfolgen, was Sie getan haben. Dies kann ein ernsthafter Nachteil sein, wenn Sie in der Lage sein werden, die gleiche (oder ähnliche) Analyse in der Zukunft zu wiederholen, oder auch wenn Sie einfach vergessen, was Sie bereits getan haben. Mit einem statistischen Paket können Sie einen Test für so viele Variablen anfordern, wie Sie es einmal benötigen. Jeder wird ordnungsgemäß etikettiert und in der Ausgabe angeordnet, also gibt es keine Verwirrung, was was ist was. Sie können auch erwarten, ein Protokoll zu bekommen, und oft auch eine Reihe von Befehlen, die verwendet werden können, um Ihre Arbeit zu dokumentieren oder eine Analyse zu wiederholen, ohne dass Sie alle Schritte durchlaufen müssen. Obwohl Excel eine feine Kalkulationstabelle ist, ist es kein statistisches Datenanalysepaket. In aller Fairness war es niemals gedacht, eins zu sein. Denken Sie daran, dass die Data Analysis ToolPak ist ein quotadd-inquot - eine zusätzliche Funktion, die Ihnen ermöglicht, ein paar schnelle Berechnungen zu tun. Also sollte es nicht überraschen, dass das genau das ist, was es gut ist - ein paar schnelle Berechnungen. Wenn Sie versuchen, es für umfangreichere Analysen zu verwenden, werden Sie Schwierigkeiten aufgrund einer oder aller der folgenden Einschränkungen auftreten: Mögliche Probleme bei Analysen mit fehlenden Daten. Diese können heimtückisch sein, da der unerwünschte Benutzer unwahrscheinlich ist, dass alles falsch ist. Mangel an Flexibilität bei Analysen, die aufgrund ihrer Erwartungen bezüglich der Anordnung der Daten durchgeführt werden können. Dies führt zu einer Notwendigkeit, das Datenblatt auf verschiedene Weise zu verkleinern und anderweitig neu zu ordnen, wodurch die Wahrscheinlichkeit von Fehlern erhöht wird. Ausgabe, die in vielen verschiedenen Arbeitsblättern verstreut ist, oder über ein Arbeitsblatt, auf das Sie die Verantwortung für die ordnungsgemäße Anordnung übernehmen müssen. Die Ausgabe kann unvollständig sein oder ist möglicherweise nicht ordnungsgemäß gekennzeichnet, wodurch die Möglichkeit einer fehlerhaften Identifizierung erhöht wird. Sie müssen die Anfragen für einige Analysen mehrmals wiederholen, um sie für mehrere Variablen auszuführen oder um mehrere Optionen anzufordern. Brauchen Sie etwas zu tun, indem Sie Ihre eigenen Funktionsformeln definieren, mit dem damit verbundenen Fehlerrisiko. Keine Aufzeichnung von dem, was du getan hast, um deine Ergebnisse zu erzeugen, was es schwierig macht, deine Analyse zu dokumentieren oder sie zu einem späteren Zeitpunkt zu wiederholen, falls dies notwendig ist. Wenn du mehr als etwa 10 oder 12 Spalten hast und nichts über deskriptive Statistiken und vielleicht auch Korrelationen machen möchtest, solltest du ein statistisches Paket verwenden. Es gibt mehrere geeignete, die durch Site-Lizenz über OIT verfügbar sind, oder Sie können sie in einem der OIT PC Labs verwenden. Wenn Sie Excel auf Ihrem eigenen PC haben und nicht für ein statistisches Programm bezahlen möchten, verwenden Sie Excel mit Excel, um die Daten einzugeben (mit Zeilen, die die Themen repräsentieren, und Spalten für die Variablen). Alle erwähnten statistischen Pakete können Excel-Dateien lesen, so können Sie die (zeitraubende) Dateneingabe zu Hause durchführen und in die Labore gehen, um die Analyse durchzuführen. Eine viel umfangreichere Diskussion über die Fallstricke bei der Verwendung von Excel, mit vielen zusätzlichen Links, ist bei burns-stat verfügbar. Klicken Sie auf Tutorials, dann Spreadsheet Addiction. Für Hilfe oder weitere Informationen über statistische Software wenden Sie sich bitte an das Biostatistics Consulting Center. Telefon 545-2949Von 20:00 Uhr CST Freitag, 24. Februar - 18:00 Uhr CST Samstag, 25. Februar, ni wird in System-Upgrades, die zu temporären Service-Unterbrechung führen können. Wir hoffen jedoch, dass sie bei Ihrer Reiseplanung weiterhilft. Umzug vor Microsoft Excel für Messdatenanalyse und Reporting Publish Date: 18, 2014 44 4,39 5 Drucken Aufgrund der weit verbreiteten Verfügbarkeit ist Microsoft Excel oft die de facto Auswahl an Ingenieuren und Wissenschaftlern, die Software für die Messdatenanalyse benötigen Manipulation. Microsoft Excel eignet sich gut für extrem einfache Test - und Messanwendungen und die finanziellen Verwendungen, für die es aber in einer Ära entworfen wurde, wenn Unternehmen gezwungen sind, mehr mit weniger zu tun, die Auswahl der geeigneten Werkzeuge zur Maximierung der Effizienz (wodurch Kosten senken) ist zwingend erforderlich . Nur weil Microsoft Excel bereits auf Ihrem Computer installiert ist, macht es nicht das richtige Werkzeug für jeden Job. National Instruments DIAdem Software, die speziell für die Verwaltung, Inspektion, Analyse und Berichterstattung von erworbenen oder simulierten Ingenieur - und wissenschaftlichen Daten erstellt wurde, bietet Effizienzgewinne und Skalierbarkeit mit Funktionen, die die Beschränkungen von Excel in den meisten Daten nach der Verarbeitung überwinden. Inhaltsverzeichnis 1. Unterschiede in den Grundbausteinen: Zellen gegen Kanäle Microsoft Excel nutzt die Zelle als grundlegenden Baustein.160 Zellen bilden Zeilen und Spalten, um eine Tabellenkalkulation zu erstellen, eine Architektur, die für Budgets und Bilanzen ideal ist.160 Einfache , Single-Point-Datenerfassungsanwendungen, zum Beispiel, diejenigen, die einen einzelnen Datenpunkt pro Stunde im Laufe eines Tages sammeln, sind oft leicht auf diese Architektur abgebildet, da jeder einzelne Datenpunkt mehr Bedeutung hat, wenn weniger Datenpunkte gesammelt werden.160 Jede Daten Punkt existiert als Zelle in einer Kalkulationstabelle und muss mit Excels zellbasiertem Paradigma manipuliert werden. Die meisten Datenerfassungsanwendungen sind jedoch nicht trivial.160 Anwendungen, die Dutzende von Datenkanälen bei Mega-Sample-per-Sekunde (MSs) sammeln, sind alltäglich.160 In diesen Anwendungen werden Datenmanipulation und Interaktion auf einem Signal oder Kanal durchgeführt A whole.160 Bei der Manipulation von Kanälen in Excel als Spalten einzelner Zellen geht die Einheit eines Signals verloren.160 Obwohl ganze Excel-Spalten gleichzeitig manipuliert werden können, ist dies mit längeren Spalten umständlicher.160 Auch Spalten enthalten oft beschreibend Informationen wie einen Namen oder eine Einheit zusätzlich zu den rohen numerischen Daten.160 In diesem Fall muss eine Teilmenge der Spalte ausgewählt werden (z. B. der Bereich A2: A99), die Einleitung von Overhead und das Potential für Ungenauigkeiten oder Fehler. In Abbildung 1 Excel wird verwendet, um eine einfache, aber häufige Ingenieuraufgabe durchzuführen: Mittelwertbildung von fünf Temperaturkanälen, die in Spalten gespeichert sind, um einen resultierenden Durchschnittskanal zu erzeugen.160 Die Mittelwertberechnung muss zuerst mit dem Baustein einer Zelle durchgeführt und dann kopiert (oder gefüllt) werden Alle Zellen in der resultierenden Spalte.160 Mit DIAdem, der den Kanal als Grundbaustein verwendet, ist die Mittelung der Kanäle so einfach wie das Ziehen und Ablegen von Eingangskanälen in die Funktion Mittelkanäle, wie in Abbildung 2 dargestellt .160 Einzelne Datenpunkte Kann bei Bedarf auch bei DIAdem manipuliert werden. Abbildung 1 . Microsoft Excel verwendet die Zelle als grundlegenden Baustein.160 Auch eine einfache Datenanalyse muss auf eine Zelle angewendet werden und dann für alle Zellen in einer Spalte (Kanal) wiederholt werden. Figur 2 . NI DIAdem arbeitet mit dem Baustein von a160kanal.160 Die Mittelung ist so einfach wie das Ziehen und Ablegen ganzer Datenkanäle anstelle der unnötigen Manipulation einzelner Datenpunkte. 2. Hunderte von Engineering - und wissenschaftlichen Analysenberechnungen Während die Anzahl der verfügbaren Formeln für finanzorientierte Berechnungen in Excel umfangreich ist, müssen Sie ein optionales Add-In als Analysis Toolpak für den Zugriff auf einige Engineering - und statistische Berechnungen konfigurieren.160 Die Analyse Toolpak-Funktionen sind, wie in Abbildung 3 gezeigt, mit der gängigen Engineering-Berechnung Fast Fourier Transform (FFT) extrem begrenzt .160 Im Allgemeinen erfüllt Excels Analyse-Fähigkeiten oft nicht die Anforderungen von wissenschaftlichen oder technischen Anwendungen.160 Für weitere Erweiterbarkeit bietet Excel eine Robuste Visual Basic für Applikationen (VBA) - Motor und eine hervorragende VBA-Editing-Umgebung, die es Ihnen ermöglicht, Ihre eigenen Engineering-Berechnungen von Grund auf neu zu schreiben, wenn Excels eingebaute Funktionen für Ihre Anwendung nicht ausreichen. Abbildung 3 Microsoft Excel bietet eine umfassende Reihe von finanzbasierten Berechnungen und ermöglicht es Ingenieuren, ihren eigenen Code zu schreiben, um ihre Anwendungsbedürfnisse zu erfüllen. In DIAdem wurden Hunderte von Ingenieur - und Wissenschaftsanalyse-Berechnungen von einfacher Ergänzung zu komplexer Matrixmanipulation und Auftragsanalyse in die Umgebung aufgenommen.160 Die Analysefunktionen in DIAdem sind projektionsbasiert, es ist keine Programmierung erforderlich, um auch komplexe Analysen wie Digital Filtering durchzuführen , Wie in Abbildung 4 dargestellt .160 Darüber hinaus enthalten DIAdem-Analyse-Funktionen vollständige Vorschau der Analysenergebnisse, so dass Sie fehlerhafte Berechnungen vermeiden können, indem Sie sicherstellen, dass Sie die korrekten Parameter vor dem Ausführen jeder Berechnung verwenden. Abbildung 4 DIAdem umfasst Hunderte von Analysefunktionen, die für Wissenschaftler und Ingenieure spezifisch sind.160 Jede Berechnung ist konfigurationsbasiert und bietet eine Vorschau der resultierenden Kanäle, so dass Sie mit Parametern interagieren können, um Genauigkeit zu gewährleisten und Fehler zu reduzieren. DIAdem enthält auch ein Framework für die Erstellung eigener Domain-spezifischer Berechnungen namens Calculation Manager, und es enthält eine integrierte Visual Basic Scripting-Schnittstelle für die Sequenzierung eingebauter DIAdem Berechnungen oder die Definition Ihrer eigenen benutzerdefinierten Berechnungen. 3. Laden und Manipulieren großer Datenmengen Datenübertragungsgeschwindigkeiten von gemeinsamen Anwendungen erreichen oder übersteigen MSs-Raten.160 In einer Anwendung, die einen einzigen Datenkanal bei 1 MS sammelt, werden insgesamt 1.000.000 Datenpunkte in einer Ein-Sekunden-Akquisition gesammelt . In wenigen Minuten können Milliarden von Datenpunkten auf Gigabyte Festplattenspeicher gespeichert werden. Wenn Microsoft Excel versucht, eine Datendatei mit einem großen Datenvolumen zu laden, versucht es, jeden einzelnen Datenpunkt in den Speicher zu laden.160 Mit der Freigabe der 64-Bit-Version von Microsoft Excel 2010 ist dies weniger eine Einschränkung Die Anwendung hat einen größeren adressierbaren Speicherplatz, aber das Laden der Gesamtheit eines großen Datensatzes in Excel kann oft viele Minuten dauern, da das Datenelement, das geladen werden muss, viele Minuten benötigt.160 Darüber hinaus speichert Excel nicht nur numerische Werte in jeder Zelle Aber auch numerische Formatierung, Zellformatierung, Formeln, Tabellenkalkulationen, Internet-Hyperlinks und Kommentare.160 Diese zellzentrische Flexibilität eignet sich ideal für Business-Tabellen, bei denen die Sichtbarkeit auf Zellenebene entscheidend ist, aber es fügt einen zusätzlichen Speicher-Overhead für Datensätze mit Millionen von Werten hinzu . 160 Um potenzielle Speicherprobleme zu vermeiden, setzt Excel eine Höchstzahl von 160rows und Spalten ein.160 Die Einführung von Excel 2007 erhöhte die Gesamtzahl der Zeilen pro Arbeitsblatt von 65.536 auf knapp über 1.000.000 (2 20. genauer) und die Gesamtmenge Anzahl der Säulen von 256 bis 16.384 (2 14) .160 Mit den Abbildungen 5 und 6. Kontrast zeichnet die Zeilen - und Spaltenbegrenzung mit DIAdems Fähigkeit, 500.000.000 Zeilen (Punkte) als nur einen Bruchteil ihrer Begrenzung zu manipulieren.160 Abbildung 5. Excel kann nur knapp über 1 Million Zeilen Daten für eine beliebige Spalte laden.160 Dies ist eine Einschränkung für Wissenschaftler und Ingenieure. Abbildung 6 DIAdem kann problemlos extrem große Datensätze handhaben.160 Dieses Bild zeigt ein Beispiel von 500.000.000 (ein halb Milliarden) Datenpunkten in einem Kanal - 500-fache der maximalen Anzahl von Zeilen, die von Excel erlaubt sind. Wie in Abbildung 5 gezeigt. Eine Erfassungsrate von 1 MS mit einem einzigen Kanal würde die Anzahl der Datenpunkte überschreiten, die Excel in knapp über einer Sekunde der Akquisition belasten könnte.160 Viele Ingenieure und Wissenschaftler fühlen sich gezwungen, die Einschränkungen ihrer Daten nach der Verarbeitung zu erlauben, um die zu diktieren Begriffe ihrer Akquisition und reduzieren entweder Akquisitionsraten oder Segment Akquisitionen über zahlreiche Datendateien, die Einführung eines Albums für Datenmanagement und Organisation. DIAdem wurde entwickelt, um Messdaten sowohl in kleinen als auch in großen Volumina zu manipulieren und kann bis zu 2.000.000.000 Datenpunkte (2 31) pro Kanal über 65.536 (2 16) Gesamtdatenkanäle verarbeiten.160 Darüber hinaus umfasst DIAdem160 selektive Beladung, Datenreduktion und Register Die speziell für die Arbeit mit extrem großen Datensätzen entwickelt wurden.160 DIAdem kann selektiv eine Teilmenge der in einer Datendatei enthaltenen Datenkanäle laden, während Excel immer alle Spalten aus einer Datendatei importiert.160 Wenn Sie nur 1 laden müssen Kanal aus einer sehr großen Datendatei mit 10 Kanälen, Laden nur die 10 der Datenwerte, die Sie tatsächlich benötigen, ist viel schneller und effizienter als Excels Methode zum Laden von 100 der Daten, wenn 90 Overhead ist.160 Wenn Dateien geladen werden Mit Datenreduktion lädt DIAdem Daten aus einem ausgewählten Zeilenbereich und kondensiert alle N Zeilen in einen repräsentativen Wert, während Excel immer alle Datenzeilen lädt.160 Wenn Dateien registriert werden, verwendet DIAdem die vorhandene Datendatei auf der Festplatte als Vorort Virtuelles memoryDIAdem lädt nicht alle Werte aus der Datendatei auf einmal, sondern registriert stattdessen, wie man auf Datenblöcke auf Anforderung zugreifen kann.160 Dies macht die registrierten Kanäle nur 160, aber es ermöglicht eine sehr schnelle Darstellung und Inspektion von extrem großen Daten Setzt, wie in Abbildung 6 gezeigt. Sehen Sie sich eine Benutzerlösung an, wie DIAdem massive Datenmengen verarbeitet, um die Erdbebenaktivität vorhersagen und überwachen zu können. 4. Flexibilität im Dateispeicherformat Anwendungen, die Daten mit hohen Streaming-Raten sammeln und speichern, müssen Daten mit einem streamingfähigen Dateiformat auf die Festplatte schreiben.160 Binäre Dateiformate werden am häufigsten verwendet, da sie nicht den fremden Overhead enthalten, der für die Erstellung einer Datei erforderlich ist Menschlich lesbar die Art und Weise, wie ASCII-Dateien durchgeführt werden.160 Ein Vergleich der gängigen Dateiformate, einschließlich des offenen Binärformatstandards zur National Instruments Software mit dem Namen Technical Data Management Streaming (TDMS), ist in Tabelle 1 dargestellt. 160160160160160 Tabelle 1 Es gibt viele Dateiformat-Optionen zur Verfügung, aber binäre Dateiformate wie TDMS sind die einzigen Formate, die High-Speed-Streaming-fähig sind. Kann ein Toolkit - oder Add-on-Modul benötigen. DIAdem ist flexibel genug, um jedes benutzerdefinierte Dateiformat einschließlich benutzerdefinierter Binärdateiformate zu lesen, und zwar aufgrund von modularen Codepaketen namens DataPlugins, die wissen, wie man den Inhalt einer Datendatei analysiert und interpretiert.160 DataPlugins formatieren auch die analysierten Daten aus der jeweiligen Datendatei in Eine gemeinsame Datenstruktur innerhalb von DIAdem, die es einfach macht, Daten aus verschiedenen Dateiformaten zu vergleichen.160 National Instruments hat kostenlose herunterladbare DataPlugins für Hunderte der am häufigsten verwendeten Datendateiformate veröffentlicht und es gibt veröffentlichte APIs für LabVIEW und VBScript für Sie Um DataPlugins für eigene Legacy-Datendateien zu erstellen.160 Dies ermöglicht es DIAdem, modular und skalierbar genug zu sein, um alle aktuellen, legacy - oder zukünftigen Dateiformat-Optionen zu behandeln. Im Gegensatz dazu, während Excel ASCII-Dateien lesen kann, ist es in der Regel völlig unfähig, Daten aus Binärdateien zu laden.160 Auch wenn Excel erfolgreich eine ASCII-Datei lädt, hat es nur begrenzte Fähigkeit, die Eigenschaft und die Kanalstruktur der Datendatei korrekt zu interpretieren. Bisher ist eine zeitraubende Neuformatierung der importierten ASCII-Daten notwendig, bevor sie überhaupt verwendet werden kann.160 Eine Ausnahme von diesem Problem ist das 160TDMS-Dateiformat von 160National Instruments, das Excel mit korrekter Formatierung der Struktur, Eigenschaften und Daten aus der TDMS-Datei, mit160 das kostenlose TDM Excel Add-In. Besuchen Sie die TDMS-Homepage, um mehr über das TDMS-Dateiformat zu erfahren, um Messdaten auf Festplatte zu speichern. 5. Eingebaute Werkzeuge für Datenmanagement und Trending Im Laufe der Zeit ist es üblich, zu speichern und zu versuchen, Hunderte oder Tausende von Datendateien auf Diskette zu organisieren.160 Diese Dateien werden oft auf unterschiedliche Weise mit verschiedenen Formaten gespeichert und können sogar gespeichert werden An verschiedenen Orten auf einer lokalen Maschine oder über ein Netzwerk. Wenn Sie Daten über mehrere Datendateien mit Hilfe von Microsoft Excel tippen möchten, müssen Sie jede einzelne Datendatei öffnen, die entsprechenden Spalten kopieren und in eine Masterdatei (aggregierte) Datei einfügen und auf die nächste Datendatei umschalten.160 Genaues Trending ähnlich Datenkanäle über hunderte von eindeutigen Datendateien können Tage oder Wochen dauern. DIAdem kann diese Aufgabe in Sekunden erreichen.160 Mit DataPlugins kann DIAdem diese verschiedenen Dateiformate in eine gemeinsame importierte Struktur für einheitliche Analyse und Reporting laden. Darüber hinaus installiert DIAdem eine Technologie namens My DataFinder, die Ihnen hilft, die genauen Datensätze, die Sie suchen, schnell zu lokalisieren und zu isolieren, auch wenn sie sich in verschiedenen Dateien befinden, wie in Abbildung 7 dargestellt. 160 My DataFinder erstellt automatisch einen Index der beschreibenden Informationen Enthalten in Datendateien, die innerhalb von DIAdem durchsucht werden können.160 Mit Hilfe der DIAdem - und DataFinder-Technologie können Sie schnell alle Datendateien finden, die von einem bestimmten Operator geschrieben wurden, alle fehlgeschlagenen Tests finden oder sogar alle Datenkanäle über alle gespeicherten Datendateien identifizieren Mit einer bestimmten Art von Sensor.160 Je mehr Informationen Sie in Ihren Datendateien dokumentieren, desto mehr Möglichkeiten stehen zur Verfügung, wenn Sie nach bestimmten Daten suchen, die über mehrere Dateien in verschiedenen Ordnern und in Dateiformaten gespeichert sind. Abbildung 7 In dieser Abfrage hat der DataFinder Datenkanäle über alle Datendateien hinweg lokalisiert, die mit einem J-Type Thermoelement gesammelt und auf dem Datenträger von Jennifer, dem Operator, gespeichert wurden. Sehen Sie sich einen Webcast an, der DIAdem und den NI DataFinder für Datenmanagement, Analyse und Reporting demonstriert. 6. Datenprüfung und Synchronisation Mit Microsoft Excel können Benutzer grundlegende Diagramme und Graphen erstellen, aber statische Graphen erlauben es Ihnen nicht, vollständig mit den Daten zu interagieren und zu überprüfen, die über die Zeit gemessen wurden.160 Zum Beispiel ist es unmöglich, korrelierte Messdaten zu visualisieren Und GPS160data mit integrierten Tools in Excel. Um alle Aspekte zeitbasierter Messungen vollständig zu charakterisieren, verfügt DIAdem über ein leistungsstarkes Visualisierungswerkzeug mit voll synchronisierbaren Displaybereichen, ideal für die Wiedergabe von Messungen, die mit Videos, 3D-Modellen, Achsensystemen, GPS-Kartenanzeigen, Konturen, Tonwiedergabe, Und mehr.160 Dies ermöglicht es Ihnen, eine Messung zu wiederholen, die mit anderen Informationen synchronisiert ist, um den Kontext vollständig zu verstehen.160 Das DIAdems-Visualisierungswerkzeug ermöglicht es Ihnen, einfach in eine bestimmte Region eines Graphen zu zoomen, Datenbereiche zu kopieren oder zu löschen oder zu interpolieren Genaue Werte von spezifischen Punkten grafisch.160 Mit diesem dynamischen Tool ist es leicht, interessierende Regionen zu identifizieren oder Ausreißer in größeren Datensätzen zu lokalisieren. Abbildung 8 . Mit DIAdem können Sie die Wiedergabe von Messdaten, Tondaten, GPS-Koordinaten, Videos und vieles mehr synchronisieren. 7. Was-Du-See-Is-What-You-Get (WYSIWYG) Berichtsvorlagen DIAdem verfügt über eine robuste Reporting-Engine, die wiederverwendbare Vorlagen verwendet, da viele Ingenieure die gleichen Berichte wiederholt mit unterschiedlichen Datensätzen erzeugen.160 Die WYSIWYG-Berichtsvorlagen in DIAdem Speichern von Referenzen auf Daten im Speicher, im Gegensatz zur Speicherung der tatsächlichen Datenwerte selbst. Um Berichte über verschiedene Datensätze mit der gleichen gespeicherten Berichtsvorlage zu erstellen, können Sie einfach die neuen Daten in den Speicher laden und die geladene Berichtsvorlage aktualisiert die 1601-Anzeige mit den neu geladenen Datenwerten sofort.160 Sie können dann die ausgefüllte, hochauflösende Publikation exportieren Berichte berichten über die gängigsten Berichtsformate wie PDF, PowerPoint, HTML, Image und vieles mehr. In Excel wird die Berichtsanzeige zusammen mit den Daten in einer gemeinsamen Tabellenkalkulation gespeichert, wodurch es viel schwieriger wird, eine bestimmte Berichtsanzeige für mehrere Datensätze zu verwenden. 160 Abbildung 9 DIAdem verfügt über einen WYSIWYG-Berichtseditor, der fertig exportierte Berichte identisch mit ihren Bearbeitungszeitvorlagen aussehen wird. 8. Interaktive Automatisierung Excel bietet eine leistungsstarke Umgebung für die Entwicklung von Makros.160 Mit dem Aufnahmemodus ist es möglich, Makros interaktive Aufzeichnungen aufzuzeichnen, die langwierige Auswertungen oder Berechnungen durchführen.160 DIAdem ähnlich160 verfügt über einen integrierten VBScript-Editor, einen Benutzerdialog-Editor und einen Skript Recorder, um interaktiv Scripts zu generieren, die langwierige Auswertungen oder Berechnungen automatisieren. 160160Unsere Scripting kann die gesamte DIAdem-Umgebung angepasst und automatisiert werden, so dass sich wiederholende Daten-Workflow-Prozesse, die Tage getan haben, in wenigen Minuten erreicht werden können.160 Dies maximiert die Effizienz von Ingenieuren und Wissenschaftlern und reduziert die Zeit, die sie benötigen, drastisch Um rohe Messdaten in nutzbare Informationen zu verwandeln. 9. Excel ist frei, aber zu teuer zu verwenden Microsoft Office wird von etwa 80 von Unternehmen verwendet1 .160 Viele Ingenieure und Wissenschaftler sehen Excel als freie Software, weil es auf den meisten Enterprise-Computern ohne Frage installiert ist.160 Oft beginnen Wissenschaftler und Ingenieure Verwenden Sie Excel für ihre Analyse und Berichterstattung Bedürfnisse, weil es vertraut und verfügbar ist.160 Wenn sie begegnen Excels Einschränkungen wie in Tabelle 2 zusammengefasst. Sie leben entweder mit oft wiederholten und zeitaufwendigen manuellen Verarbeitung oder verbringen Stunden und Wochen Entwicklung und Pflege von benutzerdefinierten Makro-Code. Wenn Sie schätzen, dass die Personalkosten (einschließlich Gehalt, Versicherung, Ausrüstung usw.) für einen Ingenieur insgesamt 100.000 jährlich, die Kosten für den Kauf einer Lizenz von DIAdem Advanced und eine ganze Woche des Trainings würde nach nur 2,8 Arbeitswochen von realisierten Produktivitätsgewinne erholt werden Über Microsoft Excel. Wie in diesem Dokument beschrieben, bezahlt sich NI DIAdem schnell, indem er die Beschränkungen von Excel überwindet und zusätzliche Effizienz-Tools für die Verwaltung, Analyse und160 Berichterstattung von Messdaten einführt.160160 Tabelle 2. DIAdem erhöht Ihre Effizienz durch Überwindung der Einschränkungen von Microsoft Excel. 10. Erfahren Sie mehr und bewegen Sie sich zu DIAdem Heute Verwenden Sie die Ressourcen unten, um mehr über das Überfahren über Excel zu leistungsfähigeren Tools für die Messung der Datenanalyse und Berichterstattung zu erfahren. Sehen Sie sich einen Webcast an, der DIAdems Vorteile für Datenmanagement, Analyse und Reporting bietet. Beobachten Sie sechs 1-minütige Videos, um mehr über DIAdem zu erfahren. Download DIAdem und erforsche die Umgebung mit einer kostenlosen 7-Tage-Bewertung. Sprechen Sie mit einem Experten für eine kostenlose Web-Demo oder um Ihre Fragen sofort beantwortet zu haben. Excel Für die statistische Datenanalyse Dies ist eine Webtext-Begleitseite von Geschäftsstatistiken USA Site Para defekt auf der Baustelle, este sitio se encuentra disponible en espaol en : Sitio Espejo para Amrica Latina Sitio de los EEUU Excel is the widely used statistical package, which serves as a tool to understand statistical concepts and computation to check your hand-worked calculation in solving your homework problems. The site provides an introduction to understand the basics of and working with the Excel. Redoing the illustrated numerical examples in this site will help improving your familiarity and as a result increase the effectiveness and efficiency of your process in statistics. To search the site . try E dit F ind in page Ctrl f. Enter a word or phrase in the dialogue box, e. g. quot variancequot or quot meanquot If the first appearance of the wordphrase is not what you are looking for, try F ind Next. Introduction This site provides illustrative experience in the use of Excel for data summary, presentation, and for other basic statistical analysis. I believe the popular use of Excel is on the areas where Excel really can excel. This includes organizing data, i. e. basic data management, tabulation and graphics. For real statistical analysis on must learn using the professional commercial statistical packages such as SAS, and SPSS. Microsoft Excel 2000 (version 9) provides a set of data analysis tools called the Analysis ToolPak which you can use to save steps when you develop complex statistical analyses. You provide the data and parameters for each analysis the tool uses the appropriate statistical macro functions and then displays the results in an output table. Some tools generate charts in addition to output tables. If the Data Analysis command is selectable on the Tools menu, then the Analysis ToolPak is installed on your system. However, if the Data Analysis command is not on the Tools menu, you need to install the Analysis ToolPak by doing the following: Step 1: On the Tools menu, click Add-Ins. If Analysis ToolPak is not listed in the Add-Ins dialog box, click Browse and locate the drive, folder name, and file name for the Analysis ToolPak Add-in Analys32.xll usually located in the Program FilesMicrosoft OfficeOfficeLibraryAnalysis folder. Once you find the file, select it and click OK. Step 2: If you dont find the Analys32.xll file, then you must install it. Insert your Microsoft Office 2000 Disk 1 into the CD ROM drive. Select Run from the Windows Start menu. Browse and select the drive for your CD. Select Setup. exe, click Open, and click OK. Click the Add or Remove Features button. Click the next to Microsoft Excel for Windows. Click the next to Add-ins. Click the down arrow next to Analysis ToolPak. Select Run from My Computer. Select the Update Now button. Excel will now update your system to include Analysis ToolPak. Launch Excel. On the Tools menu, click Add-Ins. - and select the Analysis ToolPak check box. Step 3: The Analysis ToolPak Add-In is now installed and Data Analysis. will now be selectable on the Tools menu. Microsoft Excel is a powerful spreadsheet package available for Microsoft Windows and the Apple Macintosh. Spreadsheet software is used to store information in columns and rows which can then be organized andor processed. Spreadsheets are designed to work well with numbers but often include text. Excel organizes your work into workbooks each workbook can contain many worksheets worksheets are used to list and analyze data. Excel is available on all public-access PCs (i. e. those, e. g. in the Library and PC Labs). It can be opened either by selecting Start - Programs - Microsoft Excel or by clicking on the Excel Short Cut which is either on your desktop, or on any PC, or on the Office Tool bar. Opening a Document: Click on File-Open (CtrlO) to openretrieve an existing workbook change the directory area or drive to look for files in other locations To create a new workbook, click on File-New-Blank Document. Saving and Closing a Document: To save your document with its current filename, location and file format either click on File - Save. If you are saving for the first time, click File-Save choosetype a name for your document then click OK. Also use File-Save if you want to save to a different filenamelocation. When you have finished working on a document you should close it. Go to the File menu and click on Close. If you have made any changes since the file was last saved, you will be asked if you wish to save them. The Excel screen Workbooks and worksheets: When you start Excel, a blank worksheet is displayed which consists of a multiple grid of cells with numbered rows down the page and alphabetically-titled columns across the page. Each cell is referenced by its coordinates (e. g. A3 is used to refer to the cell in column A and row 3 B10:B20 is used to refer to the range of cells in column B and rows 10 through 20). Your work is stored in an Excel file called a workbook. Each workbook may contain several worksheets andor charts - the current worksheet is called the active sheet. To view a different worksheet in a workbook click the appropriate Sheet Tab. You can access and execute commands directly from the main menu or you can point to one of the toolbar buttons (the display box that appears below the button, when you place the cursor over it, indicates the nameaction of the button) and click once. Moving Around the Worksheet: It is important to be able to move around the worksheet effectively because you can only enter or change data at the position of the cursor. You can move the cursor by using the arrow keys or by moving the mouse to the required cell and clicking. Once selected the cell becomes the active cell and is identified by a thick border only one cell can be active at a time. To move from one worksheet to another click the sheet tabs. (If your workbook contains many sheets, right-click the tab scrolling buttons then click the sheet you want.) The name of the active sheet is shown in bold. Moving Between Cells: Here is a keyboard shortcuts to move the active cell: Home - moves to the first column in the current row CtrlHome - moves to the top left corner of the document End then Home - moves to the last cell in the document To move between cells on a worksheet, click any cell or use the arrow keys. To see a different area of the sheet, use the scroll bars and click on the arrows or the area abovebelow the scroll box in either the vertical or horizontal scroll bars. Note that the size of a scroll box indicates the proportional amount of the used area of the sheet that is visible in the window. The position of a scroll box indicates the relative location of the visible area within the worksheet. Entering Data A new worksheet is a grid of rows and columns . The rows are labeled with numbers, and the columns are labeled with letters. Each intersection of a row and a column is a cell . Each cell has an address . which is the column letter and the row number. The arrow on the worksheet to the right points to cell A1, which is currently highlighted . indicating that it is an active cell . A cell must be active to enter information into it. To highlight (select) a cell, click on it. To select more than one cell: Click on a cell (e. g. A1), then hold the shift key while you click on another (e. g. D4) to select all cells between and including A1 and D4. Click on a cell (e. g. A1) and drag the mouse across the desired range, unclicking on another cell (e. g. D4) to select all cells between and including A1 and D4.To select several cells which are not adjacent, press control and click on the cells you want to select. Click a number or letter labeling a row or column to select that entire row or column. One worksheet can have up to 256 columns and 65,536 rows, so itll be a while before you run out of space. Each cell can contain a label . value . logical value . or formula . Labels can contain any combination of letters, numbers, or symbols. Values are numbers. Only values (numbers) can be used in calculations. A value can also be a date or a timeLogical values are true or false. Formulas automatically do calculations on the values in other specified cells and display the result in the cell in which the formula is entered (for example, you can specify that cell D3 is to contain the sum of the numbers in B3 and C3 the number displayed in D3 will then be a funtion of the numbers entered into B3 and C3). To enter information into a cell, select the cell and begin typing. Note that as you type information into the cell, the information you enter also displays in the formula bar. You can also enter information into the formula bar, and the information will appear in the selected cell. When you have finished entering the label or value: Press Enter to move to the next cell below (in this case, A2) Press Tab to move to the next cell to the right (in this case, B1)Click in any cell to select it Entering Labels Unless the information you enter is formatted as a value or a formula, Excel will interpret it as a label, and defaults to align the text on the left side of the cell. If you are creating a long worksheet and you will be repeating the same label information in many different cells, you can use the AutoComplete function. This function will look at other entries in the same column and attempt to match a previous entry with your current entry. For example, if you have already typed Wesleyan in another cell and you type W in a new cell, Excel will automatically enter Wesleyan. If you intended to type Wesleyan into the cell, your task is done, and you can move on to the next cell. If you intended to type something else, e. g. Williams, into the cell, just continue typing to enter the term. To turn on the AutoComplete funtion, click on Tools in the menu bar, then select Options, then select Edit, and click to put a check in the box beside Enable AutoComplete for cell values. Another way to quickly enter repeated labels is to use the Pick List feature. Right click on a cell, then select Pick From List. This will give you a menu of all other entries in cells in that column. Click on an item in the menu to enter it into the currently selected cell. A value is a number, date, or time, plus a few symbols if necessary to further define the numbers 91such as. - ( ) 93. Numbers are assumed to be positive to enter a negative number, use a minus sign - or enclose the number in parentheses (). Dates are stored as MMDDYYYY, but you do not have to enter it precisely in that format. If you enter jan 9 or jan-9, Excel will recognize it at January 9 of the current year, and store it as 192002. Enter the four-digit year for a year other than the current year (e. g. jan 9, 1999). To enter the current days date, press control and at the same time. Times default to a 24 hour clock. Use a or p to indicate am or pm if you use a 12 hour clock (e. g. 8:30 p is interpreted as 8:30 PM). To enter the current time, press control and : (shift-semicolon) at the same time. An entry interpreted as a value (number, date, or time) is aligned to the right side of the cell, to reformat a value. Rounding Numbers that Meet Specified Criteria: To apply colors to maximum andor minimum values: Select a cell in the region, and press CtrlShift (in Excel 2003, press this or CtrlA) to select the Current Region. From the Format menu, select Conditional Formatting. In Condition 1, select Formula Is, and type MAX(F:F) F1. Click Format, select the Font tab, select a color, and then click OK. In Condition 2, select Formula Is, and type MIN(F:F) F1. Repeat step 4, select a different color than you selected for Condition 1, and then click OK. Note: Be sure to distinguish between absolute reference and relative reference when entering the formulas. Rounding Numbers that Meet Specified Criteria Problem: Rounding all the numbers in column A to zero decimal places, except for those that have 5 in the first decimal place. Solution: Use the IF, MOD, and ROUND functions in the following formula: IF(MOD(A2,1)0.5,A2,ROUND(A2,0)) To Copy and Paste All Cells in a Sheet Select the cells in the sheet by pressing CtrlA (in Excel 2003, select a cell in a blank area before pressing CtrlA, or from a selected cell in a Current RegionList range, press CtrlAA). OR Click Select All at the top-left intersection of rows and columns. Press CtrlC. Press CtrlPage Down to select another sheet, then select cell A1. Press Enter. To Copy the Entire Sheet Copying the entire sheet means copying the cells, the page setup parameters, and the defined range Names. Option 1: Move the mouse pointer to a sheet tab. Press Ctrl, and hold the mouse to drag the sheet to a different location. Release the mouse button and the Ctrl key. Option 2: Right-click the appropriate sheet tab. From the shortcut menu, select Move or Copy. The Move or Copy dialog box enables one to copy the sheet either to a different location in the current workbook or to a different workbook. Be sure to mark the Create a copy checkbox. Option 3: From the Window menu, select Arrange. Select Tiled to tile all open workbooks in the window. Use Option 1 (dragging the sheet while pressing Ctrl) to copy or move a sheet. Sorting by Columns The default setting for sorting in Ascending or Descending order is by row. To sort by columns: From the Data menu, select Sort, and then Options. Select the Sort left to right option button and click OK. In the Sort by option of the Sort dialog box, select the row number by which the columns will be sorted and click OK. Descriptive Statistics The Data Analysis ToolPak has a Descriptive Statistics tool that provides you with an easy way to calculate summary statistics for a set of sample data. Summary statistics includes Mean, Standard Error, Median, Mode, Standard Deviation, Variance, Kurtosis, Skewness, Range, Minimum, Maximum, Sum, and Count. This tool eliminates the need to type indivividual functions to find each of these results. Excel includes elaborate and customisable toolbars, for example the standard toolbar shown here: Some of the icons are useful mathematical computation: is the Autosum icon, which enters the formula sum() to add up a range of cells. is the FunctionWizard icon, which gives you access to all the functions available. is the GraphWizard icon, giving access to all graph types available, as shown in this display: Excel can be used to generate measures of location and variability for a variable. Suppose we wish to find descriptive statistics for a sample data: 2, 4, 6, and 8. Step 1. Select the Tools pull-down menu, if you see data analysis, click on this option, otherwise, click on add-in. option to install analysis tool pak. Step 2. Click on the data analysis option. Step 3. Choose Descriptive Statistics from Analysis Tools list. Step 4. When the dialog box appears: Enter A1:A4 in the input range box, A1 is a value in column A and row 1 . in this case this value is 2. Using the same technique enter other VALUES until you reach the last one. If a sample consists of 20 numbers, you can select for example A1, A2, A3, etc. as the input range. Step 5. Select an output range . in this case B1. Click on summary statistics to see the results. When you click OK . you will see the result in the selected range. As you will see, the mean of the sample is 5, the median is 5, the standard deviation is 2.581989, the sample variance is 6.666667,the range is 6 and so on. Each of these factors might be important in your calculation of different statistical procedures. Normal Distribution Consider the problem of finding the probability of getting less than a certain value under any normal probability distribution. As an illustrative example, let us suppose the SAT scores nationwide are normally distributed with a mean and standard deviation of 500 and 100, respectively. Answer the following questions based on the given information: A: What is the probability that a randomly selected student score will be less than 600 points B: What is the probability that a randomly selected student score will exceed 600 points C: What is the probability that a randomly selected student score will be between 400 and 600 Hint: Using Excel you can find the probability of getting a value approximately less than or equal to a given value. In a problem, when the mean and the standard deviation of the population are given, you have to use common sense to find different probabilities based on the question since you know the area under a normal curve is 1. In the work sheet, select the cell where you want the answer to appear. Suppose, you chose cell number one, A1. From the menus, select quotinsert pull-downquot. Steps 2-3 From the menus, select insert, then click on the Function option. Step 4. After clicking on the Function option, the Paste Function dialog appears from Function Category. Choose Statistical then NORMDIST from the Function Name box Click OK Step 5. After clicking on OK, the NORMDIST distribution box appears: i. Enter 600 in X (the value box) ii. Enter 500 in the Mean box iii. Enter 100 in the Standard deviation box iv. Type quottruequot in the cumulative box, then click OK. As you see the value 0.84134474 appears in A1, indicating the probability that a randomly selected students score is below 600 points. Using common sense we can answer part quotbquot by subtracting 0.84134474 from 1. So the part quotbquot answer is 1- 0.8413474 or 0.158653. This is the probability that a randomly selected students score is greater than 600 points. To answer part quotcquot, use the same techniques to find the probabilities or area in the left sides of values 600 and 400. Since these areas or probabilities overlap each other to answer the question you should subtract the smaller probability from the larger probability. The answer equals 0.84134474 - 0.15865526 that is, 0.68269. The screen shot should look like following: Calculating the value of a random variable often called the quotxquot value You can use NORMINV from the function box to calculate a value for the random variable - if the probability to the left side of this variable is given. Actually, you should use this function to calculate different percentiles. In this problem one could ask what is the score of a student whose percentile is 90 This means approximately 90 of students scores are less than this number. On the other hand if we were asked to do this problem by hand, we would have had to calculate the x value using the normal distribution formula x m zd. Now lets use Excel to calculate P90. In the Paste function, dialog click on statistical, then click on NORMINV . The screen shot would look like the following: When you see NORMINV the dialog box appears. i. Enter 0.90 for the probability (this means that approximately 90 of students score is less than the value we are looking for) ii. Enter 500 for the mean (this is the mean of the normal distribution in our case) iii. Enter 100 for the standard deviation (this is the standard deviation of the normal distribution in our case) At the end of this screen you will see the formula result which is approximately 628 points. This means the top 10 of the students scored better than 628. Confidence Interval for the Mean Suppose we wish for estimating a confidence interval for the mean of a population. Depending on the size of your sample size you may use one of the following cases: Large Sample Size (n is larger than, say 30): The general formula for developing a confidence interval for a population means is: In this formula is the mean of the sample Z is the interval coefficient, which can be found from the normal distribution table (for example the interval coefficient for a 95 confidence level is 1.96). S is the standard deviation of the sample and n is the sample size. Now we would like to show how Excel is used to develop a certain confidence interval of a population mean based on a sample information. As you see in order to evaluate this formula you need quotthe mean of the samplequot and the margin of error Excel will automatically calculate these quantities for you. The only things you have to do are: add the margin of error to the mean of the sample, Find the upper limit of the interval and subtract the margin of error from the mean to the lower limit of the interval. To demonstrate how Excel finds these quantities we will use the data set, which contains the hourly income of 36 work-study students here, at the University of Baltimore. These numbers appear in cells A1 to A36 on an Excel work sheet. After entering the data, we followed the descriptive statistic procedure to calculate the unknown quantities. The only additional step is to click on the confidence interval in the descriptive statistics dialog box and enter the given confidence level, in this case 95. Here is, the above procedures in step-by-step: Step 1. Enter data in cells A1 to A36 (on the spreadsheet) Step 2. From the menus select Tools Step 3. Click on Data Analysis then choose the Descriptive Statistics option then click OK . On the descriptive statistics dialog, click on Summary Statistic. After you have done that, click on the confidence interval level and type 95 - or in other problems whatever confidence interval you desire. In the Output Range box enter B1 or what ever location you desire. Now click on OK . The screen shot would look like the following: As you see, the spreadsheet shows that the mean of the sample is 6.902777778 and the absolute value of the margin of error 0.231678109. This mean is based on this sample information. A 95 confidence interval for the hourly income of the UB work-study students has an upper limit of 6.902777778 0.231678109 and a lower limit of 6.902777778 - 0.231678109. On the other hand, we can say that of all the intervals formed this way 95 contains the mean of the population. Or, for practical purposes, we can be 95 confident that the mean of the population is between 6.902777778 - 0.231678109 and 6.902777778 0.231678109. We can be at least 95 confident that interval 6.68 and 7.13 contains the average hourly income of a work-study student. Smal Sample Size (say less than 30) If the sample n is less than 30 or we must use the small sample procedure to develop a confidence interval for the mean of a population. The general formula for developing confidence intervals for the population mean based on small a sample is: In this formula is the mean of the sample. is the interval coefficient providing an area of in the upper tail of a t distribution with n-1 degrees of freedom which can be found from a t distribution table (for example the interval coefficient for a 90 confidence level is 1.833 if the sample is 10). S is the standard deviation of the sample and n is the sample size. Now you would like to see how Excel is used to develop a certain confidence interval of a population mean based on this small sample information. As you see, to evaluate this formula you need quotthe mean of the samplequot and the margin of error Excel will automatically calculate these quantities the way it did for large samples. Again, the only things you have to do are: add the margin of error to the mean of the sample, , find the upper limit of the interval and to subtract the margin of error from the mean to find the lower limit of the interval. To demonstrate how Excel finds these quantities we will use the data set, which contains the hourly incomes of 10 work-study students here, at the University of Baltimore. These numbers appear in cells A1 to A10 on an Excel work sheet. After entering the data we follow the descriptive statistic procedure to calculate the unknown quantities (exactly the way we found quantities for large sample). Here you are with the procedures in step-by-step form: Step 1. Enter data in cells A1 to A10 on the spreadsheet Step 2. From the menus select Tools Step 3. Click on Data Analysis then choose the Descriptive Statistics option. Click OK on the descriptive statistics dialog, click on Summary Statistic, click on the confidence interval level and type in 90 or in other problems whichever confidence interval you desire. In the Output Range box, enter B1 or whatever location you desire. Now click on OK . The screen shot will look like the following: Now, like the calculation of the confidence interval for the large sample, calculate the confidence interval of the population based on this small sample information. The confidence interval is: 6.8 0.414426102 or 6.39 7.21. We can be at least 90 confidant that the interval 6.39 and 7.21 contains the true mean of the population. Test of Hypothesis Concerning the Population Mean Again, we must distinguish two cases with respect to the size of your sample Large Sample Size (say, over 30): In this section you wish to know how Excel can be used to conduct a hypothesis test about a population mean. We will use the hourly incomes of different work-study students than those introduced earlier in the confidence interval section. Data are entered in cells A1 to A36. The objective is to test the following Null and Alternative hypothesis: The null hypothesis indicates that the average hourly income of a work-study student is equal to 7 per hour however, the alternative hypothesis indicates that the average hourly income is not equal to 7 per hour. I will repeat the steps taken in descriptive statistics and at the very end will show how to find the value of the test statistics in this case, z, using a cell formula. Step 1. Enter data in cells A1 to A36 (on the spreadsheet) Step 2. From the menus select Tools Step 3. Click on Data Analysis then choose the Descriptive Statistics option, click OK . On the descriptive statistics dialog, click on Summary Statistic. Select the Output Range box, enter B1 or whichever location you desire. Now click OK . (To calculate the value of the test statistics search for the mean of the sample then the standard error. In this output, these values are in cells C3 and C4.) Step 4. Select cell D1 and enter the cell formula (C3 - 7)C4. The screen shot should look like the following: The value in cell D1 is the value of the test statistics. Since this value falls in acceptance range of -1.96 to 1.96 (from the normal distribution table), we fail to reject the null hypothesis. Small Sample Size (say, less than 30): Using steps taken the large sample size case, Excel can be used to conduct a hypothesis for small-sample case. Lets use the hourly income of 10 work-study students at UB to conduct the following hypothesis. The null hypothesis indicates that average hourly income of a work-study student is equal to 7 per hour. The alternative hypothesis indicates that average hourly income is not equal to 7 per hour. I will repeat the steps taken in descriptive statistics and at the very end will show how to find the value of the test statistics in this case quottquot using a cell formula. Step 1. Enter data in cells A1 to A10 (on the spreadsheet) Step 2. From the menus select Tools Step 3. Click on Data Analysis then choose the Descriptive Statistics option. OK klicken . On the descriptive statistics dialog, click on Summary Statistic. Select the Output Range boxes, enter B1 or whatever location you chose. Again, click on OK . (To calculate the value of the test statistics search for the mean of the sample then the standard error, in this output these values are in cells C3 and C4.) Step 4. Select cell D1 and enter the cell formula (C3 - 7)C4. The screen shot would look like the following: Since the value of test statistic t -0.66896 falls in acceptance range -2.262 to 2.262 (from t table, where 0.025 and the degrees of freedom is 9), we fail to reject the null hypothesis. Difference Between Mean of Two Populations In this section we will show how Excel is used to conduct a hypothesis test about the difference between two population means assuming that populations have equal variances. The data in this case are taken from various offices here at the University of Baltimore. I collected the hourly income data of 36 randomly selected work-study students and 36 student assistants. The hourly income range for work-study students was 6 - 8 while the hourly income range for student assistants was 6-9. The main objective in this hypothesis testing is to see whether there is a significant difference between the means of the two populations. The NULL and the ALTERNATIVE hypothesis is that the means are equal and the means are not equal, respectively. Referring to the spreadsheet, I chose A1 and A2 as label centers. The work-study students hourly income for a sample size 36 are shown in cells A2:A37 . and the student assistants hourly income for a sample size 36 is shown in cells B2:B37 Data for Work Study Student: 6, 6, 6, 6, 6, 6, 6, 6.5, 6.5, 6.5, 6.5, 6.5, 6.5, 7, 7, 7, 7, 7, 7, 7, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 8, 8, 8, 8, 8, 8, 8, 8, 8. Data for Student Assistant: 6, 6, 6, 6, 6, 6.5, 6.5, 6.5, 6.5, 6.5, 7, 7, 7, 7, 7, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 8, 8, 8, 8, 8, 8, 8, 8.5, 8.5, 8.5, 8.5, 8.5, 9, 9, 9, 9. Use the Descriptive Statistics procedure to calculate the variances of the two samples. The Excel procedure for testing the difference between the two population means will require information on the variances of the two populations. Since the variances of the two populations are unknowns they should be replaced with sample variances. The descriptive for both samples show that the variance of first sample is s 1 2 0.55546218 . while the variance of the second sample s 2 2 0.969748 . To conduct the desired test hypothesis with Excel the following steps can be taken: Step 1. From the menus select Tools then click on the Data Analysis option. Step 2. When the Data Analysis dialog box appears: Choose z-Test: Two Sample for means then click OK Step 3. When the z-Test: Two Sample for means dialog box appears: Enter A1:A36 in the variable 1 range box (work-study students hourly income) Enter B1:B36 in the variable 2 range box (student assistants hourly income) Enter 0 in the Hypothesis Mean Difference box (if you desire to test a mean difference other than 0, enter that value) Enter the variance of the first sample in the Variable 1 Variance box Enter the variance of the second sample in the Variable 2 Variance box and select Labels Enter 0.05 or, whatever level of significance you desire, in the Alpha box Select a suitable Output Range for the results, I chose C19 . then click OK. The value of test statistic z-1.9845824 appears in our case in cell D24. The rejection rule for this test is z 1.96 from the normal distribution table. In the Excel output these values for a two-tail test are z 1.959961082. Since the value of the test statistic z-1.9845824 is less than -1.959961082 we reject the null hypothesis. We can also draw this conclusion by comparing the p-value for a two tail - test and the alpha value. Since p-value 0.047190813 is less than a0.05 we reject the null hypothesis. Overall we can say, based on the sample results, the two populations means are different. Small Samples: n 1 OR n 2 are less than 30 In this section we will show how Excel is used to conduct a hypothesis test about the difference between two population means. - Given that the populations have equal variances when two small independent samples are taken from both populations. Similar to the above case, the data in this case are taken from various offices here at the University of Baltimore. I collected hourly income data of 11 randomly selected work-study students and 11 randomly selected student assistants. The hourly income range for both groups was similar range, 6 - 8 and 6-9. The main objective in this hypothesis testing is similar too, to see whether there is a significant difference between the means of the two populations. The NULL and the ALTERNATIVE hypothesis are that the means are equal and they are not equal, respectively. Referring to the spreadsheet, we chose A1 and A2 as label centers. The work-study students hourly income for a sample size 11 are shown in cells A2:A12 . and the student assistants hourly income for a sample size 11 is shown in cells B2:B12 . Unlike previous case, you do not have to calculate the variances of the two samples, Excel will automatically calculate these quantities and use them in the calculation of the value of the test statistic. Similar to the previous case, but a bit different in step 2, to conduct the desired test hypothesis with Excel the following steps can be taken: Step 1. From the menus select Tools then click on the Data Analysis option. Step 2. When the Data Analysis dialog box appears: Choose t-Test: Two Sample Assuming Equal Variances then click OK Step 3 When the t-Test: Two Sample Assuming Equal Variances dialog box appears : Enter A1:A12 in the variable 1 range box (work-study student hourly income) Enter B1:B12 in the variable 2 range box (student assistant hourly income) Enter 0 in the Hypothesis Mean Difference box(if you desire to test a mean difference other than zero, enter that value) then select Labels Enter 0.05 or, whatever level of significance you desire, in the Alpha box Select a suitable Output Range for the results, I chose C1, then click OK. The value of the test statistic t-1.362229828 appears, in our case, in cell D10. The rejection rule for this test is t 2.086 from the t distribution table where the t value is based on a t distribution with n 1 - n 2 -2 degrees of freedom and where the area of the upper one tail is 0.025 ( that is equal to alpha2). In the Excel output the values for a two-tail test are t 2.085962478. Since the value of the test statistic t-1.362229828, is in an acceptance range of t 2.085962478, we fail to reject the null hypothesis. We can also draw this conclusion by comparing the p-value for a two-tail test and the alpha value. Since the p-value 0.188271278 is greater than a0.05 again . we fail to reject the null hypothesis. Overall we can say, based on sample results, the two populations means are equal. Enter data in an Excel work sheet starting with cell A2 and ending with cell C8. The following steps should be taken to find the proper output for interpretation. Step 1. From the menus select Tools and click on Data Analysis option. Step 2. When data analysis dialog appears, choose Anova single-factor option enter A2:C8 in the input range box. Select labels in first row. Step3. Select any cell as output(in here we selected A11). OK klicken. The general form of Anova table looks like following: Source of Variation Suppose the test is done at level of significance a 0.05, we reject the null hypothesis. This means there is a significant difference between means of hourly incomes of student assistants in these departments. The Two-way ANOVA Without Replication In this section, the study involves six students who were offered different hourly wages in three different department services here at the University of Baltimore. The objective is to see whether the hourly incomes are the same. Therefore, we can consider the following: Treatment: Hourly payments in the three departments Blocks: Each student is a block since each student has worked in the three different departments The general form of Anova table would look like: Source of Variation Degrees of freedom To find the Excel output for the above data the following steps can be taken: Step 1. From the menus select Tools and click on Data Analysis option. Step2. When data analysis box appears: select Anova two-factor without replication then Enter A2: D8 in the input range. Select labels in first row. Step3. Select an output range (in here we selected A11) then OK. Source of Variation NOTE: FMSTMSE 0.9805560.497222 1.972067 F 3.33 from table (5 numerator DF and 10 denominator DF) Since 1.972067 Goodness-of-Fit Test for Discrete Random Variables The CHI-SQUARE distribution can be used in a hypothesis test involving a population variance. However, in this section we would like to test and see how close a sample results are to the expected results. Example: The Multinomial Random Variable In this example the objective is to see whether or not based on a randomly selected sample information the standards set for a population is met. There are so many practical examples that can be used in this situation. For example it is assumed the guidelines for hiring people with different ethnic background for the US government is set at 70(WHITE), 20(African American) and 10(others), respectively. A randomly selected sample of 1000 US employees shows the following results that is summarized in a table. EXPECTED NUMBER OF EMPLOYEES OBSERVED FROM SAMPLE As you see the observed sample numbers for groups two and three are lower than their expected values unlike group one which has a higher expected value. Is this a clear sign of discrimination with respect to ethnic background Well depends on how much lower the expected values are. The lower amount might not statistically be significant. To see whether these differences are significant we can use Excel and find the value of the CHI-SQUARE. If this value falls within the acceptance region we can assume that the guidelines are met otherwise they are not. Now lets enter these numbers into Excel spread - sheet. We used cells B7-B9 for the expected proportions, C7-C9 for the observed values and D7-D9 for the expected frequency. To calculate the expected frequency for a category, you can multiply the proportion of that category by the sample size (in here 1000). The formula for the first cell of the expected value column, D7 is 1000B7. To find other entries in the expected value column, use the copy and the paste menu as shown in the following picture. These are important values for the chi-square test. The observed range in this case is C7: C9 while the expected range is D7: D9. The null and the alternative hypothesis for this test are as follows: H A . The population proportions are not P W 0.70, P A 0.20 and P O 0.10 Now lets use Excel to calculate the p-value in a CHI-SQUARE test. Step 1. Select a cell in the work sheet, the location which you like the p value of the CHI-SQUARE to appear. We chose cell D12. Step 2. From the menus, select insert then click on the Function option, Paste Function dialog box appears. Step 3. Refer to function category box and choose statistical . from function name box select CHITEST and click on OK . Step 4. When the CHITEST dialog appears: Enter C7: C9 in the actual-range box then enter D7: D9 in the expected-range box, and finally click on OK . The p-value will appear in the selected cell, D12. As you see the p value is 0.002392 which is less than the value of the level of significance (in this case the level of significance, a 0.10). Hence the null hypothesis should be rejected. This means based on the sample information the guidelines are not met. Notice if you type CHITEST(C7:C9,D7:D9) in the formula bar the p-value will show up in the designated cell. NOTE: Excel can actually find the value of the CHI-SQUARE. To find this value first select an empty cell on the spread sheet then in the formula bar type CHIINV(D12,2). D12 designates the p-Value found previously and 2 is the degrees of freedom (number of rows minus one). The CHI-SQUARE value in this case is 12.07121. If we refer to the CHI-SQUARE table we will see that the cut off is 4.60517 since 12.071214.60517 we reject the null. The following screen shot shows you how to the CHI-SQUARE value. Test of Independence: Contingency Tables The CHI-SQUARE distribution is also used to test and see whether two variables are independent or not. For example based on sample data you might want to see whether smoking and gender are independent events for a certain population. The variables of interest in this case are smoking and the gender of an individual. Another example in this situation could involve the age range of an individual and his or her smoking habit. Similar to case one data may appear in a table but unlike the case one this table may contains several columns in addition to rows. The initial table contains the observed values. To find expected values for this table we set up another table similar to this one. To find the value of each cell in the new table we should multiply the sum of the cell column by the sum of the cell row and divide the results by the grand total. The grand total is the total number of observations in a study. Now based on the following table test whether or not the smoking habit and gender of the population that the following sample taken from are independent. On the other hand is that true that males in this population smoke more than females You could use formula bar to calculate the expected values for the expected range. For example to find the expected value for the cell C5 which is replaced in c11 you could click on the formula bar and enter C6D5D6 then enter in cell C11. Step 1. Observed Range b4:c5 Smoking and gender So the observed range is b4:c5 and the expected range is b10:c11. Step 3. Click on fx (paste function) Step 4. When Paste Function dialog box appears, click on Statistical in function category and CHITEST in the function name then click OK. When the CHITEST box appears, enter b4:c5 for the actual range, then b10:c11 for the expected range. Step 5. Click on OK (the p-value appears). 0.477395 Conclusion: Since p-value is greater than the level of significance (0.05), fails to reject the null. This means smoking and gender are independent events. Based on sample information one can not assure females smoke more than males or the other way around. Step 6. To find the chi-square value, use CHINV function, when Chinv box appears enter 0.477395 for probability part, then 1 for the degrees of freedom. Degrees of freedom(number of columns-1)X(number of rows-1) Test Hypothesis Concerning the Variance of Two Populations In this section we would like to examine whether or not the variances of two populations are equal. Whenever independent simple random samples of equal or different sizes such as n 1 and n 2 are taken from two normal distributions with equal variances, the sampling distribution of s 1 2 s 2 2 has F distribution with n 1 - 1 degrees of freedom for the numerator and n 2 - 1 degrees of freedom for the denominator. In the ratio s 1 2 s 2 2 the numerator s 1 2 and the denominator s 2 2 are variances of the first and the second sample, respectively. The following figure shows the graph of an F distribution with 10 degrees of freedom for both the numerator and the denominator. Unlike the normal distribution as you see the F distribution is not symmetric. The shape of an F distribution is positively skewed and depends on the degrees of freedom for the numerator and the denominator. The value of F is always positive. Now let see whether or not the variances of hourly income of student-assistant and work-study students based on samples taken from populations previously are equal. Assume that the hypothesis test in this case is conducted at a 0.10. The null and the alternative are: Rejection Rule: Reject the null hypothesis if Flt F 0.095 or Fgt F 0.05 where F, the value of the test statistic is equal to s 1 2 s 2 2. with 10 degrees of freedom for both the numerator and the denominator. We can find the value of F .05 from the F distribution table. If s 1 2 s 2 2. we do not need to know the value of F 0.095 otherwise, F 0.95 1 F 0.05 for equal sample sizes. A survey of eleven student-assistant and eleven work-study students shows the following descriptive statistics. Our objective is to find the value of s 1 2 s 2 2. where s 1 2 is the value of the variance of student assistant sample and s 2 2 is the value of the variance of the work study students sample. As you see these values are in cells F8 and D8 of the descriptive statistic output. To calculate the value of s 1 2 s 2 2. select a cell such as A16 and enter cell formula F8D8 and enter. This is the value of F in our problem. Since this value, F1.984615385, falls in acceptance area we fail to reject the null hypothesis. Hence, the sample results do support the conclusion that student assistants hourly income variance is equal to the work study students hourly income variance. The following screen shoot shows how to find the F value. We can follow the same format for one tail test(s). Linear Correlation and Regression Analysis In this section the objective is to see whether there is a correlation between two variables and to find a model that predicts one variable in terms of the other variable. There are so many examples that we could mention but we will mention the popular ones in the world of business. Usually independent variable is presented by the letter x and the dependent variable is presented by the letter y. A business man would like to see whether there is a relationship between the number of cases of sold and the temperature in a hot summer day based on information taken from the past. He also would like to estimate the number cases of soda which will be sold in a particular hot summer day in a ball game. He clearly recorded temperatures and number of cases of soda sold on those particular days. The following table shows the recorded data from June 1 through June 13. The weatherman predicts a 94F degree temperature for June 14. The businessman would like to meet all demands for the cases of sodas ordered by customers on June 14. Now lets use Excel to find the linear correlation coefficient and the regression line equation. The linear correlation coefficient is a quantity between -1 and 1. This quantity is denoted by R . The closer R to 1 the stronger positive (direct) correlation and similarly the closer R to -1 the stronger negative (inverse) correlation exists between the two variables. The general form of the regression line is y mx b. In this formula, m is the slope of the line and b is the y-intercept. You can find these quantities from the Excel output. In this situation the variable y (the dependent variable) is the number of cases of soda and the x (independent variable) is the temperature. To find the Excel output the following steps can be taken: Step 1. From the menus choose Tools and click on Data Analysis. Step 2. When Data Analysis dialog box appears, click on correlation. Step 3. When correlation dialog box appears, enter B1:C14 in the input range box. Click on Labels in first row and enter a16 in the output range box. Click on OK. As you see the correlation between the number of cases of soda demanded and the temperature is a very strong positive correlation. This means as the temperature increases the demand for cases of soda is also increasing. The linear correlation coefficient is 0.966598577 which is very close to 1. Now lets follow same steps but a bit different to find the regression equation. Step 1. From the menus choose Tools and click on Data Analysis Step 2 . When Data Analysis dialog box appears, click on regression . Step 3. When Regression dialog box appears, enter b1:b14 in the y-range box and c1:c14 in the x-range box. Click on labels . Step 4. Enter a19 in the output range box . Note: The regression equation in general should look like Ym X b. In this equation m is the slope of the regression line and b is its y-intercept. Adjusted R Square The relationship between the number of cans of soda and the temperature is: Y 0.879202711 X 9.17800767 The number of cans of soda 0.879202711(Temperature) 9.17800767. Referring to this expression we can approximately predict the number of cases of soda needed on June 14. The weather forecast for this is 94 degrees, hence the number of cans of soda needed is equal to The number of cases of soda0.879202711(94) 9.17800767 91.82 or about 92 cases. Moving Average and Exponential Smoothing Moving Average Models: Use the Add Trendline option to analyze a moving average forecasting model in Excel. You must first create a graph of the time series you want to analyze. Select the range that contains your data and make a scatter plot of the data. Once the chart is created, follow these steps: Click on the chart to select it, and click on any point on the line to select the data series. When you click on the chart to select it, a new option, Chart, s added to the menu bar. From the Chart menu, select Add Trendline. The following is the moving average of order 4 for weekly sales: Exponential Smoothing Models: The simplest way to analyze a timer series using an Exponential Smoothing model in Excel is to use the data analysis tool. This tool works almost exactly like the one for Moving Average, except that you will need to input the value of a instead of the number of periods, k. Once you have entered the data range and the damping factor, 1- a. and indicated what output you want and a location, the analysis is the same as the one for the Moving Average model. Applications and Numerical Examples Descriptive Statistics: Suppose you have the following, n 10, data: 1.2, 1.5, 2.6, 3.8, 2.4, 1.9, 3.5, 2.5, 2.4, 3.0 Type your n data points into the cells A1 through An. Click on the Tools menu. (At the bottom of the Tools menu will be a submenu Data Analysis. , if the Analysis Tool Pack has been properly installed.) Clicking on Data Analysis. will lead to a menu from which Descriptive Statistics is to be selected. Select Descriptive Statistics by pointing at it and clicking twice, or by highlighting it and clicking on the Okay button. Within the Descriptive Statistics submenu, a. for the input range enter A1:Dn, assuming you typed the data into cells A1 to An. b. click on the output range button and enter the output range C1:C16. C. click on the Summary Statistics box d. finally, click on Okay. The Central Tendency: The data can be sorted in ascending order: 1.2, 1.5, 1.9, 2.4, 2.4, 2.5, 2.6, 3.0, 3.5, 3.8 The mean, median and mode are computed as follows: (1.2 1.5 2.6 3.8 2.4 1.9 3.5 2.5 2.4 3.0) 10 2.48 The mode is 2.4, since it is the only value that occurs twice. The midrange is (1.2 3.8) 2 2.5. Note that the mean, median and mode of this set of data are very close to each other. This suggests that the data is very symmetrically distributed. Variance: The variance of a set of data is the average of the cumulative measure of the squares of the difference of all the data values from the mean. The sample variance-based estimation for the population variance are computed differently. The sample variance is simply the arithmetic mean of the squares of the difference between each data value in the sample and the mean of the sample. On the other hand, the formula for an estimate for the variance in the population is similar to the formula for the sample variance, except that the denominator in the fraction is (n-1) instead of n. However, you should not worry about this difference if the sample size is large, say over 30. Compute an estimate for the variance of the population . given the following sorted data: 1.2, 1.5, 1.9, 2.4, 2.4, 2.5, 2.6, 3.0, 3.5, 3.8 mean 2.48 as computed earlier. An estimate for the population variance is: s 2 1 (10-1) (1.2 - 2.48) 2 (1.5 - 2.48) 2 (1.9 - 2.48) 2 (2.4 -2.48) 2 (2.4 - 2.48) 2 (2.5 - 2.48) 2 (2.6 - 2.48) 2 (3.0 - 2.48) 2 (3.5 -2.48) 2 (3.8 - 2.48) 2 (1 9) (1.6384 0.9604 0.3364 0.0064 0.0064 0.0004 0.0144 0.2704 1.0404 1.7424) 0.6684 Therefore, the standard deviation is s ( 0.6684 ) 12 0.8176 Probability and Expected Values: Newsweek reported that average take for bank robberies was 3,244 but 85 percent of the robbers were caught. Assuming 60 percent of those caught lose their entire take and 40 percent lose half, graph the probability mass function using EXCEL. Calculate the expected take from a bank robbery. Does it pay to be a bank robber To construct the probability function for bank robberies, first define the random variable x, bank robbery take. If the robber is not caught, x 3,244. If the robber is caught and manages to keep half, x 1,622. If the robber is caught and loses it all, then x 0. The associated probabilities for these x values are 0.15 (1 - 0.85), 0.34 (0.85)(0.4), and 0.51 (0.85)(0.6). After entering the x values in cells A1, A2 and A3 and after entering the associated probabilities in B1, B2, and B3, the following steps lead to the probability mass function: Click on ChartWizard. The ChartWizard Step 1 of 4 screen will appear. Highlight Column at ChartWizard Step 1 of 4 and click Next. At ChartWizard Step 2 of 4 Chart Source Data, enter B1:B3 for Data range, and click column button for Series in. A graph will appear. Click on series toward the top of the screen to get a new page. At the bottom of the Series page, is a rectangle for Category (X) axis labels: Click on this rectangle and then highlight A1:A3. At Step 3 of 4 move on by clicking on Next, and at Step 4 of 4, click on Finish. The expected value of a robbery is 1,038.08. E(X) (0)(0.51)(1622)(0.34) (3244)(0.15) 0 551.48 486.60 1038.08 The expected return on a bank robbery is positive. On average, bank robbers get 1,038.08 per heist. If criminals make their decisions strictly on this expected value, then it pays to rob banks. A decision rule based only on an expected value, however, ignores the risks or variability in the returns. In addition, our expected value calculations do not include the cost of jail time, which could be viewed by criminals as substantial. Discrete Continuous Random Variables: Binomial Distribution Application: A multiple choice test has four unrelated questions. Each question has five possible choices but only one is correct. Thus, a person who guesses randomly has a probability of 0.2 of guessing correctly. Draw a tree diagram showing the different ways in which a test taker could get 0, 1, 2, 3 and 4 correct answers. Sketch the probability mass function for this test. What is the probability a person who guesses will get two or more correct Solution: Letting Y stand for a correct answer and N a wrong answer, where the probability of Y is 0.2 and the probability of N is 0.8 for each of the four questions, the probability tree diagram is shown in the textbook on page 182. This probability tree diagram shows the branches that must be followed to show the calculations captured in the binomial mass function for n 4 and 0.2. For example, the tree diagram shows the six different branch systems that yield two correct and two wrong answers (which corresponds to 4(22) 6. The binomial mass function shows the probability of two correct answers as P(x 2 n 4, p 0.2) 6(.2)2(.8)2 6(0.0256) 0.1536 P(2) Which is obtained from excel by using the BINOMDIST Command, where the first entry is x, the second is n, and the third is mass (0) or cumulative (1) that is, entering BINOMDIST(2,4,0.2,0) IN ANY EXCEL CELL YIELDS 0.1536 AND BINOMDIST(3,4,0.2,0) YIELDS P(x3n4, p 0.2) 0.0256 BINOMDIST(4,4,0.2,0) YIELDS P(x4n4, p 0.2) 0.0016 1-BINOMDIST(1,4,0.2,1) YIELDS P(x 179 2 n 4, p 0.2) 0.1808 Normal Example: If the time required to complete an examination by those with a certain learning disability is believed to be distributed normally, with mean of 65 minutes and a standard deviation of 15 minutes, then when can the exam be terminated so that 99 percent of those with the disability can finish Solution: Because the average and standard deviation are known, what needs to be established is the amount of time, above the mean time, such that 99 percent of the distribution is lower. This is a distance that is measured in standard deviations as given by the Z value corresponding to the 0.99 probability found in the body of Appendix B, Table 5,as shown in the textbook OR the commands entered into any cell of Excel to find this Z value is NORMINV(0.99,0,1) for 2.326342. The closest cumulative probability that can be found is 0.9901, in the row labeled 2.3 and column headed by .03, Z 2.33, which is only an approximation for the more exact 2.326342 found in Excel. Using this more exact value the calculation with mean m and standard deviation s in the following formula would be Z ( X - m ) s That is, Z ( x - 65)15 Thus, x 65 15(2.32634) 99.9 minutes. Alternatively, instead of standardizing with the Z distribution using Excel we can simply work directly with the normal distribution with a mean of 65 and standard deviation of 15 and enter NORMINV(0.99,65,15). In general to obtain the x value for which alpha percent of a normal random variables values are lower, the following NORMINV command may be used, where the first entry is a. the second is m. and the third is s. Another Example: In the early 1980s, the Toro Company of Minneapolis, Minnesota, advertised that it would refund the purchase price of a snow blower if the following winters snowfall was less than 21 percent of the local average. If the average snowfall is 45.25 inches, with a standard deviation of 12.2 inches, what is the likelihood that Toro will have to make refunds Solution: Within limits, snowfall is a continuous random variable that can be expected to vary symmetrically around its mean, with values closer to the mean occurring most often. Thus, it seems reasonable to assume that snowfall (x) is approximately normally distributed with a mean of 45.25 inches and standard deviation of 12.2 inches. Nine and one half inches is 21 percent of the mean snowfall of 45.25 inches and, with a standard deviation of 12.2 inches, the number of standard deviations between 45.25 inches and 9.5 inches is Z: Z ( x - m ) s (9.50 - 45.25)12.2 -2.93 Using Appendix B, Table 5, the textbook demonstrates the determination of P(x 163 9.50) P(z 163 -2.93) 0.17, the probability of snowfall less than 9.5 inches. Using Excel, this normal probability is obtained with the NORMDIST command, where the first entry is x, the second is mean m. the third is standard deviation s, and the fourth is CUMULATIVE (1). Entering NORMDIST(9.5,45.25,12.2,1), Gives P( x 163 9.50) 0.001693. Sampling Distribution and the Central Limit Theorem : A bakery sells an average of 24 loaves of bread per day. Sales (x) are normally distributed with a standard deviation of 4. If a random sample of size n 1 (day) is selected, what is the probability this x value will exceed 28 If a random sample of size n 4 (days) is selected, what is theprobability that xbar 179 28 Why does the answer in part 1 differ from that in part 2 1. The sampling distribution of the sample mean xbar is normal with a mean of 24 and a standard error of the mean of 4. Thus, using Excel, 0.15866 1-NORMDIST(28,24,4,1). 2. The sampling distribution of the sample mean xbar is normal with a mean of 24 and a standard error of the mean of 2 using Excel, 0.02275 1-NORMDIST(28,24,2,1). Regression Analysis: The highway deaths per 100 million vehicle miles and highway speed limits for 10 countries, are given below: (Death, Speed) (3.0, 55), (3.3, 55), (3.4, 55), (3.5, 70), (4.1, 55), (4.3, 60), (4.7, 55), (4.9, 60), (5.1, 60), and (6.1, 75). From this we can see that five countries with the same speed limit have very different positions on the safety list. For example, Britain. with a speed limit of 70 is demonstrably safer than Japan, at 55. Can we argue that, speed has little to do with safety. Use regression analysis to answer this question. Solution: Enter the ten paired y and x data into cells A2 to A11 and B2 to B11, with the death rate label in A1 and speed limits label in B1, the following steps produce the regression output. Choose Regression from Data Analysis in the Tools menu. The Regression dialog box will will appear. Note: Use the mouse to move between the boxes and buttons. Click on the desired box or button. The large rectangular boxes require a range from the worksheet. A range may be typed in or selected by highlighting the cells with the mouse after clicking on the box. If the dialog box blocks the data, it can be moved on the screen by clicking on the title bar and dragging. For the Input Y Range, enter A1 to A11, and for the Input X Range enter B1 to B11. Because the Y and X ranges include the Death and Speed labels in A1 and B1, select the Labels box with a click. Click the Output Range button and type reference cell, which in this demonstration is A13. To get the predicted values of Y (Death rates) and residuals select the Residuals box with a click. Your screen display should show a Table, clicking OK will give the SUMMARY OUTPUT, ANOVA AND RESIDUAL OUTPUT The first section of the EXCEL printout gives SUMMARY OUTPUT. The Multiple R is the square root of the R Square the computation and interpretation of which we have already discussed. The Standard Error of estimate (which will be discussed in the next chapter) is s 0.86423, which is the square root of Residual SS 5.97511 divided by its degrees of freedom, df 8, as given in the ANOVA section. We will also discuss the adjusted R-square of 0.21325 in the following chapters. Under the ANOVA section are the estimated regression coefficients and related statistics that will be discussed in detail in the next chapter. For now it is sufficient to recognize that the calculated coefficient values for the slope and y intercept are provided (b 0.07556 and a -0.29333). Next to these coefficient estimates is information on the variability in the distribution of the least-squares estimators from which these specific estimates were drawn: the column titled Std. Error contains the standard deviations (standard errors) of the intercept and slope distributions the t-ratio and p columns give the calculated values of the t statistics and associated p-values. As shown in Chapter 13, the t statistic of 1.85458 and p-value of 0.10077, for example, indicates that the sample slope (0.07556) is sufficiently different from zero, at even the 0.10 two-tail Type I error level, to conclude that there is a significant relationship between deaths and speed limits in the population. This conclusion is contrary to assertion that speed has little to do with safety. SUMMARY OUTPUT: Multiple R 0.54833, R Square 0.30067, Adjusted R Square 0.21325, Standard Error 0.86423, Observations 10 ANOVA df SS MS F P-value Regression 1 2.56889 2.56889 3.43945 0.10077 Residual 8 5.97511 0.74689 Total 9 8.54400 Coeffs. Estimate Std. Error T Stat P-value Lower 95 Upper 95 Intercept -0.29333 2.45963 -0.11926 0.90801 -5.96526 5.37860 Speed 0.07556 0.04074 1.85458 0.10077 -0.01839 0.16950 Predicted Residuals 3.86222 -0.86222 3.86222 -0.56222 3.86222 -0.46222 4.99556 -1.49556 3.86222 0.23778 4.24000 0.06000 3.86222 0.83778 4.24000 0.66000 4.24000 0.86000 5.37333 0.72667 Microsoft Excel Add-Ins Forecasting with regression requires the Excel add-in called Analysis ToolPak , and linear programming requires the Excel add-in called Solver . How you check to see if these are activated on your computer, and how to activate them if they are not active, varies with Excel version. Here are instructions for the most common versions. If Excel will not let you activate Data Analysis and Solver, you must use a different computer. Excel 20022003: Start Excel, then click Tools and look for Data Analysis and for Solver. If both are there, press Esc (escape) and continue with the respective assignment. Otherwise click Tools, Add-Ins, and check the boxes for Analysis ToolPak and for Solver, then click OK. Click Tools again, and both tools should be there. Excel 2007: Start Excel 2007 and click the Data tab at the top. Look to see if Data Analysis and Solver show in the Analysis section at the far right. If both are there, continue with the respective assignment. Otherwise, do the following steps exactly as indicated: - click the 8220Office Button8221 at top left - click the Excel Options button near the bottom of the resulting window - click the Add-ins button on the left of the next screen - near the bottom at Manage Excel Add-ins, click Go - check the boxes for Analysis ToolPak and Solver Add-in if they are not already checked, then click OK - click the Data tab as above and verify that the add-ins show. Excel 2010: Start Excel 2010 and click the Data tab at the top. Look to see if Data Analysis and Solver show in the Analysis section at the far right. If both are there, continue with the respective assignment. Otherwise, do the following steps exactly as indicated: - click the File tab at top left - click the Options button near the bottom of the left side - click the Add-ins button near the bottom left of the next screen - near the bottom at Manage Excel Add-ins, click Go - check the boxes for Analysis ToolPak and Solver Add-in if they are not already checked, then click OK - click the Data tab as above and verify that the add-ins show. Solving Linear Programs by Excel Some of these examples can be modified for other types problems Computer-assisted Learning: E-Labs and Computational Tools My teaching style deprecates the plug the numbers into the software and let the magic box work it out approach. Personal computers, spreadsheets, e. g. Excel. professional statistical packages (e. g. such as SPSS), and other information technologies are now ubiquitous in statistical data analysis. Without using these tools, one cannot perform any realistic statistical data analysis on large data sets. The appearance of other computer software, JavaScript Applets. Statistical Demonstrations Applets. and Online Computation are the most important events in the process of teaching and learning concepts in model-based statistical decision making courses. These tools allow you to construct numerical examples to understand the concepts, and to find their significance for yourself. Use any or online interactive tools available on the WWW to perform statistical experiments (with the same purpose, as you used to do experiments in physics labs to learn physics) to understand statistical concepts such as Central Limit Theorem are entertaining and educating. Computer-assisted learning is similar to the experiential model of learning. The adherents of experiential learning are fairly adamant about how we learn. Learning seldom takes place by rote. Learning occurs because we immerse ourselves in a situation in which we are forced to perform and think. You get feedback from the computer output and then adjust your thinking-process if needed. A SPSS-Example . SPSS-Examples . SPSS-More Examples . (Statistical Package for the Social Sciences) is a data management and analysis product. It can perform a variety of data analysis and presentation functions, including statistical analyses and graphical presentation of data. SAS (Statistical Analysis System) is a system of software packages some of its basic functions and uses are: database management inputting, cleaning and manipulating data, statistical analysis, calculating simple statistics such as means, variances, correlations running standard routines such as regressions. Available at: SPSSSAS Packages on Citrix (Installing and Accessing ) Use your email ID and Password: Technical Difficulties OTS Call Center (401) 837-6262 Excel Examples. Excel More Examples It is Excellent for Descriptive Statistics, and getting acceptance is improving, as computational tool for Inferential Statistics. The Value of Performing Experiment: If the learning environment is focused on background information, knowledge of terms and new concepts, the learner is likely to learn that basic information successfully. However, this basic knowledge may not be sufficient to enable the learner to carry out successfully the on-the-job tasks that require more than basic knowledge. Thus, the probability of making real errors in the business environment is high. On the other hand, if the learning environment allows the learner to experience and learn from failures within a variety of situations similar to what they would experience in the real world of their job, the probability of having similar failures in their business environment is low. This is the realm of simulations-a safe place to fail. The appearance of statistical software is one of the most important events in the process of decision making under uncertainty. Statistical software systems are used to construct examples, to understand the existing concepts, and to find new statistical properties. On the other hand, new developments in the process of decision making under uncertainty often motivate developments of new approaches and revision of the existing software systems. Statistical software systems rely on a cooperation of statisticians, and software developers. Beside the professional statistical software Online statistical computation . and the use of a scientific calculator is required for the course. A Scientific Calculator is the one, which has capability to give you, say, the result of square root of 5. Any calculator that goes beyond the 4 operations is fine for this course. These calculators allow you to perform simple calculations you need in this course, for example, enabling you to take square root, to raise e to the power of say, 0.36. and so on. These types of calculators are called general Scientific Calculators. There are also more specific and advanced calculators for mathematical computations in other areas such as Finance, Accounting, and even Statistics. The last one, for example, computes mean, variance, skewness, and kurtosis of a sample by simply entering all data one-by-one and then pressing any of the mean, variance, skewness, and kurtosis keys. Without a computer one cannot perform any realistic statistical data analysis. Students who are signing up for the course are expected to know the basics of Excel. As a starting point, you need visiting the Excel Web site created for this course. If you are challenged by or unfamiliar with Excel, you may seek tutorial help from the Academic Resource Center at 410-837-5385, E-mail. What and How to Hand-in My Computer Assignment For the computer assignment I do recommend in checking your hand computation homework, and checking some of the numerical examples from your textbook. As part of your homework assignment you don not have to hand in the printout of the computer assisted learning, however, you must include within your handing homework a paragraph entitled Computer Implementation describing your (positive or negative) experience. Interesting and Useful Sites The Copyright Statement: The fair use, according to the 1996 Fair Use Guidelines for Educational Multimedia. of materials presented on this Web site is permitted for non-commercial and classroom purposes only. This site may be mirrored intact (including these notices), on any server with public access. All files are available at home. ubalt. eduntsbarshBusiness-stat for mirroring. Kindly e-mail me your comments, suggestions, and concerns. Vielen Dank. EOF: CopyRights 1994-2015.
No comments:
Post a Comment