Publications by Priyank Goyal
Forecasting Strategies-1
A very efficient method of forecasting one variable is to find a related variable that leads it by one or more time intervals. We use cross correlation approach here. Second approach, is to use information about the sales of similar products in the past. Where we study the bass curve. A third strategy is to make extrapolations based on present tr...
2533 sym R (2265 sym/14 pcs) 7 img
ARIMA_Models
load("workspace.RData") ## Registered S3 methods overwritten by 'ggplot2': ## method from ## [.quosures rlang ## c.quosures rlang ## print.quosures rlang ## Registered S3 method overwritten by 'xts': ## method from ## as.zoo.xts zoo ## Registered S3 method overwritten by 'quantmod': ## method f...
2140 sym R (3622 sym/40 pcs) 5 img
Demand TimeSeries of Continental Breakfast
Loading Library load("workspace.RData") ## Registered S3 methods overwritten by 'ggplot2': ## method from ## [.quosures rlang ## c.quosures rlang ## print.quosures rlang ## Registered S3 method overwritten by 'xts': ## method from ## as.zoo.xts zoo ## Registered S3 method overwritten by 'quantmod': ## met...
934 sym R (3017 sym/27 pcs) 4 img
PAM_Retail_Clutering
df <- read.csv("Fashion_Clustering.csv",header=TRUE) df_scaled <- scale(df) # Scale the data head(df_scaled, n = 3) # View the firt 3 rows of the data ## Store.Area East West North South CRESCENT.NS ## [1,] -0.9928914 2.1806892 -0.5321496 -0.4646845 -0.8609614 -0.4115927 ## [2,] -0.3834972 -0.4560919 1.8690132 ...
293 sym R (7894 sym/17 pcs) 3 img
Choosing Best Clustering Algorithm
The clValid package compares two algorithm using two measures 1. Internal measures: Silhouette Coefficient and Dunn Index. 2. Stability Measures : It evaluates the consistency of a clustering result by comparing it with the cluster obtained after each column in removed one at a time. It has four measures APN, AD, ADM and FOM. Value of APN, ADM an...
1992 sym R (2244 sym/12 pcs)
Bar Plots
We will use the Dataset VADeaths. This is Death rates per 1000 in Virginia in 1940. They are cross classifed by the age groups(rows) and population group (Columns). Its a matrix with 5 rows and 4 columns head(VADeaths) ## Rural Male Rural Female Urban Male Urban Female ## 50-54 11.7 8.7 15.4 8.4 ## 55-59 ...
366 sym R (1708 sym/15 pcs) 11 img
BarPlot_Explanation
barplot(GNP ~ Year, data = longley) barplot(cbind(Employed, Unemployed) ~ Year, data = longley) op <- par(mfrow = 2:1, mgp = c(3,1,0)/2, mar = .1+c(3,3:1)) summary(d.Titanic <- as.data.frame(Titanic)) ## Class Sex Age Survived Freq ## 1st :8 Male :16 Child:16 No :16 Min. : 0.00 ## 2nd :8 Femal...
20 sym R (3558 sym/25 pcs) 15 img
Strip Charts
strip charts (i.e., one dimensional scatter plots or dot plots) in R. These plots are a good alternative to box plots when sample sizes are small. ToothGrowth$dose <- as.factor(ToothGrowth$dose) # Print the first 6 rows head(ToothGrowth, 6) ## len supp dose ## 1 4.2 VC 0.5 ## 2 11.5 VC 0.5 ## 3 7.3 VC 0.5 ## 4 5.8 VC 0.5 ...
3133 sym R (1457 sym/8 pcs) 6 img
One Way Anova
What is One Way ANOVA test The one-way analysis of variance (ANOVA), also known as one-factor ANOVA, is an extension of independent two-samples t-test for comparing means in a situation where there are more than two groups. In one-way ANOVA, the data is organized into several groups base on one single grouping variable (also called factor variabl...
4860 sym R (3771 sym/37 pcs) 4 img
AnovaWithR
Format of ANOVA Command is aov(Dependent_variable~independent_variable, data) We need a 2 column data with method in first column and score in second start with Vector for Each Column method1.score <- c(95,91,89,90,99,88,96,98,95) method2.score <- c(83,89,85,89,81,89,90,82,84,80) method3.score <- c(68,75,79,74,75,81,73,77) Then create a single ...
486 sym R (1005 sym/9 pcs) 1 img