TI-84 Statistical Calculations and Tests PDF

Title TI-84 Statistical Calculations and Tests
Author Sai Ajoy
Course General Psychology
Institution Ohlone College
Pages 9
File Size 229.7 KB
File Type PDF
Total Downloads 1
Total Views 138

Summary

notes....


Description

Statistical Calculations and Tests Using the TI 83/84. The document is meant to be read with a calculator in hand. Work an example to see the results of every step. The content is in the order that the topics are covered in Bluman "Elementary Statistics" so you can move through this document as each new chapter is covered in class. Conventions and Advice. 

For brevity, the TI 83+ and TI 84+ will be referred to as TI84. The slight differences between the two calculators are noted where they occur.



Many calculator functions require the use of a 2nd key. Since the need to use this key is obvious from the keyboard color code, it is not described in these instructions.



Conditions for a valid test and interpretation of the results of the test are not discussed in this document. This you will learn in the classroom and by reading the text.



Some of the Tests provide for a choice between using Data (stored in a list) and Stats (where you input the statistics of each sample). Many of your homework questions give you the statistics saving you the labor of entering the data.



Most calculator operations require pushing the ENTER key to execute. This command is omitted from the description. If in doubt, hit ENTER.



Many of the tests have an optional Draw output that provides a graphical depiction of the results and can aid understanding. Only the Calculate option is described.



Using Stat Plot: make sure that only one of the plots is turned on at one time and that no function equation (Y=) is active (indicated by a highlighted equals sign) unless you want it to be. If you get a mysterious error message when using Stat Plot, it is most likely because you haven't precisely asked for what you want. The Basics - Working with lists. Most uses of the TI84 for statistical calculations require that you store data in lists. The easiest way to enter values into a list is to see the list displayed in a vertical column using STAT/EDIT/ to access the Stat Editor. The initial setup of Stat Editor displays lists L1 through L6 only. You can add additional columns for displaying lists by moving the cursor up to the name of the last-named list (L6 to begin with) and then move the cursor right to the next column. To insert a new column, go to the header position (list name) of one of the named columns and press INS. This will add a column to the left of the one from which you made the request. To delete one of the lists displayed in Stat Editor, go to header position of that list and press DEL.

1

You begin the next list by entering a name followed by ENTER. Data is entered into a list starting at the top row under the name, with an ENTER after each data item. When you're done with Stat Editor, select QUIT so that you don't inadvertently make unintended entries into lists. Stat Editor is not the "keeper of lists". It only displays them and allows you to enter data. Deleting columns in the Stat Editor will not delete a list. The complete list of all lists currently defined may be found by using LIST/NAMES. Deleting lists must be done using MEM/2 [Mem Mgmt/Delete], which allows you to selectively delete variables including lists. MEM/4 [ClrAllLists] doesn't delete list names, only their content. Lists can also be entered by typing a left curly bracket, the entries in the list separated by commas, and ending with a right curly bracket as follows: {entry 1, entry 2, …..}STO> and then name the list. For example, {1,2,3,4}STO> T1 will store those 4 values into a list named T1. If you wish to enter the name of a list, it must be selected from the LIST/NAMES menu unless it is one of the lists L1, L2, L3, L4, L5, L6 which are selectable from the keyboard. For example, if you wish to display the contents of a list without using the Stat Editor, use LIST/NAMES/ and select the name of the list followed by ENTER. To restore the Stat Editor to its factory setting of Lists 1–6 as the only lists displayed and in order from left to right, use STAT/5 and ENTER. This does not delete lists; it only modifies (or resets) what lists are displayed in the Stat Editor. Chapter 2 Summarizing and Graphing Data 1. Grouping Data. To group data, you scan a list and tally the number of entries in the list that are within a list of ranges (or classes). The tally produces frequencies of occurrence and the result is called a frequency distribution. The easiest way of producing a frequency distribution using the TI84 is to first produce a histogram (see below). If you wish to do it manually, it is easiest to sort the list first. Choose STAT/EDIT/2 and name the list you wish to sort. If the classes are single–valued rather than a range of values, enter the class values in one list and the corresponding frequencies in another. Starting with a list of frequencies for each class, we can use List math to obtain a relative frequency distribution. For example, if the frequency data is stored in L2, LIST/MATH/5: sum(L2) will display the sum of the frequencies and then L2/ANS STO> L3 will divide each element of L2 by the sum of the frequencies and store the relative frequencies in L3. The key ANS will always insert in its place the value of the last calculation displayed. 2. Plotting Histograms. A histogram of ungrouped data can be obtained using STAT PLOT. Select one of the 3 Plots to turn On. Choose graph type #3 (the third icon), specify the xList and Freq:1. Then ZOOM/9 GRAPH will set the window parameters and produce the histogram. The TI84 chooses the class ranges and you can use TRACE to see what they are. You most likely won't like them. To set the window parameters yourself, press WINDOW, enter the lower limit of the first class as Xmin, 2

