DesignofDataProc_省略_alysisofVariance_Pin.docx
《DesignofDataProc_省略_alysisofVariance_Pin.docx》由会员分享,可在线阅读,更多相关《DesignofDataProc_省略_alysisofVariance_Pin.docx(6页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Advanced Materials Research Vols. 268-270 (2011) pp 2144-2149 (2011) Trans Tech Publications, Switzerland doi: 10.4028/www. scientific, net/AMR. 268-270.2144 Design of Data Processing System on Analysis of Variance Ping Li1,a, Lingke Zeng1b, Bo Wu1cand Xiaosu Cheng1 d 1South China University of Tech
2、nology, Guangzhou 510640, China aiamapple_, , G, Keywords: Visual Basic, analysis of variance, data processing system Abstract. Data processing system on analysis of variance is developed by using Visual Basic. In this document, it introduced conception and functions about analysis of variance in b
3、rief, and explained the design of data processing system on analysis of variance in detail. Further more, we evaluated the performance of data processing system. The result indicated that the system has excellent performance and it is useful in the production and experiment. Introduction In the test
4、 data processing, analysis of variance is a very practical and effective method of statistical test 1. It can be used to analyze the significance of relevant factors on test results in inspection and test. If there is only one variance factor, it is called one-way analysis of variance. If there are
5、many variance factors, it is called multi-factor analysis of variance. In multi-factor analysis of variance, two-factor analysis of variance is the most common. In many textbooks, most only introduce two-factor analysis of variance and three or more factors for the analysis of variance are mentioned
6、 less. The internal functionality provided by excel can easily implement two-factor analysis of variance, but it is powerless for three or more factors analysis of variance 2. In many scientific experiments, it often need to study the effect of three or more factors and their interactions, there are
7、 many different levels for each factor, in order to improve the reliability of tests, sometimes repeat the test several times. Therefore, to design a data processing system to meet these requirements is meaningful. The following describes the design of the system, some of the methods and techniques.
8、 Brief introduction of analysis of variance Production and testing process is often very complex. To investigate the reliability and impact factors of an analysis results, research often involves a lot of tests to get a lot of data. In the complex role of various factors, how to determine which fact
9、ors most affected the results and which factor plays a minor role? The method to process and determine data is analysis of variance. Using this method, we can determine the role of various factors which cause the differences in test results and their interactions. If there are several mutual indepen
10、dent factors that affect the test results, according to the addition theorem of variance, the total variance should be equal to the total sum of all variance. Analysis of variance is to decompose the total variance for each variance component and then analysis to determine by significance test and o
11、btain appropriate conclusions. It can determine the effects of different factors 3. If tests have many factors, the factors have many levels and tests are repeated, the workload will be very large. The system is able to solve the problem. Design of data processing system interface on analysis of var
12、iance There are four parts of the system interface 4. (1) Parameter settings. Using the popular pull-down menu, you can set the number of factors from lto 9, set the number of repetitions from 1 to 5. The number of level of each factor can be set from 2 to 10 5. Advanced Materials Research Vols. 268
13、-270 2145 (2) Data input. Data input with copy and paste function can be realized by using MSFlexGrid cyberware and a floating text box 6. The whole table data can be copied and pasted. Its very convenient. (3) Data processing. If you have finished inputting all the data, the button “data processing
14、” can be pressed, otherwise the prompt dialog which says “There is still a null value.” will pop up. After completion of data processing, the results will be displayed in the results column, including sources of variance, sum of square, degree of freedom, mean square, F value, etc. (4) Results savin
15、g. After completion of data processing, you can press the button “Save results” and save it as a excel document. The saved contents include parameter settings, test data and analysis of variance results. It is convenient for later queries. Data processing methods on analysis of variance Obtain the s
16、erial sources of variance. The serial sources of variance have one to one relationship between natural numbers. It is shown in Table 1. Table 1: The relationship between the serial sources of variance and natural numbers Natural number 1 2 3 4 5 Binary 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 Serial
17、letters D c B A D c B A D c B A D c B A D C B A Sources of variance A B AB c AC The implementation code is as follows: For i 二 1 To 2 A factor num 1 factor num is the amount of factors factor jname(i) 1 factorname is the name of source of variance For j = 0 To factor num - 1 If i 2 A j mod 2 Then fa
18、ctor name(i) 二 factor name(i) & Chr$(65 + j) End If Next Next Relationship between the role name and series of data. In the system, the test data is assigned to a two-dimensional array of data(i j), where i represents the number of repetitions and j represents test data No j. It has one to one relat
19、ionship between the role name of data, as shown in Table 2. Table 2: The relationship between the role name and series of data Series of data 0 1 2 3 4 5 The role name of date A1B1C1 A2B1C1 A1B2C1 A2B2C1 A1B3C1 A2B3C1 Series of data 6 7 8 9 10 11 The role name of date A1B1C2 A2B1C2 A1B2C2 A2B2C2 A1B
20、3C2 A2B3C2 Note: assuming the test has three factors, factor A has two levels, factor B has three levels and factor C has two levels. The implementation code is as follows: total num 1 total num represents the total number of data For i 二 0 To factornum - 1 total num 二 totalnum * levelnum(i) levelnu
21、m(i) is the number of level of factor No.i+1 Next lev num(O) 二 1 2146 Computationa 丨 Materials Science For i 二 1 To factornum lev num(i) = levjnum(i - 1) * level_num(i - 1) levjnum(i) is the product of the level numbers of the first i factors Next For i 二 0 To total num - 1 effectname(i) 二 MM effect
22、_name(i) represents the role name of data No.i+1 For j = 0 To factor num - 1 effect name(i) 二 effectname(i) & Chr$(65 + j) & Chr$(49 + i lev_num(j) Mod level_num(j) Next Next Calculation of degree of freedom. The implementation code is as follows: For i = 1 To 2 A factor num - 1 freedom(i) 二 1 1 fre
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- DesignofDataProc_ 省略 _alysisofVariance_Pin
限制150内