ENAR Spring Meeting, 1992 TierneyA Tutorial Introduction7ENAR Spring Meeting, 1992 TierneyWe’ll start with an introduction to using Lisp-Statas a statistical calculator and plotter.We will see how tointeract with the interpreterperform numerical operationsmodify dataconstruct systematic and random datause built-in dynamic plotsconstruct linear regression modelsde ne simple functionsuse these functions for{ a simple animation{ tting nonlinear regression models{ maximum likelihood estimation{ approximate posterior computations8ENAR Spring Meeting, 1992 TierneyThe InterpreterYour interaction with Lisp-Stat is a conversationbetween you and the interpreter.When the interpreter is ready to start theconversation, it gives you a prompt like>When you type in an expression and hit return,theinterpreter evaluates the expression, prints theresult, and gives a new prompt:>11>9ENAR Spring Meeting, 1992 TierneyOperations on numbers are performed withcompound expressions:>(+12)3>(+123)6> (* (+ 2 3.7) 8.2)46.74The basic rule: everything is evaluated.Numbers evaluate to themselves:> 416416> 3.143.14>-1-110ENAR Spring Meeting, 1992 TierneyLogical values and strings also evaluate tothemselves:> t ; trueT> nil ; falseNIL> "This is a string 1 2 3 4""This is a string 1 2 3 4"The semicolon \;" is the Lisp comment character.Symbols are evaluated by looking up their values, ifthey have one:>pi3.141593>PI3 ...