a value larger than the upper limit of the last class as Xmax, and the class width as Xsc1. Ymax must be large enough to show the largest class frequencies. If you need to produce a frequency distribution, simply TRACE the histogram and read off the class limits and frequencies. If a frequency distribution is given, a histogram may be plotted by entering the list containing class midpoints as the Xlist: and the list of frequencies as the Freq: 3. Other Statistical Graphics. The TI84 can be used to produce most, but not all, of the other graph types. The frequency polygon is STAT PLOT/Graph Type 2. The Ogive graph is produced also using Graph Type 2 but using cumulative frequencies. If the frequencies are in L2, the instruction LIST/OPS/6: cumSum(L2) STO> L3 will store cumulative frequencies in L3. Dotplots can be produced with some cleverness and stemplots require a special program. Scatterplots are often used in statistics and are the TI84 Graph Type 1. Chapter 3 Descriptive Measures. 1. One–variable statistics. Use STAT/CALC/1: 1–Var Stats Listname produces the sample mean and standard deviation of the data in the list, as well as the 5–number summary minX, Q1, Median, Q3, maxX. It also produces standard deviation according to the population formula and identifies it as σx. Alternatively, these statistics can be computed individually by using LIST/MATH/ and selecting the relevant measure. Be aware that there are many different methods of computing quartiles and the results differ slightly. The method used in the TI84 is the same as the one used in Bluman. Excel's method is different. If the sample is in the form of a frequency distribution, store the midpoints in one list, say L1, and the frequencies in another, say L2. Then 1-Var Stats L1, L2 will produce the sample statistics including mean and standard deviation. 2. Boxplots (graphical display of the 5-number summary). Use STAT PLOT/, select the plot #, turn it On, select the 4th (modified Boxplot) or 5th graph type, name the list containing the data, and ZOOM/9. The modified Boxplot displays outliers separately. Chapter 4 Probability 1. Simulations. The TI84 can be used to simulate samples from uniformly distributed integer populations. Use MATH/PRB/5: randInt(lowest integer, largest integer, number in the sample) STO> listname. 2. Counting. Factorials, combinations and permutations are all computable from MATH/PRB/select from the list. For example, to compute 10C4 , enter 10/MATH/PRB/3/4 to get 210 as a result. Chapter 5 Discrete Probability Distributions.

3

1. One-variable statistics. Given a probability distribution P(x) for a discrete random variable x, we can calculate the parameters of the distribution. Assume that all possible values for x are stored in L1 and the probabilities for each value are in L2. STAT/CALC/1: 1-Var Stats L1, L2 will display the population mean, standard deviation and 5–number summary. 2. Probabilities for a random variable having a binomial distribution. P( x) = DISTR/binompdf(n, p, x). P(x ≤ xo) = DISTR/binomcdf(n, p, xo). P(x > xo) = 1 – P(x ≤ xo). To calculate the complete probability distribution, use DISTR/binompdf(n,p) (leave out the x). Store these values to a list for later use. 3. Simulating a Binomial Random Variable. MATH/PRB/7 –> randBin(n, p, N) STO> L1 will generate N instances (or observations) of the number of successes in an n–trial binomial experiment where p is the probability of success on each trial. Chapter 6 Normally Distributed Variables. 1. Simulating a Normally Distributed random variable. MATH/PRB/6: randNorm(μ, σ, N) STO> L1 will generate N observations of a normally distributed variable having mean μ and standard deviation σ and store them in L1. 2. Areas under a normal curve. DISTR/2: normalcdf (lower bound, upper bound, [μ, σ]) produces the area under a normal curve having mean μ and standard deviation σ between the lower and upper bound. If you leave out [ μ,σ], you get the area under the standard normal curve. 3. Finding an x–value for a specified area to the left. DISTR/3: invNorm(area to left, [μ,σ]). Again, you can leave out [μ,σ] for the standard normal curve. If you want x for a specified area to the right, use invNorm((1 – area to the right), [μ,σ]) 4. Normal probability plots. Use STAT PLOT, choose one to turn on, select the last icon of the 6 graph types, specify the name of the list containing the data, choose X as the axis to represent the data (meaning normal scores will appear on the Y–axis) and your choice of mark. ZOOM/9 will satisfactorily set the window parameters. Chapter 7 Estimates and Sample Sizes 1. Estimating a Population Proportion ( p). To use the normal distribution approximation to a binomial distribution, check that the number of successes x and the number of failures n-x in the sample are both 5 or greater. Obtain zα/2 from DISTR/3:invNorm(1–α/2) and compute the confidence interval from pˆ  E to pˆ  E where pˆ is the sample proportion x/n, E  z / 2  pˆ ,and  pˆ is estimated from

 pˆ 

