Free Essay

Stat

In:

Submitted By rahul1211
Words 1669
Pages 7
what is generics in jdk1.5? | |
|Answer |Hi, | |
|# 1 | | |
| |Generics is Template support added in JDK1.5 where in we can maintain templates of object with particular type and | |
| |also this object is restricted to accept type other than specified one at code time. | |
| |This help reducing runtime exception and also we can create predefined well formed templates of Type. | |
| | | |
| |Best Example. | |
| | | |
| |http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#generics | |
| | | |
| |Code written to use the generics feature should not be a lot slower or a lot more memory-intensive than non-generic | |
| |code. Using ten percent more space or time than .... | |

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Ex01 { public static void main(String[] args) throws IOException { BufferedReader userInput = new BufferedReader (new InputStreamReader(System.in)); ArrayList myArr = new ArrayList(); myArr.add("Italian Riviera"); myArr.add("Jersey Shore"); myArr.add("Puerto Rico"); myArr.add("Los Cabos Corridor"); myArr.add("Lubmin"); myArr.add("Coney Island"); myArr.add("Karlovy Vary"); myArr.add("Bourbon-l'Archambault"); myArr.add("Walt Disney World Resort"); myArr.add("Barbados"); System.out.println("Stupid Vacation Resort Adviser"); System.out.println("Enter your name:"); String name = userInput.readLine(); Integer nameLength = name.length(); if (nameLength == 0) { System.out.println("empty name entered"); return; } Integer vacationIndex = nameLength % myArr.size(); System.out.println("\nYour name is "+name+", its length is " + nameLength + " characters,\n" + "that's why we suggest you to go to " + myArr.get(vacationIndex)); }

Vectors (the java.util.Vector class)are commonly used instead of arrays, because they expandautomatically when new data is added to them. The Java 2 Collections API introduced the similar ArrayList data structure.ArrayLists are unsynchronized and thereforefaster than Vectors, but less secure in a multithreaded environment.The Vector class was changedin Java 2 to add the additional methods supported by ArrayList. See below for a reasons to use each. The description below is for the (new) Vector class.

Vectors can hold only Objects and not primitive types (eg, int).If you want to put a primitive type in a Vector, put it inside an object (eg, to save an integer value use the Integer classor define your own class). If you use the Integer wrapper,you will not be able to change the integer value, so it is sometimes usefulto define your own class.

To Create a Vector

You must import either import java.util.Vector;or import java.util.*;.Vectors are implemented with an array, and when that array is full and an additional elementis added, a new array must be allocated. Becauseit takes time to create a bigger array and copy theelements from the old array to the new array, it is a little fasterto create a Vector with a size that it will commonly be when full. Of course, if you knew thefinal size, you could simply use an array. However, for non-critical sections of codeprogrammers typically don't specify an initial size.

• Create a Vector with default initial size Vector v = new Vector();

• Create a Vector with an initial size Vector v = new Vector(300);

To Add elements to the end of a Vector

v.add(s); // adds s to the end of the Vector v

To get the elements from a Vector (ListIterator)

You can use a for loop to get all the elements from a Vector,but another very common way to go over all elements in a Vector is touse a ListIterator. The advantage of an iterator is that it it can be usedwith other data structures, so that if you later change to using a linkedlist for example, you won't have to change your code. Here is an exampleof using an iterator to print all elements (Strings) in a vector.The two most useful methods are hasNext(),which returns true if there are more elements, andnext(), which returns the next element.

ListIterator iter = v.listIterator();

while (iter.hasNext()) {

System.out.println((String)iter.next());

}

Common Vector Methods

There are many useful methods in the Vector class and its parent classes.Here are some of the most useful.v is a Vector,i is an int index,o is an Object.

|Method |Description |
|v.add(o) |adds Object o to Vector v |
|v.add(i, o) |Inserts Object o at index i, shifting elements up as necessary. |
|v.clear() |removes all elements from Vector v |
|v.contains(o) |Returns true if Vector v contains Object o |
|v.firstElement(i) |Returns the first element. |
|v.get(i) |Returns the object at int index i. |
|v.lastElement(i) |Returns the last element. |
|v.listIterator() |Returns a ListIterator that can be used to go over the Vector. This is a useful alternative to|
| |the for loop. |
|v.remove(i) |Removes the element at position i, and shifts all following elements down. |
|v.set(i,o) |Sets the element at index i to o. |
|v.size() |Returns the number of elements in Vector v. |
|v.toArray(Object[]) |The array parameter can be any Object subclass (eg, String). This returns the vector values in|
| |that array (or a larger array if necessary). This is useful when you need the generality of a |
| |Vector for input, but need the speed of arrays when processing the data. |

Old and New Vector Methods

When the new Collections API was introduced in Java 2 toprovide uniform data structure classes, the Vector classwas updated to implement the List interface. Use the List methods because they arecommon to other data structure. If you later decideto use something other than a Vector (eg, ArrayList, or LinkedList, your other codewill not need to change.

Even up thru the first several versions of Java 2 (SDK 1.4), thelanguage had not entirely changed to use the new Collections methods. For example, theDefaultListModel still uses the old methods, so if you are usinga JList, you will need to use the old method names. There are hints that they plan to change this, but still and interesting omission.

Replacements for old methods

The following methods have been changed from the old to the new Vector API.

|Old Method |New Method |
|void addElement(Object) |boolean add(Object) |
|void copyInto(Object[]) |Object[] toArray() |
|Object elementAt(int) |Object get(int) |
|Enumeration elements() |Iterator iterator() |
| |ListIterator listIterator() |
|void insertElementAt(Object, int) |void add(index, Object) |
|void removeAllElements() |void clear() |
|boolean removeElement(Object) |boolean remove(Object) |
|void removeElementAt(int) |void remove(int) |
|void setElementAt(int) |Object set(int, Object) |

Insuring use of the new API

When you create a Vector, you can assign it to a List (a Collections interface). This will guarantee that only the List methods are called.

Vector v1 = new Vector(); // allows old or new methods.

List v2 = new Vector(); // allows only the new (List) methods.

The Model 2 architecture for designing JSP pages is in reality, Model View Controller (MVC) applied to web applications. Hence the two terms can be used interchangeably in the web world. MVC originated in SmallTalk and has since made its way into Java community. Model 2 architecure and its derivatives are the cornerstones for all serious and industrial strength web applications designed in the real world. Hence it is essential for you understand this paradigm thoroughly. Figure 1.2 shows the Model 2 (MVC) architecture.

The main difference between Model 1 and Model 2 is that in Model 2, a controller handles the user request instead of another JSP. The controller is implemented as a Servlet. The following steps are executed when the user submits the request.

1. The Controller Servlet handles the user’s request. (This means the hyperlink in the JSP should point to the controller servlet). 2. The Controller Servlet then instantiates appropriate JavaBeans based on the request parameters (and optionally also based on session attributes). 3. The Controller Servlet then by itself or through a controller helper communicates with the middle tier or directly to the database to fetch the required data. 4. The Controller sets the resultant JavaBeans (either same or a new one) in one of the following contexts – request, session or application. 5. The controller then dispatches the request to the next view based on the request URL. 6. The View uses the resultant JavaBeans from Step 4 to display data. Note that there is no presentation logic in the JSP. The sole function of the JSP in Model 2 architecture is to display the data from the JavaBeans set in the request, session or application scopes.

[pic]

Model 2 Architecture.

Advantages of Model 2 Architecture

Since there is no presentation logic in JSP, there are no scriptlets. This means lesser nightmares. [Note that although Model 2 is directed towards elimination of scriptlets, it does not architecturally prevent you from adding scriptlets. This has led to widespread misuse of Model 2 architecture.]

With MVC you can have as many controller servlets in your web application. In fact you can have one Controller Servlet per module. However there are several advantages of having a single controller servlet for the entire web application. In a typical web application, there are several tasks that you want to do for every incoming request. For instance, you have to check if the user requesting an operation is authorized to do so. You also want to log the user’s entry and exit from the web application for every request. You might like to centralize the logic for dispatching requests to other views. The list goes on. If you have several controller servlets, chances are that you have to duplicate the logic for all the above tasks in all those places. A single controller servlet for the web application lets you centralize all the tasks in a single place. Elegant code and easier to maintain.

Web applications based on Model 2 architecture are easier to maintain and extend since the views do not refer to each other and there is no presentation logic in the views. It also allows you to clearly define the roles and responsibilities in large projects thus allowing better coordination among team members.

Similar Documents

Premium Essay

Stat

.... . . . . . . . . . . . . . . . . . . . . 9.2 Normal Hypothesis Test for Population Proportion p . . . . . . . . . . . . . . . . . . 9.3 The t-Test: Hypothesis Testing for Population Mean µ . . . . . . . . . . . . . . . . . 9.4 Possible Errors in Hypothesis Testing . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5 Limitations and Common Misinterpretations of Hypothesis Testing . . . . . . . . . . 1 1 6 10 15 17 Stat 3011 Chapter 9 CHAPTER 9: HYPOTHESIS TESTS Motivating Example A diet pill company advertises that at least 75% of its customers lose 10 pounds or more within 2 weeks. You suspect the company of falsely advertising the benefits of taking their pills. Suppose you take a sample of 100 product users and find that only 5% have lost at least 10 pounds. Is this enough to prove your claim? What about if 72% had lost at least 10 pounds? Goal: 9.1 Elements of a Hypothesis Test 1. Assumptions 2. Hypotheses Each hypothesis test has two hypotheses about the population: Null Hypothesis (H0 ): Alternative Hypothesis (Ha ): 1 Stat 3011 Chapter 9 Diet Pill Example: Let p = true proportion of diet pill customers that lose at least 10 pounds. State the null and alternative hypotheses for the diet pill example. 3. Test Statistic Definition: Test Statistic A test statistic is a measure of how compatible the data is with the null hypothesis. The larger the test statistic, the less compatible the data is with the null hypothesis. Most test statistics...

Words: 2046 - Pages: 9

Free Essay

Stats

...STAT 346/446 - A computer is needed on which the R software environment can be installed (recent Mac, Windows, or Linux computers are sufficient).We will use the R for illustrating concepts. And students will need to use R to complete some of their projects. It can be downloaded at http://cran.r-project.org. Please come and see me when questions arise. Attendance is mandatory. Topics covered in STAT 346/446, EPBI 482 Chapter 5 – Properties of a Random Sample Order Statistics Distributions of some sample statistics Definitions of chi-square, t and F distributions Large sample methods Convergence in probability Convergence in law Continuity Theorem for mgfs Major Theorems WLLN CLT Continuity Theorem Corollaries Delta Method Chapter 7 – Point Estimation Method of Moments Maximum Likelihood Estimation Transformation Property of MLE Comparing statistical procedures Risk function Inadmissibility and admissibility Mean squared error Properties of Estimators Unbiasedness Consistency Mean-squared error consistency Sufficiency (CH 6) Definition Factorization Theorem Minimal SS Finding a SS in exponential families Search for the MVUE Rao-Blackwell Theorem Completeness Lehmann-Scheffe Location and scale invariance Location and scale parameters Cramer-Rao lower bound Chapter 9 - Interval Estimation Pivotal Method for finding a confidence interval Method for finding the “best” confidence interval Large sample confidence intervals ...

Words: 321 - Pages: 2

Premium Essay

Stat

...STAT 302 – Statistical Methods Lecture 8 Dr. Avishek Chakraborty Visiting Assistant Professor Department of Statistics Texas A&M University Using sample data to draw a conclusion about a population • Statistical inference provides methods for drawing conclusions about a population from sample data. • Two key methods of statistical inference: o o Confidence intervals Hypothesis tests (a.k.a., tests of significance) Hypothesis Testing: Evaluating the effectiveness of new machinery at the Bloggs Chemical Plant • Before the installation of new machinery, long historical records revealed that the daily yield of fertilizer produced by the Bloggs Chemical Plant had a mean μ = 880 tons and a standard deviation σ = 21 tons. Some new machinery is being evaluated with the aim of increasing the daily mean yield without changing the population standard deviation σ. Hypothesis Testing: Evaluating the effectiveness of new machinery at the Bloggs Chemical Plant Null hypotheses • The claim tested by a statistical test is called the null hypothesis. The test is designed to assess the strength of the evidence against the null hypothesis. Usually the null hypothesis is a statement of “no effect” or “no difference”, that is, a statement of the status quo. Alternative hypotheses • The claim about the population that we are trying to find evidence for is the alternative hypothesis. The alternative hypothesis is one-sided if it states that a parameter is larger than or...

Words: 921 - Pages: 4

Premium Essay

Stats

...SAMPLE MULTI-YEAR LEASE AGREEMENT This Lease Agreement is entered into on this ___ day of _____________, 2009, by and between ________________ as lessor (“Lessor”), and____________________, as lessee (“Lessee”), for the Lease of certain land bounded by ____________in _______________, for the purpose of establishing and developing an agricultural enterprise. I. Prologue and Statement of Purpose Whereas both parties share a mutual interest in the long-term health and productivity of the agricultural lands and related features described below; and whereas the Lessor wishes to offer a secure and affordable farming opportunity to the Lessee; and whereas the Lessor wishes the property to be maintained according to high standards of stewardship, the parties agree as follows: II. Description of Leased Premises a) The Premises shall consist of cropland and other land, roads and structures as more particularly described in Attachment A. b) If applicable: So that the Lessee can reside in close proximity to the land and provide for its care and supervision, Lessor and Lessee shall also be parties to a separate residential lease agreement for a term beginning on _________ and ending on ____________ for the farmhouse property located at ________________ (the “Residential Lease”). If the parties agree to an extension of the term of this Lease, either via an amendment to this Lease or the execution of a new lease between the parties, Lessor shall also offer Lessee an extension of the Residential...

