Analyze Statistic by Using SPSS 2 nd Day 1Fadwa Flemban
الإعجاز الإحصائي للقرآن الإعجاز الإحصائي للقرآن يعني أننا عاجزون عن تأليف كتاب فيه نظام رقمي دقيق لتكرار الكلمات مثل القرآن. } إِنَّ هَذِهِ تَذْكِرَةٌ فَمَنْ شَاءَ اتَّخَذَ إِلَى رَبِّهِ سَبِيلاً} هذه الآية الكريمة نجدها في موضعين فقط من القرآن : 1 ـ { إن هذه تذكرة فمن شاء اتخذ إلى ربه سبيلاً } [ المزمل : 19 [ 2 ـ { إن هذه تذكرة فمن شاء اتخذ إلى ربه سبيلاً } [ الإنسان : 29[ 1 ـ لماذا تكررت هذه الآية مرتين في القرآن ؟ 2 ـ لماذا كان رقم الآيتين : 19 ـ 29 ؟ 3 ـ لماذا كان تسلسل سورة المزمل قبل سورة الإنسان ؟ سوف نجيب على هذه الأسئلة وغيرها بلغة الأرقام ، فتكرار هذه الآية في القرآن مرتين له حكمة ، وقد اختار اللّه تعالى لهذه الآية رقمين 19 و 29 وذلك لحكمة أيضاً ، ويمكن استنتاج جزء من هذه الحكمة بالاعتماد على الرقم 7. والفكرة الأساسية في هذا البحث تعتمد على صَفّ أرقام الآيات بجانب بعضها وذلك حسب تسلسل هذه الآيات في القرآن (وليس جَمع الأرقام ) وعندما نصُفّ أرقام الآيتين 19ـ 29 ينتج عدد جديد هو 2919 هذا العدد يُقرأ : ألفان وتسعمئة وتسعة عشر ، وهو من مضاعفات الرقم 7 ، أي يقبل القسمة تماماً على 7 من دون باقٍ : 417 × 7 = Fadwa Flemban
Probability Distributions بعض التوزيعات الاحتمالية 1.The normal distribution 2.The Standard normal distribution 3.T distribution 4.Chi-square distribution 3Fadwa Flemban
(1)Normal Distribution The normal distribution is a probability distribution that associates the normal random variable X with a cumulative probability. The normal distribution is defined by the following equation:probability distribution normal random variable cumulative probability Y = [ 1/σ * sqrt(2π) ] * e -(x - μ)2/2σ2 the sampling distribution of a statistic will follow normal distribution, as long as : 1- the sample size is sufficiently large.sampling distribution normal distribution 2-we know the standard deviation of the population. Fadwa Flemban4
The Curve of Normal Distribution: Fadwa Flemban5 Find P(Z > a)? P(Z > a) = 1 - P(Z < a) Find P(a < Z < b)? P(Z < b) - P(Z < a) = P(Z < z)
Difference between these curves: The curve on the left is shorter and wider than the curve on the right, because the curve on the left has a bigger standard deviation. Fadwa Flemban6
(2)The standard normal distribution The standard normal distribution is a special case of the normal distribution.normal distribution the following equation: z = (X - μ) / σ Z ~ N ( μ, σ ) in standard normal distribution: Z ~ N ( 0, 1 ) Fadwa Flemban7
Standard Normal Distribution Table Find the cumulative probability of a z-score equal to -1.31? Fadwa Flemban8 z The table shows that the probability that a standard normal random variable will be less than -1.31, that is, P(Z < -1.31) =
قال تعالى : ( اللَّهُ الَّذِي خَلَقَكُم مِّن ضَعْفٍ ثُمَّ جَعَلَ مِن بَعْدِ ضَعْفٍ قُوَّةً ثُمَّ جَعَلَ مِن بَعْدِ قُوَّةٍ ضَعْفاً وَشَيْبَةً يَخْلُقُ مَا يَشَاءُ وَهُوَ الْعَلِيمُ الْقَدِيرُ ) [ الروم : 54] Fadwa Flemban9 ضعف قـوة ضعف
(3) t Distribution sample sizes are sometimes small, and often we do not know the standard deviation of the population. When either of these problems occur, statisticians rely on the distribution of the t statistic. The equation : t = [ x - μ ] / [ s / sqrt( n ) ] Degrees of Freedom: the sample size minus one (n-1, α). Fadwa Flemban10
Fadwa Flemban11 Curve of t Distribution
(4)Chi-Square Distribution using the following equation: Χ 2 = [ ( n - 1 ) * s 2 ] / σ 2 degrees of freedom Χ 2 : n - 1 Fadwa Flemban12
Curve of Chi-Square As the degrees of freedom increase, the chi-square curve approaches a normal distribution. Fadwa Flemban13
Fadwa Flemban14 Inferential Statistics الاحصاء الاستدلالي
The First Topic in Inferential Statistics Estimation Fadwa Flemban15
Estimation التقدير When a parameter is being estimated, the estimate can be either a single number or it can be a range of scores.parameter When the estimate is a single number, the estimate is called a "point estimate" When the estimate is a range of scores, the estimate is called an interval estimate. Confidence interval are used for interval estimates. 16Fadwa Flemban the population….. estimate of Sample ….. Mean µ mean M or variance σ²variance s²
Estimation by SPSS Analyze Descriptive Statistics Explore Fadwa Flemban17
Fadwa Flemban18 Statistics
Output: Fadwa Flemban < µ < µ = σ ² = All the estimations at Confidence interval 95%
The Second Topic in Inferential Statistics Testing Hypotheses Fadwa Flemban20
Fadwa Flemban21 Inferential Statistics الاحصاء الاستدلالي
Tests Concerning a Single Mean اختبارات الفروض حول متوسط المجتمع Single mean µ = µₒ n>30 Z Distribution n ≤30 T Distribution Fadwa Flemban22
Summary of Computational Steps Specify the null hypothesis and an alternative hypothesis. Compute M = ΣX/N. Compute, if σ unknown compute Compute, if n<30 compute where M is the sample mean and µ is the hypothesized value of the population. Use a z table to determine p from z, orz table Use a t table to compute p from t and df (df=N-1).t table Fadwa Flemban23
Testing Hypotheses اختبارات الفروض Consider an experiment designed to test the null hypothesis that µ = 10. The test would be conducted with the following formula: where M (the statistic) is the sample mean.samplemean Fadwa Flemban24
Tests Concerning a Single Mean Example n > 30 A random sample of 100 deaths in the Philippines last year showed an average life span of 69.3 years. Assuming a population standard deviation of 7.8 years. does this seem to indicate that the life span today is lesser than 70 years? Use a 0.01 level of significance? Fadwa Flemban25
We will solve this testing problem in 5 steps: 1. H0: = 70 years. H1: < 70 years. 2.Use a = Since we are testing the mean life span and the population standard deviation is known ( / = 0.78). Using normal distribution, 4. At 0.01 level of significance, we reject if and only if Z < z 0.01= Based from the rejection region (and critical value – 2.33), we see that the z value is outside the rejection region (or – 0.90 is greater than – 2.33). Thus, we do not reject the null hypothesis and conclude that the life expectancy of Filipinos is 70 years. Solution: Z = Rejection Region 26Fadwa Flemban
Note The previous Example We cannot use SPSS because: 1- the standard deviation is known. 2- and we haven’t data. Fadwa Flemban27
Tests Concerning a Single Mean Example n ≤ 30 Fadwa Flemban28 A teacher of Arabic language was assumed that the mean of students' degree is 68, drew a sample from the students' degree as follows (n=30): Is teacher's claim is true at 0.01 level of significance ? A teacher of Arabic language was assumed that the mean of students' degree is 68, drew a sample from the students' degree as follows (n=30): Is teacher's claim is true at 0.01 level of significance ?
H 0 : µ = 68 H 1: µ 68 Fadwa Flemban29 SPSS Solution:
Fadwa Flemban30 Analyze compare mean One-sample test
Fadwa Flemban31 Option
Fadwa Flemban32 Output (P-value) > 0.01 (α) don't reject Hₒ the teacher's claim is true. (P-value) > 0.01 (α) don't reject Hₒ the teacher's claim is true.
Fadwa Flemban33 Tests of Differences between Means اختبارات الفروض حول متوسطي مجتمعين Two means µ1 = µ2 Two Independent Samples Independent samples t-test Two Dependent Samples Paired samples t-test
Tests of Differences between Means, Independent Samples Example: If we have the following marks for students (male & female): Is there a difference between the mean of marks at level of significant 0.05? Fadwa Flemban Female Male
SPSS Solution H 0 : µ1 = µ2 H 1: µ1 µ2 Fadwa Flemban35
Analyze Compare means Independent Samples T Test Fadwa Flemban36
Fadwa Flemban37 Press Define Groups
Fadwa Flemban38 Press Option
Output : Fadwa Flemban > 0.05 Equal Variance Assumed > 0.05 Equal Variance Assumed Inside the Box: T-Test for Equality of means t=.045, df =(33+35)-2 =68-2= 66 Sig.=0.964> α=0.05 Don’t reject H Confidence Interval of the difference (-9.949,10.412) Inside the Box: T-Test for Equality of means t=.045, df =(33+35)-2 =68-2= 66 Sig.=0.964> α=0.05 Don’t reject H Confidence Interval of the difference (-9.949,10.412)
What is learned: Test of Hypotheses : T-Test of two Independent Samples. Estimate : Confidence Interval of the difference between means. Mean difference : µ1-µ2 = – = 0.24 ( from Group Statistics Table ) Or mean difference = ( from Independent samples test Table ) Fadwa Flemban40
Make a decision : Fadwa Flemban41 1) From P-value (Sig.) P-value > α Don’t reject H P-value < α Reject H 2) From Confidence Interval 0 inside the Interval Don’t reject H 0 outside the Interval Reject H
Tests of Differences between Means, dependent Samples Example : We have the data of 20 students in two courses (Arabic & English): Examine if there is difference between the mean of students’ marks in two courses, at level of significant 0.10? Fadwa Flemban Num Arabic English Num Arabic English
SPSS Solution H 0 : µ1 = µ2 H 1: µ1 µ2 Fadwa Flemban43
Fadwa Flemban44 Analyze Compare means Paired Samples T Test
Fadwa Flemban45 Press Option
Output: Fadwa Flemban46 t= 2.309, df=20-1=19 Sig.=0.032 < α=0.10 Reject H Confidence Interval of the difference (1.796,12.504) Note: the interval doesn’t contain ZERO t= 2.309, df=20-1=19 Sig.=0.032 < α=0.10 Reject H Confidence Interval of the difference (1.796,12.504) Note: the interval doesn’t contain ZERO
اخطاء شائعة استخدام اختبارات t : لبيانات صغيرة غير مسحوبة من مجتمع طبيعي Fadwa Flemban47
Statistical Humor A boy asked his statistician father, "Why is my body not well proportioned just like my brother's?" His father's response, "Because, when your mother had your pregnancy, its distribution was skewed!!" Fadwa Flemban48