pˆ 1  pˆ  / n .

Alternatively, use STAT/TESTS/1–PropZInt. Enter x, the number in the sample having the specified attribute, n, and the confidence level (1–α). The output is the confidence interval for the population proportion p.

4

Determining the sample size. Since the margin of error is E  z / 2 pˆ 1  pˆ  / n , the minimum sample size for a given margin of error is obtained by solving for n: 2  z/2  ˆ  n  pˆ 1  p  where pˆ is the sample proportion used as a point estimate of  E  the population proportion p. If you are unable to make a reasonable guess of pˆ in advance of obtaining the sample, then use the maximum value of pˆ (1 pˆ ) which is ¼. Since n must be an integer, round the computed value up to the next integer. 2. Estimating a population mean (σ known). Compute the confidence interval from [ x  E ] where E  z  / 2  / n . z / 2 can be obtained from DISTR/3:invNorm(1 – α/2). Alternatively, use STAT/TESTS/Z–Interval. Select between Data or Stats. Specify σ, name the list containing the sample data, set Freq: 1, and specify the confidence level (1–α). The output displays the confidence interval as a lower and upper bound, and the mean, standard deviation of and number of data points in the sample. 3. Estimating a population mean (σ unknown) Compute the confidence interval from [ x  E ] where E  t / 2 s / n . t / 2 can be obtained, on the TI–84+ only, from DISTR/4:invT(1 – α/2, df) where df = n–1. Since the TI–83+ does not have an inverse T–distribution, it's easiest to use Table F to find t  / 2 . Alternatively, use STAT/TESTS/T–Interval. The data entry and selections are the same as the one–sample z–Interval except that we don't input σ and the t–distribution is used instead of the normal distribution. 4. Sample size. If σ is known, the minimum sample size for a given margin of error is 2  z / 2   the next whole number greater than n    . You can obtain zα/2 from  E  DISTR/3: invNorm(1–α/2). If σ is unknown, you would need an estimate of it. 5. Estimating a population variance. The variable  2 

(n  1)s 2

2

has the chi-square

distribution with degrees of freedom (df) = n-1. For a confidence level 1 – α, the  (n  1) s 2 (n  1)s 2   where χL2 , variance confidence interval can be computed from  2   2  L R   2 2 and χR are the values of χ for which the chi-square distribution has area α/2 to the left and to the right respectively. These values can be found from Table G or using the calculator's SOLVER to solve the equation  2 cdf (0, X , df )  A where A = α/2 for X = χL2 and A = 1-α/2 for X = χR2. The confidence interval limits for the standard deviation are just the square roots of those for variance.

5

Chapter 8 Hypothesis Testing This section describes only the P-value method. The methods based on critical values or confidence intervals use calculator methods described previously. 1. Testing a claim about a population proportion. H0: p = p0 , H1: p ≠ p0 , p > p0 , p < p0 . The probability of obtaining a simple random sample of size n which includes x members of the population having the attribute of interest would be given by the binomial distribution if the number in the population is much greater than the number in the sample. Assuming the null hypothesis is true, the P-value for a lefttailed test would be binomcdf(n,p0,x) and 1 – binomcdf(n,p0,x) for a right-tailed test. For a two-tailed test, the P-value is just double the area in the smaller of the two tails. In every case, the null hypothesis is rejected if P ≤ α; that is, the sample is sufficiently unlikely assuming the null hypothesis is true. To use the normal distribution as an approximation to the binomial, first check that the number of successes np0 and the number of failures n(1–p0) are 5 or greater. Use STAT/TESTS/5:1–PropZTest. Enter p0, x and n, and the form of H1 (≠, ). The pˆ  p 0 output gives a restatement of H1, the value of the test statistic z 0  , p 01  p 0 / n and the P-Value. It also reports the value of pˆ and n. If P < α , reject the null hypothesis p = p0 . Otherwise, don't. 2. Testing a claim about a mean (σ known). Use STAT/TESTS/Z–Test. Select between Data or Stats. Specify μ0 , σ, name the list containing the sample data, set Freq:1, and choose the form of H1. The output displays the form of H1, the test statistic z0 for this sample, the P-value, the mean and standard deviation of, and the number of data points in, the sample. For a confidence level α, reject H0 if P < α; otherwise don't. 3. Testing a claim about a mean (σ unknown). Use STAT/TESTS/T–Test. The procedure is the same as the Z–test except that we don't input σ and the t–distribution is used instead of the normal distribution. 4. Testing a claim about a standard deviation or variance. Compute the test statistic χ2 assuming the null hypothesis is true. The P-value is obtained from DISTR/ χ2cdf (lower bound, upper bound, df) to obtain tail area. The tail area is area to the right of the test statistic for a right-tailed test, area to the left for a left-tailed test, and twice the area in the tail bounded by the test statistic for a two-tailed test. Chapter 9 Inferences from two samples 1. Inferences about two proportions. We use the normal approximation to the binomial which requires that the samples are independent and each sample has at least 5 with the specific attribute and at least 5 without. Use STAT/TESTS/6: 2-PropZTest for testing the hypothesis that the two population proportions are equal, or 2-PropZInt for a confidence interval for the difference between the two population proportions.