Words: 2579 - Pages: 11

Premium Essay

Stats

...2010 / 2011 CSI Computer Crime and Security Survey 15th annual 2010/2011 Computer CrIme and SeCurIty Survey www.GoCSI.com 1 2010 / 2011 CSI Computer Crime and Security Survey by Robert Richardson, CSI Director 2010 / 2011 CSI Computer Crime and Security Survey With this document, the CSI Survey achieves its fifteen-year mark. Both the aims and format of the survey continue to evolve. As you’ll see in the findings that follow, many of the results reported by our respondents easily could have been predicted based on looking at results from the past several years. There has always been an almost surprising stability to answers about tools and methodology in this survey and this year is not an exception. What is different, broadly speaking, is that there is considerably more context within which these results may be interpreted. There are a number of very good reports of various kinds now available on the Web. All of them that we’re aware of, with the exception of this one, are either provided by vendors or are offered by analyst firms. That’s not to say that there’s anything wrong with these sources. A tremendous amount of useful information is offered in these various reports. But independent research seems fundamental and we believe the survey provides this. Beginning last year, there were three important changes to this survey. The first was that a “Comprehensive” edition was offered, one of its key objectives being to attempt to take other report findings...

Words: 16095 - Pages: 65

Premium Essay

Stats

...Gallup Poll. June 1-4, 2013. N=1,529 adults nationwide. Margin of error 3. "How closely have you followed the news that the Internal Revenue Service, or IRS, gave greater scrutiny to conservative political groups applying for tax exempt status than it did to liberal political groups: very closely, somewhat closely, not too closely, or not at all?" Very closely Somewhat closely Not too closely Not at all Unsure % % % % % 6/1-4/13 20 34 24 21 1 "How serious do you consider the IRS giving greater scrutiny to conservative political groups applying for tax-exempt status: very serious, somewhat serious, not too serious, or not serious at all?" Very serious Somewhat serious Not too serious Not serious at all Unsure % % % % % 6/1-4/13 49 28 12 7 4 "Do you think high-ranking Obama administration officials were aware of IRS targeting of conservative groups, or do you think knowledge of the practice was mainly limited to IRS employees in the Cincinnati office where applications for tax-exempt status are processed?" N=755 margin of error 4 High-ranking officials were aware Mainly Cincinnati employees Unsure % % % 6/1-4/13 50 36 14 "Do you think high-ranking IRS officials in Washington were aware of IRS targeting of conservative groups, or do you think knowledge of the practice was mainly limited to IRS employees in the Cincinnati office where applications...

