9, 2018 Eligibility. PSPP 1.4.1 has been released. The basic tasks in statistical analysis are calculating mean of a distribution etc,. Incidentally, it is still the case, some 60+ years after people started developing and publishing statistical algorithms, that the sources of many of the best routines are given in Fortran, not C. https://stats.stackexchange.com/questions/134708/c-code-programming-for-statistics/134722#134722, https://stats.stackexchange.com/questions/134708/c-code-programming-for-statistics/134711#134711, Avoid loops in R, as others have already suggested. To download R, please choose your preferred CRAN mirror. As mentioned in the comment, R is largely written in C and Fortran and is quite optimized. DENDROCLIM2002: A C+ + program for statistical. 1 double naive(double[] samples, int n) {2 double sum, squaresum; 3 for (int i; i … Program #1: Statistical Analysis of an Array The contents of an int array will be provided to you on eLearning. SAS (Statistical Analysis System) is a commercial statistical package that was developed during the 1960s and 1970s at North Carolina State University as part of an agricultural research project. C is a lot faster but coding is always heavy-duty. SAS (previously " Statistical Analysis System ") is a statistical software suite developed by SAS Institute for data management, advanced analytics, multivariate analysis, business intelligence, criminal investigation, and predictive analytics. Its usage has grown exponentially since then. It's available as a free online pdf from the author's website: I haven't used the C code, but have found parts of the book quite useful, both as an introduction to C and for the statistical topics. • Defect rates, the ratio of defects or errors to the total opportunities for defects or errors. Data Analysis Software tool that has the statistical and analytical capability of inspecting, cleaning, transforming, and modelling data with an aim of deriving important information for decision-making purposes. I wrote this C program which can perform all the basic operations of statistical analysis and also do curve fitting by method of least squares. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. R, if used correctly, should be fast. i am working on ubuntu. This is a strictly moderated site. A total of 27 concrete mixtures with three replicates (81 specimens) were consid… some values is called a distribution. A completely free add-in for Excel, Regressit can be used for multivariate descriptive data analysis and multiple linear regression analysis. Every element of this array is an int between 0 and 3000, except for the last element, which is - 1. GNU PSPP is a program for statistical analysis of sampled data. but anyhow, i am not … Easy to use. this has to be done for all the pixels in the image, which number like a few million. If you have any questions or concerns regarding any content published here, feel free to contact us using the Contact link below. There are three types of mean called Arithmetic Mean, Geometric Mean and Harmonic Mean. Its Arithmetic, Geometric and Harmonic means are 4.67, 4 and 3.43 respectively and are calculated from the formulas:These means are also called measures of central tendency.Range : The difference between maximum and minimum observations of the distribution is called the range of the distribution.Standard Deviation : Standard Deviation is the measure of deviation of the distribution from the mean of the distribution.Variance : The square of standard deviation of the distribution is called the variance of the distribution.The range, variance and standard deviation of the distribution 2, 4, 8 are 6, 6.22 and 2.49 respectively and are calculated from the formulas:Range, Variance and Standard Deviation are also called measures of dispersion.Coefficient of Correlation : It is a magnitude of relationship between two or more distributions. You might not want to write all your code in C for statistical computing. The information of each car contains the type of the vehicle, engine size, mileage, year, and price. Calculate the … so, i dont know if R can do this. They are:1) 'n' for number of observations in a distribution.2) 'x1', 'x2' up to 'xn' for 'n' observations in a distribution.3) 'y1', 'y2' up to 'yn' for 'n' observations in another distribution.Curve Fitting : Curve Fitting refers to the fitting of a distribution to a straight line, parabola etc,. 7) GNU Octave. Do not include your name, "with regards" etc in the comment. There is an introductory statistics book which uses C for everything, including a library written by the author Ben Klemens. Being the most popular educational website in India, we believe in providing quality content to our readers. With more than four decades of experience developing advanced statistical analysis software, SAS has an established reputation for delivering superior, reliable results. The utility of the proposed approach for optimizing the design of concrete mixture is illustrated considering a typical case in which trial mixtures were considered according to a full factorial experiment design involving three factors and their three levels (33). All variables involved in the factor analysis need to be interval and are assumed to be normally distributed. If you really know what your doing in R and it's still too slow, try switching to NumPy. Use proven, validated statistical methods. Is the point of looking for C code to be able to program in C, to speed up calculations, to provide interfaces to other platforms, or something else? Current versions (post 2015) have the brand name: IBM SPSS Statistics. This program calculates the statistical moments of a distribution: Mean, Variance, Skewness, etc. what i would like to do is carry out some simple statistical analysis on a 3D image (columns, rows, bands), for instance a linear regression on all the bands of a particular pixel, and then finding the p-value for the coefficients generated. Program to demonstrate the Gamma function. There are a lot of packages out there that utilize Rcpp to help with tasks that are generally faster in C, such as 'sliding window' problems. Are you aware that some underlying code in R is actually implemented in C? Error (w/z) indicates that each element in vector w experiences all the levels of z (i.e., z is a repeated measure). Some helpful ways are the following. Browse other questions tagged c compiler-errors classification text-analysis language-model or ask your own question. This tool presents an excellent alternative to Matlab. Calculate Incomplete Beta Function Ix (a,b) Computing the means and moments of a statistical variable. What are Data Analysis Software? Stata is not sold in pieces, which means you get everything you need in one package. The software allows one to explore the available data, understand and analyze complex relationships. Problem Write a C program to keep records and perform statistical analysis for a car sales agency. The Overflow Blog Learn to program BASIC with a Twitter bot scanf("%d",&b.id); => for scanning a character array, i.e.a string (it applies for a character too), there is no need of using "&" you can write as, scanf("%s",b[i].name); scanf("%c",b[i].sex); => simillarly, for printing, printf("%d%s%c",b[i].id,b[i].name,b[i].sex); Accurate. This program does curve fitting using the method of least squares.Program#include<stdio.h>#include<conio.h>#include<math.h>typedef long double val;val maximumvalue_obs(val A[],val b){val c,d;for(c=0,d=A[0];c<b;c++){if(A[c]>d)d=A[c];}return(d);}val minimumvalue_obs(val A[],val b){val c,d;for(c=0,d=A[0];c<b;c++){if(A[c]<d)d=A[c];}return(d);}val stddeviation_obs(val A[],val b){val c,d,e,f;for(c=0,d=0,e=0;c<b;c++){d+=A[c]/b;e+=(A[c]*A[c])/b;}f=sqrt(e-d*d);return(f);}void starlinedisplay(void){val a;for(a=0;a<77;a++)printf("*");printf("\n ");}void main(){val choice1,choice2,a,b,c,d,e,f,g,h,i,j,k,l,m,A[10],B[10];for(choice1=0;choice1<=5;choice1++){printf("\n 1.Measures of Central Tendency ");printf(" 2.Measures of Dispersion ");printf(" 3.Curve Fitting \n\n by using the Method of Least Squares ");printf(" 4.Coefficient of Correlation ");printf(" 5.Off ");printf("\n\n Enter your choice:");scanf("%lf",&choice1);if(choice1==1){printf("\n MEASURES OF CENTRAL TENDENCY \n\n");printf(" 1.Arithmetic Mean ");printf(" 2.Geometric Mean ");printf(" 3.Harmonic Mean ");printf("\n\n Enter your choice:");scanf("%lf",&choice2);if(choice2==1){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);if(a==floor(a)&&a>0){printf("\n Enter {observations} of data (A):");for(b=0;b<a;b++)scanf("%lf",&A[b]);for(b=0,c=0;b<a;b++)c+=A[b]/a;printf("\n Data (A) is: \n\n");for(b=0;b<a;b++)printf(" (%lf) ",A[b]);printf("\n\n Arithmetic Mean of Data (A) is {%lf} \n\n ",c);}elseprintf("\n Arithmetic Mean of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}else if(choice2==2){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);if(a==floor(a)&&a>0){printf("\n Enter {observations} of data (A):");for(b=0;b<a;b++)scanf("%lf",&A[b]);for(b=0,c=1;b<a;b++)c*=A[b];if(c<0&&(long int)a%2==0){printf("\n Data (A) is: \n\n");for(b=0;b<a;b++)printf(" (%lf) ",A[b]);printf("\n\n Geometric Mean of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}else{printf("\n Data (A) is: \n\n");for(b=0;b<a;b++)printf(" (%lf) ",A[b]);printf("\n\n Geometric Mean of Data (A) is {%lf} \n\n ",c);}}elseprintf("\n Geometric Mean of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}else if(choice2==3){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);if(a==floor(a)&&a>0){printf("\n Enter {observations} of data (A):");for(b=0;b<a;b++)scanf("%lf",&A[b]);for(b=0,c=0;b<a;b++)c+=(A[b]==0)? Vectorization. You may also want to compile your R code. No HTML formatting and links to other web sites are allowed. (B)=x+y(A)+zpow[(A),2] ");printf(" 3. (We As THE statistical language, R is the most powerful language for statistical analysis without any doubt. Long produced by SPSS Inc., it was acquired by IBM in 2009. You can frequently see calls from R to C in the source codes. Features: It can format the variables and value labels, set missing values, use controls and recode variables. Calling C code from R; I believe it also has some useful info on SQL. https://stats.stackexchange.com/questions/134708/c-code-programming-for-statistics/134830#134830, http://people.sc.fsu.edu/~jburkardt/c_src/c_src.html, High performance and parallel computing in R. The file is called "Array Analysis Array Input.txt".) By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy, 2021 Stack Exchange, Inc. user contributions under cc by-sa. I am wondering does anybody have any good source websites on statistical computing in C. Basically if most of the functions in R, especially matrix manipulations, are rewritten in C code, it will be super nice. Consider the distribution 2, 4, 8 for example. Statistical Guide to Data Analysis of Avian Monitoring Programs can be a useful complement to the field methods handbook. Absolutely no spam allowed. I wrote this C program which can perform all the basic operations of statistical analysis and also do curve fitting by method of least squares. Applications Due: March. The R Project for Statistical Computing Getting Started. In addition, it displays error message when error input(s) is/are given. I already know some websites. Statistical analysis is a study, a science of collecting, organizing, exploring, interpreting, and presenting data and uncovering patterns and trends. If you can substitute indexing/vector/matrix methods as @ac5 recommends, things speed up a lot. Its formula is:All the above formulas have some common variables. Exploratory factor analysis (EFA) is one of the most widely used statistical procedures in psychological research. 1. http://lib.stat.cmu.edu/apstat/. At the same time, we feel this Statistical Guide can be of use to field biologists studying other organisms besides terrestrial birds. Write detailed comment, relevant to the topic. For example, 2, 4, 8 is a distribution with 3 observations.Mean : Mean of the distribution is the average value of observations in the distribution. A step-by-step statistical approach is proposed to obtain optimum proportioning of concrete mixtures using the data obtained through a statistically planned experimental program. CNVstat allows the user to estimate or test the effects of CNVs and SNPs by maximizing the (observed-data) likelihood that properly accounts for differential … The Data Analysis Jumpstart Program is designed to instill and strengthen your data analysis skills at your pace, and at a discounted rate. Program should accept information about 4 cars. 2. Statistics is the branch of mathematics used in many other fields. (B)=x+y(A) ");printf(" 2. Simply, curve fitting refers to the finding of a curve whose behavior is as near as possible to that of the considered distribution. This online statistical analysis program runs within most web browsers. Nowadays, 91 of the top 100 companies on the 2013 Fortune Global 500 list use the software . program is used, that program is a source of systematic error due to finite precision and statistical error, if it uses randomness. Many businesses rely on statistical analysis and it is becoming more and more important. Time series analysis and temporal autoregression 17.1 Moving averages 588 17.2 Trend Analysis 593 17.3 ARMA and ARIMA (Box-Jenkins) models 599 17.4 Spectral analysis 608 18 Resources 611 18.1 Distribution tables 614 18.2 Bibliography 629 18.3 Statistical Software 638 18.4 Test Datasets and data archives 640 18.5 Websites 653 ... and this tendency has been continued by many computer packages which treat PCA as one option in a program for factor analysis… R is kind of slow when doing a lot of iterations. One of the main reasons is that statistical data is used to predict future trends and to minimize risks. Where can we find C code for statistical computing? For information on eligibility, see Section C. Eligibility Information. As THE statistical language, R is the most powerful language for statistical analysis without any doubt. Factor analysis is a form of exploratory multivariate analysis that is used to either reduce the number of variables in a model or to detect relationships among variables. Veracode is a static analysis tool that is built on the SaaS model. Data may be entered directly into the STATGRAPHICS online statistics software datasheet, copied and pasted using your system clipboard, or read from text, XML, or Excel files. SPSS Statistics is a software package used for interactive, or batched, statistical analysis. Our rigorous software testing and quality assurance program means you can count on the quality of each release. AcaStat is one of the best statistical analysis tools available online and it analyses data using very simple statistical tools. (Please check in the "Homework Input Files" folder of the "Course Homepage." Basic Concepts of StatisticsDistribution : Collection of data i.e. I would appreciate if you can provide me with other similar websites. You can also provide a link from the web. In addition to the statistical analysis, the program highlights problems with the data (outliers), generates plots and conducts statistical tests to aide engineering judgment if/when necessary and recommends alternate analysis methods if required. The program writes calculated objects to GIS files that can be imported into a GIS program, including shape, MIF/MID, BNA, and ASCII. This program doesn't give error outputs. This tool is mainly used to analyze the code from a security point of view. So what you might really want to do is to speed up your R code with some techniques. NumPy's often faster than R, and much easier to do data analysis with than C. I can't recommend trying to write your own version of R in C. You might not want to write all your code in C for statistical computing. The computer program EQS was developed to meet two major needs in statistical software. R is a free software environment for statistical computing and graphics. CNVstat is a command-line program written in C for the statistical association analysis of CNVs and SNPs. So what you might really want to do is to speed up your R code with some techniques. Thus, error propagation dictates that a scientist must account for this error. State Justice Statistics Program for Statistical Analysis Centers, 2018 . MacAnova is developed at the University of Minnesota and can be used for statistical analysis and matrix algebra. In our view, all field biologists will benefit from taking the equivalent of 2 or 3 I'll layer on that IMO if you are new to R, you should immediately start learning w/ the data.table package. Check this out for some useful tips: http://www.noamross.net/blog/2013/4/25/faster-talk.html. (max 2 MiB). This tool uses binary code/bytecode and hence ensures 100% test coverage. Fast. 6) MacAnova. The Rcpp package for R allows you to implement C directly in your code. Also, instead of using loops for iterations it may help formulating your program in vectors and matrices (where that is possible), that should work faster. STATISTICAL ANALYSIS IN THE GEOSCIENCES Grunsky, E.C. (1):(0);if(c==0){for(b=0,d=0;b<a;b++)d+=1/A[b];e=a/c;printf("\n Data (A) is: \n\n");for(b=0;b<a;b++)printf(" (%lf) ",A[b]);printf("\n\n Harmomic Mean of Data (A) is {%lf} \n\n ",e);}elseprintf("\n Harmonic Mean of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}elseprintf("\n Harmonic Mean of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}elseprintf("\n {%lf} IS NOT A VALID CHOICE:TRY AGAIN \n\n ",choice2);}else if(choice1==2){printf("\n MEASURES OF DEVIATION \n\n");printf(" 1.Range ");printf(" 2.Standard Deviation ");printf("\n\n Enter your choice:");scanf("%lf",&choice2);if(choice2==1){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);if(a==floor(a)&&a>0){printf("\n Enter {observations} of data (A):");for(b=0;b<a;b++)scanf("%lf",&A[b]);c=maximumvalue_obs(A,a)-minimumvalue_obs(A,a);printf("\n Data (A) is: \n\n");for(b=0;b<a;b++)printf(" (%lf) ",A[b]);printf("\n\n Range of Data (A) is {%lf} \n\n ",c);}elseprintf("\n Range of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}else if(choice2==2){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);if(a==floor(a)&&a>0){printf("\n Enter {observations} of data (A):");for(b=0;b<a;b++)scanf("%lf",&A[b]);c=stddeviation_obs(A,a);printf("\n Data (A) is: \n\n");for(b=0;b<a;b++)printf(" (%lf) ",A[b]);printf("\n\n Standard Deviation of Data (A) is {%lf} \n\n ",c);}elseprintf("\n Standard Deviation of Data (A) IS UNDEFINED:TRY AGAIN \n\n ");}elseprintf("\n {%lf} IS NOT A VALID CHOICE:TRY AGAIN \n\n ",choice2);}else if(choice1==3){printf("\n CURVE FITTING USING THE METHOD OF LEAST SQUARES \n\n");printf(" 1. If your use case is specific to matrix operations, I would consider Matlab as a good alternative (which is written in Fortran - which is faster than C). ©. Note that you cannot use while loops in the program. The basic tasks in statistical analysis are calculating mean of a distribution etc,. Stata is a complete, integrated statistical software package that provides everything you need for data analysis, data management, and graphics. Eligible applicants are limited to Statistical Analysis Centers established by state legislation or executive order. At the theoretical level, applied multivariate analysis based on methods that are more general than those stemming from multinormal distribution theory for independent observations have not been available to statisticians and researchers for routine use. In this program, students will: Learn the terms, jargon, and impact of business intelligence and data analytics. This tool proves to be a good choice if you want to write secure code. By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Make sure you are using the right data structures and leveraging the built in indexing/vector/matrix methods instead of too many loops. (B)=xpow[(A),y] ");printf(" 4. It works as statistical software for Mac, PC, iPad, tablet computer, or any device with a web browser. (B)=xpow[y,(A)] ");printf("\n\n Enter your choice:");scanf("%lf",&choice2);if(choice2==1){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);printf("\n Enter {number} of observations of data (B):");scanf("%lf",&b);if(a==floor(a)&&b==floor(b)&&a>0&&b>0&&a==b){printf("\n Enter {observations} of data (A):");for(c=0;c<a;c++)scanf("%lf",&A[c]);printf("\n Enter {observations} of data (B):");for(c=0;c<b;c++)scanf("%lf",&B[c]);for(c=0,d=0,e=0,f=0,g=0;c<a;c++){d+=A[c];e+=B[c];f+=A[c]*A[c];g+=A[c]*B[c];}if((a*f-d*d)!=0){h=(e*f-g*d)/(a*f-d*d);i=(a*g-e*d)/(a*f-d*d);printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to a ");printf("\n\n straight line is (B)={%lf}+{%lf}(A) \n\n ",h,i);}else{printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to a ");printf("\n\n straight line IS UNDEFINED:TRY AGAIN \n\n ");}}else{printf("\n Best Fit of Data (A) and Data (B) to a ");printf("\n\n straight line IS UNDEFINED:TRY AGAIN \n\n ");}}else if(choice2==2){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);printf("\n Enter {number} of observations of data (B):");scanf("%lf",&b);if(a==floor(a)&&b==floor(b)&&a>0&&b>0&&a==b){printf("\n Enter {observations} of data (A):");for(c=0;c<a;c++)scanf("%lf",&A[c]);printf("\n Enter {observations} of data (B):");for(c=0;c<b;c++)scanf("%lf",&B[c]);for(c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c<a;c++){d+=A[c];e+=B[c];f+=A[c]*A[c];g+=A[c]*B[c];h+=A[c]*A[c]*A[c];i+=A[c]*A[c]*B[c];j+=A[c]*A[c]*A[c]*A[c];}if((a*f*j+2*d*f*h-a*h*h-d*d*j-f*f*f)!=0){k=(e*f*j-e*h*h-d*g*j+d*h*i+f*g*h-f*f*i)/(a*f*j+2*d*f*h-a*h*h-d*d*j-f*f*f);l=(a*g*j-a*h*i-d*e*j+e*f*h+d*f*i-f*f*g)/(a*f*j+2*d*f*h-a*h*h-d*d*j-f*f*f);m=(a*f*i-a*g*h-d*d*i+d*f*g+d*e*h-e*f*f)/(a*f*j+2*d*f*h-a*h*h-d*d*j-f*f*f);printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to a ");printf("\n\n parabola is (B)={%lf}+{%lf}(A)+{%lf}pow[(A),2] \n\n ",k,l,m);}else{printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to a ");printf("\n\n parabola IS UNDEFINED:TRY AGAIN \n\n ");}}else{printf("\n Best Fit of Data (A) and Data (B) to a ");printf("\n\n parabola IS UNDEFINED:TRY AGAIN \n\n ");}}else if(choice2==3){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);printf("\n Enter {number} of observations of data (B):");scanf("%lf",&b);if(a==floor(a)&&b==floor(b)&&a>0&&b>0&&a==b){printf("\n Enter {observations} of data (A):");for(c=0;c<a;c++)scanf("%lf",&A[c]);printf("\n Enter {observations} of data (B):");for(c=0;c<b;c++)scanf("%lf",&B[c]);for(c=0,d=0,e=0,f=0,g=0;c<a;c++){d+=log(A[c]);e+=log(B[c]);f+=log(A[c])*log(A[c]);g+=log(A[c])*log(B[c]);}if((a*f-d*d)!=0){h=(e*f-g*d)/(a*f-d*d);i=(a*g-e*d)/(a*f-d*d);j=exp(h);k=i;printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to an ");printf("\n\n exponential curve is (B)={%lf}pow[(A),{%lf}] \n\n ",j,k);}else{printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to an ");printf("\n\n exponential curve IS UNDEFINED:TRY AGAIN \n\n ");}}else{printf("\n Best Fit of Data (A) and Data (B) to an ");printf("\n\n exponential curve IS UNDEFINED:TRY AGAIN \n\n ");}}else if(choice2==4){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);printf("\n Enter {number} of observations of data (B):");scanf("%lf",&b);if(a==floor(a)&&b==floor(b)&&a>0&&b>0&&a==b){printf("\n Enter {observations} of data (A):");for(c=0;c<a;c++)scanf("%lf",&A[c]);printf("\n Enter {observations} of data (B):");for(c=0;c<b;c++)scanf("%lf",&B[c]);for(c=0,d=0,e=0,f=0,g=0;c<a;c++){d+=A[c];e+=log(B[c]);f+=A[c]*A[c];g+=A[c]*log(B[c]);}if((a*f-d*d)!=0){h=(e*f-g*d)/(a*f-d*d);i=(a*g-e*d)/(a*f-d*d);j=exp(h);k=exp(i);printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to an ");printf("\n\n exponential curve is (B)={%lf}pow[{%lf},(A)] \n\n ",j,k);}else{printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Best Fit of Data (A) and Data (B) to an ");printf("\n\n exponential curve IS UNDEFINED:TRY AGAIN \n\n ");}}else{printf("\n Best Fit of Data (A) and Data (B) to an ");printf("\n\n exponential curve IS UNDEFINED:TRY AGAIN \n\n ");}}elseprintf("\n {%lf} IS NOT A VALID CHOICE:TRY AGAIN \n\n ",choice2);}else if(choice1==4){printf("\n Enter {number} of observations of data (A):");scanf("%lf",&a);printf("\n Enter {number} of observations of data (B):");scanf("%lf",&b);if(a==floor(a)&&b==floor(b)&&a>0&&b>0&&a==b){printf("\n Enter {observations} of data (A):");for(c=0;c<a;c++)scanf("%lf",&A[c]);printf("\n Enter {observations} of data (B):");for(c=0;c<b;c++)scanf("%lf",&B[c]);for(c=0,d=0,e=0,f=0;c<a;c++){d+=A[c]/a;e+=B[c]/b;f+=(A[c]*B[c])/b;}g=f-d*e;if((stddeviation_obs(A,a)*stddeviation_obs(B,b))!=0){h=g/(stddeviation_obs(A,a)*stddeviation_obs(B,b));printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Coefficient of Correlation of Data (A)");printf(" and Data (B) is {%lf} \n\n ",h);}else{printf("\n Data (A) is: \n\n");for(c=0;c<a;c++)printf(" (%lf) ",A[c]);printf("\n\n Data (B) is: \n\n");for(c=0;c<b;c++)printf(" (%lf) ",B[c]);printf("\n\n Coefficient of Correlation of Data (A)");printf(" and Data (B) IS UNDEFINED:TRY AGAIN \n\n ");}}else{printf("\n Coefficient of Correlation of Data (A)");printf(" and Data (B) IS UNDEFINED:TRY AGAIN \n\n ");}}else if(choice1==5){printf("\n ");starlinedisplay();exit(0);}else{printf("\n {%lf} IS AN INVALID CHOICE:TRY AGAIN \n\n ",choice1);choice1=0;}starlinedisplay();}getch();}ExplanationThis is a menu driven C program.