Saraswat World
WHAT IS UNIFORM DISTRIBUTION IN PYTHON NUMPY?
The uniform distribution is represented by the numpy.random.uniform function. It’s used to generate random numbers that are uniformly distributed over a specified interval. Used to describe probability where every event has equal chances of occuring. Here’s a breakdown of what it does: Functionality: Generates random floating-point numbers.Numbers are distributed uniformly across a half-open interval [low,…
-
TOP 10 PLACES TO VISIT IN JAIPUR
THE TOP 10 PLACES TO VISIT IN JAIPUR JAIPUR The city of Jaipur, popular as the Pink City, is the capital of Rajasthan and is known for its various attractions. The vibrant city of Jaipur has lots to explore, from imperial grandeur and architectural magnificence to street food and colorful markets. No trip to India…
BINOMIAL DISTRIBUTION VS POISSON DISTRIBUTION
Difference Between Binomial and Poisson Distribution BINOMIAL POISSON Number of Trials and Outcomes Fixed number of trials (n) with exactly two possible outcomes (often denoted as success and failure).Examples: Flipping a coin 5 times (n=5) with heads (success) and tails (failure) as outcomes. Focuses on events occurring in a fixed interval (like time or space)…
WHAT IS POISSON DISTRIBUTION IN PYTHON NUMPY?
Poisson Distribution The Poisson distribution is a discrete probability distribution that models the number of events occurring in a fixed interval of time or space, with a known average occurrence rate. It’s useful for situations where events happen independently and at a constant rate. In Python’s NumPy library, you can generate random samples from a…
Shree Durga Stotra श्री दुर्गा स्तोत्रम्
दुर्गे विश्वमपि प्रसीद परमे सृष्ट्यादि- कार्य्यत्रये।ब्रह्माद्याः पुरुषास्त्रयो निजगुणै-स्त्वतस्वैच्छया कल्पिताः ॥नो ते कोऽपि च कल्प कोऽत्रभुवने विद्येत मातर्य्यतः ।कः शक्तः परिवर्ण्णितुं तव गुणांल्लोके भवेद्-दुर्गमान् ॥१॥ हिन्दी अर्थ –हे दुर्गे! कृपया पूरे विश्व को आशीर्वाद दें। ईश्वर! आपने अपने गुणों से ब्रह्मा सहित तीनों देवताओं की स्वतंत्र इच्छा की सृष्टि के तीन कार्यों के लिए रचना की…
Maha Mritunjay Mantra महामृत्युंजय मंत्र
महामृत्युंजय मंत्र ॐ त्र्यम्बकं यजामहे सुगन्धिं पुष्टिवर्धनम् |उर्वारुकमिव बन्धनान्मृत्योर्मुक्षीय माऽमृतात् || महामृत्युंजय मंत्र का अर्थ हम त्रिनेत्र को पूजते हैं,जो सुगंधित हैं, हमारा पोषण करते हैं,जिस तरह फल, शाखा के बंधन से मुक्त हो जाता है,वैसे ही हम भी मृत्यु और नश्वरता से मुक्त हो जाएं।
Shivasthak Stotra शिवाष्टक स्तोत्र गुरुवष्टकम
भारतीय परंपरा में, किसी के जीवन में गुरु होने का बहुत महत्व है। गुरवष्टकम इस सांस्कृतिक सिद्धांत का उदाहरण है। इस अष्टक में, आदि शंकराचार्य ने जीवन के विभिन्न पहलुओं को सूचीबद्ध किया है, जिन्हें आम तौर पर मनुष्य महत्त्व देते हैं: प्रसिद्धि, शक्ति, धन, सौंदर्य, बुद्धि, प्रतिभा, संपत्ति, एक अद्भुत परिवार। फिर, वे यह…
Shiv Panchakshar Stotra शिव पंचाक्षर स्तोत्र
नागेन्द्रहाराय त्रिलोचनायभस्माङ्गरागाय महेश्वराय ।नित्याय शुद्धाय दिगम्बरायतस्मै नकाराय नमः शिवाय मन्दाकिनीसलिलचन्दनचर्चिताय नन्दीश्वरप्रमथनाथमहेश्वराय ।मन्दारपुष्पबहुपुष्पसुपूजितायतस्मै मकाराय नमः शिवायशिवाय गौरीवदनाब्जबृंदासूर्याय दक्षाध्वरनाशकाय ।श्रीनीलकण्ठाय वृषध्वजायतस्मै शिकाराय नमः शिवाय वशिष्ठकुम्भोद्भवगौतमार्यमूनीन्द्र देवार्चिता शेखराय ।चन्द्रार्कवैश्वानरलोचनायतस्मै वकाराय नमः शिवाययज्ञस्वरूपाय जटाधरायपिनाकहस्ताय सनातनाय ।दिव्याय देवाय दिगम्बरायतस्मै यकाराय नमः शिवाय पञ्चाक्षरमिदं पुण्यं यः पठेच्छिवसंनिधौ ।शिवलोकमावाप्नोति शिवेन सह मोदतेअर्थवे जिनके पास साँपों का राजा उनकी माला के रूप में…
Shiv Tandav Stotra Meaning शिव तांडव स्तोत्र
जटा टवी गलज्जलप्रवाह पावितस्थले गलेऽव लम्ब्यलम्बितां भुजंगतुंग मालिकाम्।डमड्डमड्डमड्डमन्निनाद वड्डमर्वयं चकारचण्डताण्डवं तनोतु नः शिव: शिवम् ॥१॥ उनके बालों से बहने वाले जल से उनका कंठ पवित्र है,और उनके गले में सांप है जो हार की तरह लटका है,और डमरू से डमट् डमट् डमट् की ध्वनि निकल रही है,भगवान शिव शुभ तांडव नृत्य कर रहे हैं, वे…
WHAT IS BINOMIAL DITRIBUTION IN PYTHON?
Binomial Distribution describes the outcome of binary scenarios, e.g. toss of a coin, it will either be head or tails. Binomial Distribution is a Discrete Distribution. binomial() method in NumPy Python has three parameters: n – number of trials. p – probability of occurence of each trial (e.g. for toss of a coin 0.5 each).…
WHAT IS NORMAL OR GAUSSIAN DISTRIBUTION IN PYTHON?
NORMAL OR GAUSSIAN DISTRIBUTION The random.normal() method is used to get a Normal Data Distribution. It has three parameters- loc – (Mean) where the peak of the bell exists. scale – (Standard Deviation) how flat the graph distribution should be. size – The shape of the returned array. Output- Explanation– random.normal(size=(2, 2)) – It will…
WHAT IS SEABORN IN PYTHON?
Seaborn is an open-source Python library built on top of matplotlib. It is used for data visualization and exploratory data analysis. Seaborn is commonly used for data science and machine learning task. How to install Seaborn? We can install Seaborn using following command, python and pip installation on the machine is pre required. Importing Matplotlib…
HOW TO GENERATE RANDOM PERMUTATIONS OF PYTHON NUMPY ARRAY?
Random Permutations Random Permutations means arrangement of the elements of array in different ways. The shuffle() and permutation() methods from random module of python’s numpy library is used to generate permutations of arrays. Shuffling Arrays Shuffling means changing arrangement of elements in the array itself. The shuffle() method is used to shuffle the elements of…
HOW TO USE DATA DISTRIBUTION IN PYTHON NUMPY?
What is Data Distribution? Data Distribution is a list of all possible values, and how often each value occurs or their relative frequency. The methods available in random module of numpy library is used to get the randomly generated data distributions. Random Distribution A random distribution is a set of random numbers that follow a…
HOW TO GENERATE RANDOM NUMBERS USING PYTHON NUMPY?
Generating random no.- The random module of numpy library is used to generate random nos. in python. Output- 5 It will generate a random integer from 0 to 10. Generating random float- The rand() method returns a random float between 0 and 1. Output- Generating random array- The randint() method takes a size parameter where…
HOW TO FILTER PYTHON NUMPY ARRAYS?
We can filter an array using boolean index list, which is a list of booleans corresponding to indexes in the array. If the value at an index is True that element is contained in the filtered array, if the value at that index is False that element is excluded from the filtered array. Output- The…
HOW TO SORT PYTHON NUMPY ARRAYS?
The sort() method is used to sort the array in an order, it returns a copy of the array, leaving the original array unchanged. Output-
HOW TO USE SEARCH IN NUMPY ARRAYS?
The where() method is used to search the certain value in an array and return the indexes that get a match. Output- Search Sorted- The searchsorted() method performs a binary search in the sorted array, and returns the index where the specified value would be inserted to maintain the search order. Output- Explanation- np.searchsorted(arr, 3)…
HOW TO SPLIT PYTHON NUMPY ARRAY?
Splitting Python NumPy Arrays The array_split() method is used for splitting arrays, by passing it the array we want to split and the number of splits. It will returns the list of arrays. If the array has less elements than required as per split specified, it will adjust from the end accordingly. We can also…
HOW TO JOIN PYTHON NUMPY ARRAYS?
The concatenate() method is used to join the numpy arrays by passing sequence of arrays along with the axis and in case if axis is not passed it will consider it as 0. Output- Joining Arrays Using Stack Functions- The stack() method is used for joining two arrays and stacking is same as concatenation, the…