Words: 452 - Pages: 2

Premium Essay

Stats

...1. This question pertains to the following SPSS output from a One Sample t-test used to obtain a confidence interval for a mean. |One-Sample Statistics | | |N |Mean |Std. Deviation |Std. Error Mean | |Probability of buying a standard |1000 |30.12 |21.205 |.671 | |size hybrid auto within 3 years | | | | | |One-Sample Test | | |Test Value = 0 | | | | |N |Mean |Std. Deviation |Std. Error Mean | |Probability of buying a standard |1000 |34.64 |22.090 |.699 | |size electric auto within 3 years | | | | | |One-Sample Test ...

Words: 380 - Pages: 2

Free Essay

Stats

...Forcing early retirements Forcing early retirement is a huge problem, there are rumours that there is a case of forcing early retirements at Loxley. Forcing early retirement is the involuntary ending of one's career because of a layoff, health problems or disability. Age discrimination means employers fail to hire or promote a worker or avoid training a staff member based on his age. Forcing an employee into early retirement based exclusively on age is also discriminatory. Employer discrimination also involves firing an employee or forcing the staff member to quit before earning company retirement benefits. One of the reasons why older workers would be forced into early retirements is due to the fact that younger workers earn less pay compared with senior workers and managers. Eliminating a division of senior staff saves money and also eliminates imminent company retirement benefits by letting the older workers go before the official retirement age. Using the bottom 10 employees as a sample of the entire 144 employees, we find that the correlation between the number of years an employee is at the company is lowly correlated with their performance score. The correlation coefficient is 0.2071 The top 10 employees’ correlation coefficient is 0.2964 This tells us that the number of years that an employee has been with the company does not affect the employees’ score by much. This leads to reason that the rumors about the company forcing early retirements have no substance...