6

2. Inferences about two means: independent samples. H0: μ1 = μ2; H1: μ1 ≠ μ2, μ 1 > μ2, or μ1 < μ2. Use STAT/TESTS/ 2–SampTTest and choose between Data and Stats. For the Data choice, specify the name of each list, choose 1 for both Freq1 and Freq2, choose the form of H1, and choose between pooled and non–pooled. Use the "pooled" t–procedure if you believe the two populations have nearly equal standard deviations and "non–pooled" otherwise. The output includes a restatement of H1, the value of t0 

s

x 1  x 2  2

1

 

2

/ n1  s2 / n2



,

assuming Ho to be true, the P-value, the degrees of freedom

s / n   s  s / n   s 2 1

1

2

2

1

2

2

1

2

 /n 

2

/n 2 2

2

, the means and standard deviations of, and the number of

2

n1  1 n2  1 data points in, each sample. If P ≤ α, reject the null hypothesis. Otherwise, don't.

STAT/TESTS/ 2–SampTInt will calculate a confidence interval for μ1 – μ2, given a confidence level 1–α. 3. Inferences from matched pairs. Form a list of differences d = individual differences between the two values in a single matched pair e.g. L1 – L2 STO> L3 if the pairs of data points are stored in L1 and L2. Then use STAT/TESTS/ T-Test for a test of hypothesis μd = 0 or TInterval to obtain a 1-α confidence interval for μ1 – μ2. 4. Comparing variation in two samples. Use STAT/TESTS/2-SampFTest. If needed, you can most easily find the critical value of F using Table H since the inverse F is not programmed. Chapter 10 Correlation and Regression 1. Scatter plot – STAT PLOT/1 –> select ON, first graph type, specify the names of the xlist and ylist and select a mark. Then ZOOM/9 and GRAPH. Visual examination of the scatterplot should confirm that the points approximate a straight line pattern. 2. Calculating the components of the regression coefficient (if it should prove necessary). Use STAT/CALC/ 2–Var Stats, xlist, ylist. The results enable you to calculate these components of the linear regression coefficient. 2 2 2 2 2 2 S xx   x  x    x  nx , S yy   y  y    y  ny and

S xy    x  x y  y   xy  nxy . Note that r 

Sxy S xx S yy

.

3. Complete linear regression. Use STAT/CALC/ LinRegTTest and enter xlist, ylist, and the name Y1. The name Y1 is obtained from VARS, select Y–VARS, Function, Y1. As an output, TI84 will deposit the regression equation a + bx next to Y1 = so it is ready to use or graph. The value of the test statistic t and the associated P-value are given. If the P-value < α, the null hypothesis (no linear correlation) is rejected, and

7

the alternative of a linear correlation is concluded. Other outputs of LinRegTTest are a, b, r2 and r. Alternatively, test r against the critical values of r listed in Table I. You can see the regression equation plotted against the scatter plot background (described in #1) by simply pressing GRAPH. 4. Variation and Prediction Intervals The standard error of estimate s e 

 ( y  yˆ )

2

is an output of the LinRegTTest or

can be calculated from s e  S yy (1  r 2 ) /(n  2) . The margin of error for a value of the independent variable x = xo is E  t / 2 se 1 1 / n  (x0  x ) 2 / S xx . The test LinRegTInt (TI 84+ only) calculates a confidence interval for the slope β of the regression equation. If the interval co...


Similar Free PDFs