欢迎来到得力文库 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
得力文库 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    DesignofDataProc_省略_alysisofVariance_Pin.docx

    • 资源ID:1143       资源大小:17.54KB        全文页数:6页
    • 资源格式: DOCX        下载积分:0金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要0金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    DesignofDataProc_省略_alysisofVariance_Pin.docx

    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 Technology, Guangzhou 510640, China aiamapple_ok163.com, blingkescut.edu.cn, Gbowuscut.edu.cn, dxschengscut.edu.cn 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 brief, 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 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 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 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 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. 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 factors 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 independent 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 obtain 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 variance 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-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” 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 saving. 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 serial 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 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 factor 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 relationship 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 A1B3C2 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) levelnum(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_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 freedom(i) is degree of freedom of source of variance No. i For j 二 0 To Len(factor_name(i) - 1 freedom(i) 二 freedom(i) * (levelnum(Asc(Mid$(factor_name(i), j + 1, 1) - 65) - 1) Next Next Algorithm of data processing. The main implementation code is as follows: For i 二 0 To 9 ki(i) = 0 Next data_total = 0 'data_total is difference between sum of square and square of sum divided by total number of data total = 0' total is the sum of all data For i 二 0 To total num - 1 data_sum(i) 二 0 ' data_sum(i) is the sum of data of repeated test of the role name No.i+1 For j = 0 To repeat num - 1 data_sum(i) = data_sum(i) + data(j, i) data_total = data_total + data(j, i) A 2 total = total + data(j, i) Next Next data_total = datatotal _ total A 2 / (repeat_num * totalnum) For i 二 0 To factornum - 1 For j = 0 To levelnum(i) - 1 fac_name(i, j) = Chr$(65 + i) & Chr$(49 + j) Next Next For j = 1 To 2 A facto r n u m - 1 square_sum(j) = 0 ' square_sum(j) is the sum of square of source of variance No j 1 1 = 0 For k 二 0 To Len(factorname(j) - 1 For m = 0 To factornum _ 1 If Mid$(factorjname(j), k + 1, 1) = Chr$(65 + m) Then ki(ll)二 m 一 11 =11 + 1 End If Next Next Advanced Materials Research Vols. 268-270 2147 For fO = 0 To leveljnum(O) - 1 flag 1(0) 二 True 1(0)二 fO For fl 二 0 To levelnum(l) - 1 flagl(l) = True i = f i For f2 = 0 To level_num(2) - 1 flagl(2)二 True 1(2) = £2 sumi = 0 For i = 0 To total num - 1 flag 二 True For m = 0 To Len(factor_name(j) - 1 flag = (flag And InStr(l, effect name(i), fac_name(ki(m), l(ki(m) Next If flag Then sumi = sumi + data sum(i) End If _ Next square_sum(j) = square_sum(j) + sumi A 2 For k 二 0 To Len(factorname(j) - 1 If ki(k) = 2 Then flagl(2) = False End If Next If flagl(2) 二 True Then Exit For End If Next For k = 0 To Len(factor_name(j) - 1 If ki(k) 二 1 Then flagl(l) False End If Next If flag 1(1) = True Then Exit For End If Next For k 二 0 To Len(factorname(j) - 1 If ki(k) = 0 Then flagl(O) = False End If Next If flag 1(0)二 True Then Exit For End If Next num 二 1 For k 二 0 To Len(factor_name(j) - 1 num = num * level_num(ki(k) Next square_sum(j) = square_sum(j) / (repeat num * total num / num) 2148 Computationa 丨 Materials Science square_sum(j) = square_sum(j) - total A 2 / (repeat num * total num) Next Applications and features of data processing system on analysis of variance Applications of data processing system on analysis of variance. When filling a certain beverage with a canning machine, study the loss of volume caused by the formation of the bubble. Consider three factors: nozzle (A), operator (B), working pressure (C). Three factors all have three levels, each experiment was repeated twice, and the test data are shown in Table 3 7. Table 3: Test data of volume loss when canning Factor C: working pressure ra.ULUi 1 2 3 Factor A: nozzle 1 2 3 1 2 3 1 2 3 Factor B: operator 1 -35, -25 17,24 -39, -35 100, 75 55, 120 90, 113 4,3 -23, -5 -30, -55 2 -45,-60 -65,-58 -55, -67 10, 30 -55,-44 -28, -26 -40,-30 -64,-62 -61, -52 3 -40, 15 20,4 15, -30 80, 54 110,44 110, 135 31,36 -20, -31 54,4 Use this system to analyze these data and the results are listed in Table 4. Table 4: Analysis of variance of test data of volume loss when canning Sources of variance Sum of square Degree of freedom Mean square F Significant level A 865.7778 2 432.8889 1.0421 B 60781 2 30390.5 73.1616 * 氺 AB 6396.889 4 1599.222 3.8499 * c 68187.11 2 34093.56 82.0762 * 氺 AC 7514.111 4 1878.528 4.5223 * BC 12462.56 4 3115.639 7.5005 * 氺 ABC 4634.556 8 579.3194 1.3946 Error 11215.5 27 415.3889 Population 172057.5 53 Look-up F distribution table shows: F(0.05, 2, 27) = 3.36, F(0.05, 4, 27) 二 2.74 and F(0.05, 8, 27) = 2.32. Table 4 shows that the main effect of factor A (nozzle) is not significant, while the main effect of factor B (operator) and factor C (working pressure) have a very high significance, and all two-factor interactions have a high significance. Therefore, the nozzle has little effect on the test, working pressure and operator have a great impact on the test, and their interactions are also high. Features of data processing system on analysis of variance. The data processing system on analysis of variance has the following features. (1) Simple operation. Users only need to set parameters, input the corresponding test data, press the button and the results of variance analysis can be seen. (2) System is stable and reliable. When user input a null value, it will pop-up dialog box to provide wizard. Properties of the button will vary with the different system states, and the user can determine the system states by the state of the button. It plays the role of the wizard. So the system will not go wrong or crash. Advanced Materials Research Vols. 268-270 2149 (3) Easy to input data. User can input a number of test data to the system by copy and paste method, and not need to input data one by one through keyboard. (4) Easy to save data. Analysis of variance results can be saved as excel document, the data includes three parts: parameter settings, test data and analysis of variance results. It allows user to query all of the information of analysis of variance clearly. (5) Accurate and reliable results. Analysis of variance results are accurate to four decimal places. Through many tests, the results are very reliable. Conclusion Data processing system on analysis of variance has good performance and simple operation. In the production and experiment it can play a significant role. For example, medical researchers can use this system to study the expression status of proliferating cell nuclear antigen (PCNA) in gastric cancer (A group), gastric cancer tissues (B group) and normal gastric mucosa (C group). As another example, in pulp production test, you can use this system to study the impact of cooking time, pressure and slurry concentration on paper strength. Data processing system on analysis of variance has a great role in production. It also has a certain significance in teaching. Reference 1 H. Wan, X.S. Li, Q. Su, et al.: Multivariate Factoral Variance Analysis and Examples of SAS Program. Modem Preventive Medicine, Vol. 37(5), pp. 804-806, (2010) 2 F. Ren: Variance Analysis with Excel for Interacted-Orthogonal Design. Computer Knowledge and Technology, Vol. 6(21), pp. 5800-5801, (2010) 3 W.J. Zhang, Y.H. Qi: Algorithms Integration and Network Implementation of Eight Univariate Variance Analyses. Computer Applications and Software, Vol. 22(3), pp. 122-125, (2005) 4 J.J. Wei: One Hundred Examples of Visual Basic Cyberware Program. Science Press, P.R.China, Beijing, (2002) 5 P. Li, L.K. Zeng, A.Z. Shui, et al.: Design of Numerical Simulation Program for Thermal Field in Kiln Wall Based on Visual Basic. Industrial Furnace, Vol. 28(2), pp. 36-39, (2006) 6 M. Fu: On Realization of Edit Capability of MSFLEXGRID Cyberware Grid Cell in VB. Sci/Tech Information Development & Economy, Vol. 11(2), pp. 32-33, (2001) 7 D.C. Zhang: Experiment Design and Data Evaluation. South China University of Technology Press, P.R. China, Guangzhou, (2001)

    注意事项

    本文(DesignofDataProc_省略_alysisofVariance_Pin.docx)为本站会员(a****)主动上传,得力文库 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知得力文库 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于得利文库 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

    © 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

    黑龙江省互联网违法和不良信息举报
    举报电话:0468-3380021 邮箱:hgswwxb@163.com  

    收起
    展开