Words: 344 - Pages: 2

Premium Essay

Stat

...Chapter  one,  What  is  Strategy?   •  What  is  our  present  situa4on?   –  Business  environment  and   industry  condi4ons   –  Firm’s  financial  and   compe44ve  capabili4es   •  Where  do  we  want  to  go  from   here?   –  Crea4ng  a  vision  for  the  firm’s   future  direc4on   •  How  are  we  going  to  get   there?   –  CraBing  an  ac#on  plan  that   will  get  us  there   The    Strategy-­‐Making,    Strategy-­‐Execu4ng     Process   1 WHAT  IS  STRATEGY  ABOUT?   •  Strategy  is  all  about   –  How  to  outcompete  rivals.   –  How  to  respond  to  economic  and   market  condi4ons  and  growth   opportuni4es.   –  How  to  manage  func4onal  pieces   of  the  business.   –  How  to  improve  the  firm’s   financial  and  market   performance.   WHY  DO  STRATEGY  ?   •  A  firm  does  strategy:   –  To  improve  its  financial   performance.   –  To  strengthen  its   compe44ve  posi4on.   –  To  gain  a  sustainable   compe44ve.  advantage  over   its  market  rivals.   •  A  crea4ve,  dis4nc4ve   strategy:   –  Can  yield  above-­‐average...

