In[1]:=
![]()
In[2]:=
![a = {5.5, 5.7, 5.8, 6, 6.1, 6.3} ; b = {4.8616, 8} ; m = Mean [a]](HTMLFiles/bell2_2.gif)
Out[4]=
![]()
In[5]:=
![]()
Out[5]=
![]()
In[6]:=
![]()
Out[6]=
![]()
In[7]:=
![]()
Out[7]=
![]()
In[8]:=
![]()
Out[8]=
![]()
In[9]:=
![]()
Out[9]=
![]()
In[10]:=
![ndist = NormalDistribution[0, 1] ; f[x_] := (1 - CDF[ndist, x]) * 1000000 f[(Z)]](HTMLFiles/bell2_14.gif)
Out[12]=
![]()
In[13]:=
![]()
Out[13]=
![]()
In[14]:=
![1 - (Table[(1/Sqrt[2 * Pi]) * NIntegrate[E^(-(t^2/2)), {t, -Infinity, (Z)}]])](HTMLFiles/bell2_18.gif)
Out[14]=
![]()
In[15]:=
![]()
Out[15]=
![]()
In[16]:=
![bellPlot[lis_List, {var_, varmin_, varmax_}, opts___] := Module[{mn, sd}, mn = Mean[lis] ; sd = StandardDeviation[lis] ; pts = Map[ {PointSize[.02], Hue[0], Point[{#, 0.02}]} &, lis] ; plt = Plot[PDF[NormalDistribution[mn, sd], var], {var, varmin, varmax}, Epilog -> pts, opts]]](HTMLFiles/bell2_22.gif)
In[17]:=
![q = bellPlot[a, {x, 4, 8}, PlotStyle -> Hue[2/3], Frame -> True, GridLines -> Automatic, Prolog -> ({PointSize[.04], Hue[1/3], Point[{#1, .02}]} &) /@ b]](HTMLFiles/bell2_23.gif)
![[Graphics:HTMLFiles/bell2_24.gif]](HTMLFiles/bell2_24.gif)
Out[17]=
![]()
In[18]:=
![]()
Out[18]=
![]()
In[19]:=
![Export["c:\\web\\numbers2.txt", MapThread[StringJoin, {{"Defective parts per million = ", "Closest limit/sigma ratio = ", "Cpk = ", "Bell curve mean = ", "Sigma (standard deviation) = ", "Minimum distance from the mean to a tolerance limit = "}, Map[ToString, {NumberForm[e, 9], NumberForm[u, 9], NumberForm[g, 9], NumberForm[m, 9], NumberForm[s, 9], NumberForm[c, 9]}]}], "List"]](HTMLFiles/bell2_28.gif)
Out[19]=
![]()
Converted by Mathematica (October 22, 2002)