Words: 1618 - Pages: 7

Premium Essay

Stats

...First Day Procedures Online Statistics with Prof. Donna M. Smith 1. 2. I will be not be using Canvas just the ALEKS web page! Watch the 2 minute video on ALEKS to understand the ALEKS program if you have not already done so. You will need an email account. Free email accounts are available from GMAIL , Yahoo (http://www.yahoo.com/), AOL (http://www.aol.com/ ) and Hotmail (www.hotmail.com). You will need the blue 10 digit course code to sign up on ALEKS. It is on the first page of the course syllabus under Course Information – Codes Needed to Register with ALEKS. The class is open early this semester if you want to get started now. 3. 4. 5. You will need a Student Access Code (this is just a sample - 6AYM7P3FTR-HS32G-5A3YA). The Student Access Code is located in the inside back cover of the ALEKS user guide that you can purchase from the bookstore. You can purchase one online at http://catalogs.mhhe.com/aleks/index.do Most students said they did not use the e-Book because they felt that my movies along with the ALEKS explanations were sufficient but for an additional $11, students like having the e-book as an option. or at the college bookstore at http://sierra.bncollege.com/webapp/wcs/stores/servlet/TBWizardView ?catalogId=10001&storeId=19556&langId=-1&level=1 If there are any delays please text or call me at 916-813-9027 or email me at dosmith@sierracollege.edu 6. Sign Up On ALEKS: www.aleks.com 1. 2. 3. 4.  Email Address – See Item 2 above Sierra...

Words: 788 - Pages: 4

Premium Essay

Stats

...NORTHEASTERN UNIVERSITY - GRADUATE SCHOOL OF BUSINESS ADMINISTRATION MGSC 6200: DATA ANALYSIS Spring, 2015 Instructor Information Name: Dr. Nizar Zaarour E-mail address: n.zaarour@neu.edu Office: 214 Hayden Hall Office hours: Monday and Wednesday: 12 – 2 PM and by appointment. Course Overview The objectives of this course are: (1) To provide you with an understanding of statistical methods and techniques and their usefulness in the decision-making process, (2) To expose you to the methods of descriptive and inferential statistics and how can be used to solve business problems, (3) To improve upon your data analysis and computer skills, (4) To help you develop the skills to recognize the appropriate statistical tool to analyze business problems, and (5) To provide you with the necessary tools for critical evaluation, correct interpretation, and presentation of the results of statistical analyses. Textbook and Software 1) Business Statistics: For Contemporary Decision Making, 7th Edition, by Ken Black, (Wiley). 2) Microsoft Excel. Course Organization The course web page is located in the Blackboard system at http://blackboard.neu.edu. Course materials and announcements will be posted on the course site. A Blackboard tutorial is available at http://www.discoveringblackboard.neu.edu. The textbook is quite easy to read and covers a lot of ground. However, some of the topics are not covered in depth. Class discussions, handouts, and my lecture notes will fill these gaps. Course...

Words: 1018 - Pages: 5

Premium Essay

Stats

...Clara Arias Business Statistics February 1, 2016 Nielsen Reflection While exploring Nielsen I realized the importance of knowing what we as consumers watch and buy. I personally don’t really watch TV at all; probably just a couple of shows but TV is not essential in my life. When I clicked on “Cable Network TV” I first saw these two programs called “Gold Rush” and “The Oreilly Factor” then the only thing I did was looked up these programs and read something about them since I didn’t really know about their existence. It’s probably unbelievable to you hearing this from me because nowadays almost everybody watches TV and everyone is aware of what is in the news. While looking up about “Gold Rush” I noticed it wasn’t a new series, it had actually been released since 2010 and now it is composed of 6 episodes. I think I should start watching TV since I felt I have been missing tons of stuff. In addition to this program I think it is essential to say that the network involved is “Disc”. I also went to look for most popular music and of course the first thing I saw was Justin Bieber with his song “Be yourself”, I usually listen to this song almost everyday because it is actually popular, but after knowing it is in the first place of ranking list I couldn’t help the craving of knowing how many reproductions it has on Youtube. Well it has about 247,768,905 reproductions in just 3 months, isn’t that crazy? I guess people are not surprised anymore about Justin’s fame. Another...

Words: 570 - Pages: 3

Premium Essay

Stats

...CASES DISPOSED, APPEALED, AND REVERSED IN HAMILTON COUNTY COURTS Common Pleas Court Judge Fred Cartolano Thomas Crush Patrick Dinkelacker Timothy Hogan Robert Kraft William Mathews William Morrissey Norbert Nadel Arthur Ney, Jr. Richard Niehaus Thomas Nurre John O� Connor Robert Ruehlman J. Howard Sundermann Ann Marie Tracey Ralph Winkler Total Total Cases Disposed 3,037 3,372 1,258 1,954 3,138 2,264 3,032 2,959 3,219 3,353 3,000 2,969 3,205 955 3,141 3,089 43,945 Appealed Cases 137 119 44 60 127 91 121 131 125 137 121 129 145 60 127 88 1,762 Reversed Cases 12 10 8 7 7 18 22 20 14 16 6 12 18 10 13 6 199 Common Pleas Court disposed 43, 945 total cases. The total number of cases appealed was 1,762, and the total number of cases reversed was 199. In all cases disposed in the Common Pleas Court, the probability of cases could be appealed and reversed is? Total reversed cases/ Total appealed cases= 199/1762= 0.11294 or 11.2% Domestic Relations court disposed a total of 30,499 cases. The total number of cases appealed was 106, and the total number of cases reversed was 17. In all cases disposed in the Domestic Relations Court, the probability of cases could be appealed and reversed is: Total reversed cases/ Total appealed cases=17/106= 0.16037 or 16% Municipal Court disposed of a total of 108,464. The total number of cases they appealed was 500, and the total number of cases reversed was 104. In all cases disposed in the Municipal Court, the probability of cases could be...

Words: 300 - Pages: 2

Premium Essay

Stats

...BUAD 310 – Spring 2011 - Dr. Arif Ansari Topics Covered –Simple Regression Homework # 4 - 100 points (Due date 4/4/2011- Monday) For Home Work 4, Turn in Part 1 (15 points), Question 1(20 points), Question 2 (20 points), Question 3 45 points). Part 1 MULTIPLE CHOICE [3 point each] 1. In Least squares regression, the regression line is obtained by minimizing, a) The total variation in the dependent variable. b) The sum of squares for error (SSE). c) The sum of squares for regression (SSR) d) The sum of squares for total (SST). e) None of the above 2. In a simple regression analysis involving 25 data points, the standard error of estimate is calculated as S( = 2.0 and the Fts = 10, then the information from regression line (SSR) should be, a) 60 b) 50 c) 40 d) 30 e) None of the above 3. In a statistics course, a linear regression equation was computed to predict the final exam score from the first quiz score. The equation obtained was Y = 10 + 0.9 X, where Y is the final exam score and X is the first quiz score. A prediction interval for Al Bundy who scored 95 on the first quiz and on the final exam scored 98 was computed. Also a confidence interval for mean score of 95 on the first quiz was computed. From this we can conclude: a) Al Bundy’s prediction interval in wider than the confidence interval. b) Al Bundy’s prediction interval in shorter than the confidence interval...

Words: 1807 - Pages: 8

Premium Essay

Stats

...Factors that Affect Credit Score? FICO makes the formulas and programs for all credit reporting agencies. The names of formulas and actual procedures are different from agency to agency, the basic factors affecting credit score are however the same and the basic formula and its constituents remain the same. The three different models for credit scoring by FICO include, BEACON score used by Equifax, Experian/Fair Isaac Risk Model used by Experian and EMPIRICA used by TransUnion. The companies do not disclose the exact formulas but as per FICO resources, the following are the things that make up a credit score and also tend to affect the score. * Payment History (35%): The payment history basically consists of all your past accounts and the regularity with which payments have been made. A bad and irregular payment history causes the score to drop down. * Amounts Owed (30%): The total amount of debts owed to other lenders is also an important consideration in the score calculation. The standard equation is, more the amounts owed, less is the credit score. Hence keep the credit history and current liabilities to the bare minimum. * Length of Credit History (15%): The length of the credit history is also considered. Rule of the thumb is that longer the history, lesser is the score. Thus avoid unnecessary borrowings and keep them to the bare minimum. * New Credit (10%): New credit consists of the newly borrowed loans or newly taken up credit cards. Keeping it small always helps, as...

Words: 834 - Pages: 4